Contains an overview of the aggregated metrics for an agent. It includes metrics link the amount of records, bytes, and errors per plugin.
OK
const response = await fetch('https://cloud-api.calyptia.com/v1/agents/{agentID}/metrics', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{}
const response = await fetch('https://cloud-api.calyptia.com/v2/agents/{agentID}/metrics', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{ "input": { "bytes": 0, "records": 0 } }, "outputs": { "bytes": 0, "records": 0, "errors": 0, "retries": 0, "retriedRecords": 0, "retriesFailed": 0, "droppedRecords": 0, "loads": 0 } }, "filters": { "dropRecords": 0, "emitRecords": 0 } } }