Ingest reference
WatchTower15 Ingest API
WatchTower15 Ingest API, version 1.0.0+sha.70713b6f3cef.
The WatchTower15 ingest API takes data in: custom metric points and log lines, sent with a source’s token. It is separate from the REST API: a different host, a different credential and the same answer envelope on every call.
Credentials. A metric source’s token (wt15ms_…) and a log source’s token (wt15ls_…) each travel as Authorization: Bearer <token>. A token belongs to one source and works on its own operations only. Every failure to authenticate is the same 403.
Bodies. A body is read raw and may be any of four forms: a JSON envelope ({"points": […]} or {"lines": […]}), a JSON array, a single JSON object, or
newline-delimited JSON (application/x-ndjson, one object per line). Any form may be gzip-compressed; gzip is detected from the bytes, so Content-Type is not trusted.
Answers. Every answer, a failure too, is the same envelope: status, status_code, data, request_id and timestamp (epoch milliseconds), with message and errors where they apply. Metric answers count each reason a point was rejected, zero included, so a refused point is never silent.
Idempotency. Both POST operations take an optional Idempotency-Key header. Metrics: required for points older than 30 days, remembered for 30 days. Logs: remembered for 24 hours, and a different batch under the same key is refused.
Limits. Each operation lists its limits, the defaults of the platform. The console sends from app.watchtower15.com; the networks to allow for egress are listed in the client documentation.
Marks for generators. Beside the standard fields, schemas and operations carry x-wt15-open-enum (an enum a client must keep open), x-wt15-instant (an integer
holding epoch milliseconds), x-wt15-scopes (always empty here: the token is the only credential) and x-wt15-idempotent (the operation honours Idempotency-Key).