Query impact metrics time series data

View as Markdown

Enterprise feature

Queries an impact metric source for time series data based on the provided metric name, time range, and aggregation mode.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Query parameters

metricNamestringRequired
The Prometheus metric name to query.
rangeenumRequired
The time range for the query.
aggregationModeenumRequired
The aggregation mode for the query.
labelsstringOptional

A JSON-encoded object mapping label names to arrays of label values to filter by.

modeenumOptional

Query mode. edit (default) also returns the available labels for the metric (used by filter UIs). display skips label discovery and returns time-series data only (cheaper; use for dashboard rendering).

Allowed values:
sourceenumRequiredDefaults to internal
Whether the metric comes from the internal Unleash impact metrics or an external source.
Allowed values:

Response

impactMetricsDataSchema
startstring
The start of the queried time range as a Unix epoch timestamp in seconds.
endstring
The end of the queried time range as a Unix epoch timestamp in seconds.
stepstring
The step interval between data points.
serieslist of objects
Array of time series results.
labelsmap from strings to lists of strings
Available label values for the queried metric, keyed by label name.
debugobject
Internal debug information. This field is not part of the public API and may be removed without notice.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error