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

200ServiceStatusOut

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
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.

NameTypeDescription
as_ofRequiredstring (date-time)

When this answer was computed.

levelsRequiredarray of ServiceLevelOut

Every level the plan sets, in a fixed order.

measuredRequiredinteger

Levels with something measured in the window.

metRequiredinteger

Of those, the levels whose share reaches their objective.

window_daysRequiredinteger

How many days the shares are read over.

ServiceLevelOut

One service level over the window.

NameTypeDescription
coverageRequiredstring 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.

daysRequiredarray of StatusDayOut

The window's 30 UTC days, oldest first.

measureRequiredstring

Which level: availability (minutes the API and the site both answered), read_latency and search_latency (JSON reads and searches within their threshold), bank_freshness, revenue_freshness and payroll_freshness (connections within their freshness target when looked at), backfill and restore (not measured yet).

One of availability, read_latency, search_latency, bank_freshness, revenue_freshness, payroll_freshness, backfill, restore
measuredRequiredboolean

Whether anything was measured for it in the window.

metRequiredboolean or null

Whether the good events reach objective of all events, compared exactly; null when nothing was measured.

objectiveRequiredstring or null

The share of good events it promises, from 0 to 1; null for a level nothing measures yet.

shareRequiredstring or null

Good events over all events in the window, from 0 to 1, cut to six places; null when nothing was measured.

threshold_msRequiredinteger 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.

NameTypeDescription
dateRequiredstring (date)

The UTC day.

shareRequiredstring or null

Good events over all events that day, from 0 to 1, cut to six places; null when nothing was measured that day.