A telemetry event is one reading your systems send, counted or refused with the reason. The same identifier is never counted twice in a day, so a retried event can't bill twice.
Attributes
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier, starting uev_. |
object | string | Always telemetry_event. |
livemode | boolean | true in live mode. |
identifier | string | Your own ID for the reading: its idempotency key. |
event_name | string | The telemetry's event name it was sent under. |
payload | object | What you sent, as strings: the customer and value keys, and anything else. |
telemetry | string or null | The telemetry that counted it, tlm_.... |
customer | string or null | The customer it was counted for. |
timestamp | timestamp | When the usage happened. |
source | enum | api or dashboard. |
status | enum | accepted, rejected, canceled or replaced. |
error | object or null | Why it was refused: code is duplicate, unknown_event, telemetry_inactive, customer_missing, customer_not_found, customer_inactive, value_missing, value_invalid, timestamp_in_future, timestamp_too_old, credits_exhausted or month_closed. |
created | timestamp | When Sovgate received it. |
Usage can be reported up to 35 days after it happened, and up to 5 minutes ahead. A refused event isn't counted and nobody is billed for it.
Example
Endpoints
| Endpoint | What it does |
|---|---|
POST /v1/telemetry_events | Send one reading of usage. |
POST /v1/telemetry_events/{id}/cancel | Take a reading back before its month is billed. |
GET /v1/telemetry_events | List the readings your systems sent, counted or refused. |