latestSwagger 2.02026-08-2358186392.0 KB

ae0e90c2c794

Get Metrics
AI

Returns metrics with common time series response for the given query.

get/v1/orgs/{org_id}/metrics_v2/graph

Path parameters

org_idstring required

Org ID

Query parameters

querystring

Edge Delta Common Query Language expression

lookbackstring

Lookback period in golang duration format. e.g. '1h'. Either provide from/to or provide lookback/to or just lookback

fromstring

From datetime in ISO format 2006-01-02T15:04:05.000Z

tostring

To datetime in ISO format 2006-01-02T15:04:05.000Z

orderstring

If order_by is specified then metrics are sorted by given field. If no sort is given default sort will be asc

sortstring

Default is no sorting. If sort is specified then metrics are sorted by their value. Possible values: asc, desc

limitinteger

Limits the number of logs in the response. Default has no limit.

time_range_adjustmentstring

Time range adjustment it can be noop, inclusive or exclusive

savestring

The boolean to decide whether to save the query in history

Response

Common time series response

fromstring
keysstring[]
tostring
windowstring