Monitors
Get a monitor's series
A range of a monitor's runs in equal buckets, read on the server: runs, passes, failures, uptime and the median, 95th and 99th percentile latency per bucket and over the range, and the failures by class. At most 500 buckets, within the runs the account keeps (at most 90 days).
Needs scope connections:read.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
monitor_id*stringThe monitor's id, mon_ and a ULID, from List monitors.
from?stringStart of the range, RFC 3339; 24 hours before to when empty.
to?stringEnd of the range, RFC 3339; now when empty.
bucket_secs?integerSeconds per bucket, at least 60; 0 gives about 100 buckets.
int32iohr.connections.v1.GetMonitorSeriesResponse
application/json- response
iohr.connections.v1.GetMonitorSeriesResponse
bucket_secs*integerint32buckets*array<>failed*integerint32failures*array<>from*stringp50?integerint32p95?integerint32p99?integerint32runs*integerint32to*stringuptime?numberdoubleimport { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.connections.getMonitorSeries("<org_id>", "<monitor_id>"); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "bucket_secs": 0, "buckets": [ { "failed": 0, "p50": 0, "p95": 0, "p99": 0, "passed": 0, "runs": 0, "seen": 0, "start": "string", "uptime": 0.1 } ], "failed": 0, "failures": [ { "count": 0, "error_class": "string", "last_at": "string", "last_run_id": "string" } ], "from": "string", "p50": 0, "p95": 0, "p99": 0, "runs": 0, "to": "string", "uptime": 0.1}