Skip to content

Deployment

deployment_metrics_get

Get metric time series for a service or managed service over a fixed window (15m/1h/6h/24h/7d).

Tool

deployment_metrics_get

Get metric time series for a service or managed service over a fixed window (15m/1h/6h/24h/7d).

Get metric time series for a service or managed service over a fixed window (15m/1h/6h/24h/7d). Services return resource metrics (cpu, memory, net_in, net_out) plus HTTP metrics (rps, p50, p95, p99, error_rate); managed services return cpu, memory, net_in, net_out, disk.

Behavior

HTTP
GET /deployment/metrics

Arguments

NameTypeRequiredDescription
windowstringNo description in the catalog.
targetIdstringNo description in the catalog.
targetKindstringNo description in the catalog.

Response

FieldTypeAlwaysDescription
seriesarray
windowstring
capacityobject
targetIdstring
targetKindstring
stepSecondsnumber

Try it

Get metric time series for a service or managed service over a fixed window (15m/1h/6h/24h/7d).

When to use

Get metric time series for a service or managed service over a fixed window (15m/1h/6h/24h/7d). Services return resource metrics (cpu, memory, net_in, net_out) plus HTTP metrics (rps, p50, p95, p99, error_rate); managed services return cpu, memory, net_in, net_out, disk.

Example

Ask your agent something like this:

Get metric time series for a service or managed service over a fixed window (15m/1h/6h/24h/7d).

The agent will invoke deployment_metrics_get with these arguments:

{
  "targetId": "<targetId>",
  "targetKind": "<targetKind>"
}

Esc

Start typing to search the docs.

navigateselect