API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

GET /v1/agents/assets/{assetId}/metrics

GET/v1/agents/assets/{assetId}/metrics

Get metrics time series for an asset (from VictoriaMetrics)

Query-Parameter

NameTypBeschreibung
periodstringTime period to query
metricstringMetric type to return

Pfad-Parameter

NameTypBeschreibung
assetIderforderlichstring

Beispiel

curl -X GET https://api.codemeta-os.de/v1/agents/assets/{assetId}/metrics \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.agents.get();

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche