Metrics and telemetry ›
Get telemetry
GET
/v1/telemetryWhere your metrics and events are sent, and how the last export went.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const telemetry = await agental.getTelemetry();
Answer200 OK · TelemetryAnswer
- {
- "telemetry": object,
- }
The account's collector, with the names of its headers and how the last export went.
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 The account's collector, with the names of its headers and how the last export went. telemetry is null when none is set.
TelemetryAnswer1 field
telemetryobject
Errors and other answers
| 501 | telemetry_unavailable nothing is sent to a collector here. GET /v1/policy says so as telemetry. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.