API reference
LedgerIt's status
LedgerIt's own service levels over the last 30 days: availability, read and search speed, and how current connected data is.
Guides: LedgerIt's status
Get LedgerIt's service levels over the last 30 days
GET/v1/status
client.status.get()
LedgerIt's service levels over the last 30 days: availability, read and
search latency, and connection freshness, each as the share of its events
that met its threshold, against the share it promises (PLAN.md §11.1).
Levels nothing measures yet are listed with measured false. Answered
from samples taken in production; the same answer is served for up to a
minute.
Response
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/status" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Objects
The objects these operations take and return.
ServiceStatusOut
LedgerIt's service levels over the last 30 days.
| Name | Type | Description |
|---|---|---|
as_ofRequired | string (date-time) | When this answer was computed. |
levelsRequired | array of ServiceLevelOut | Every level the plan sets, in a fixed order. |
measuredRequired | integer | Levels with something measured in the window. |
metRequired | integer | Of those, the levels whose share reaches their objective. |
window_daysRequired | integer | How many days the shares are read over. |
ServiceLevelOut
One service level over the window.
| Name | Type | Description |
|---|---|---|
coverageRequired | string or null | Availability only: the share of minutes since its first probe in the window that were probed, cut to six places. A minute nobody probed counts neither up nor down. Null for every other level. |
daysRequired | array of StatusDayOut | The window's 30 UTC days, oldest first. |
measureRequired | string | Which level: availability, read_latency, search_latency, bank_freshness, revenue_freshness, payroll_freshness, backfill, restore |
measuredRequired | boolean | Whether anything was measured for it in the window. |
metRequired | boolean or null | Whether the good events reach |
objectiveRequired | string or null | The share of good events it promises, from 0 to 1; null for a level nothing measures yet. |
shareRequired | string or null | Good events over all events in the window, from 0 to 1, cut to six places; null when nothing was measured. |
threshold_msRequired | integer or null | What makes one event good, in milliseconds: the longest a read, a search or a connection's last sync may take or be ago. Null for availability, whose event is a probe that answered or not, and for a level nothing measures yet. |
StatusDayOut
One UTC day of a level.
| Name | Type | Description |
|---|---|---|
dateRequired | string (date) | The UTC day. |
shareRequired | string or null | Good events over all events that day, from 0 to 1, cut to six places; null when nothing was measured that day. |