GET /v1/agents/assets/{assetId}/metrics
GET/v1/agents/assets/{assetId}/metrics
Get metrics time series for an asset (from VictoriaMetrics)
Query parameters
| Name | Type | Description |
|---|
period | string | Time period to query |
metric | string | Metric type to return |
Path parameters
| Name | Type | Description |
|---|
assetIdrequired | string | |
Example
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();
Response codes
| HTTP |
Meaning |
200 |
Default Response |