Tearleads

GET/root/reports/ops-health

Report billing maintenance trouble

Operation root.reports.opsHealth.get

Description

Reports billing maintenance trouble across organizations: failing or overdue Stripe seat syncs, failed or overdue trial expiries, overdue purges, and trials and purges coming due. Only root operators may call it, and each request is recorded in the root audit trail.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Responses

200 OK

application/jsonRootOpsHealthReportResponse

Billing maintenance trouble across organizations. Each section lists at most a bounded number of rows and says when it was truncated.

6 fields
  • generatedAtstringrequired
  • seatSyncobjectrequired

    Stripe seat syncs that are failing, overdue, or hold a lapsed lease, in retry order.

    2 fields
    • rowslist of objectrequired
      • at most 50 items
      9 fields
      • organizationIdstringrequired
        • not empty
      • conditionslist of stringrequired
        • at most 3 items
        • each item: one of failing, stalled, leaseExpired
      • attemptCountintegerrequired
        • at least 0
      • appliedRevisionintegerrequired
        • at least 0
      • desiredRevisionintegerrequired
        • at least 0
      • lastErrorstringrequirednullable
      • lastSyncedAtstringrequirednullable
      • leaseExpiresAtstringrequirednullable
      • nextAttemptAtstringrequirednullable

      Other fields are allowed.

    • truncatedbooleanrequired

    Other fields are allowed.

  • trialExpiryobjectrequired

    Ended trials the expiry sweep failed on or has not reached in time.

    2 fields
    • rowslist of objectrequired
      • at most 50 items
      6 fields
      • organizationIdstringrequired
        • not empty
      • trialEndsAtstringrequired
      • attemptCountintegerrequired
        • at least 0
      • lastErrorstringrequirednullable
      • nextAttemptAtstringrequirednullable
      • requiresAttentionbooleanrequired

      Other fields are allowed.

    • truncatedbooleanrequired

    Other fields are allowed.

  • purgesobjectrequired

    Purges past due to start, or started with a lapsed lease.

    2 fields
    • rowslist of objectrequired
      • at most 50 items
      4 fields
      • organizationIdstringrequired
        • not empty
      • statusstringrequired
        • one of disabled, deleting
      • purgeAfterstringrequirednullable
      • purgeStartedAtstringrequirednullable

      Other fields are allowed.

    • truncatedbooleanrequired

    Other fields are allowed.

  • trialsEndingobjectrequired

    Trials ending soon, soonest first.

    2 fields
    • rowslist of objectrequired
      • at most 50 items
      2 fields
      • organizationIdstringrequired
        • not empty
      • trialEndsAtstringrequired

      Other fields are allowed.

    • truncatedbooleanrequired

    Other fields are allowed.

  • purgesDueobjectrequired

    Disabled organizations whose purge falls due soon.

    2 fields
    • rowslist of objectrequired
      • at most 50 items
      3 fields
      • organizationIdstringrequired
        • not empty
      • disabledAtstringrequirednullable
      • purgeAfterstringrequired

      Other fields are allowed.

    • truncatedbooleanrequired

    Other fields are allowed.

Other fields are allowed.

Other responses

StatusMeaningBody
401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse