Skip to main content
POST
Detect anomalies in a metrics timeseries
The query field takes a timeseries query. For selectors and fields, see Querying metrics.

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>

Body

application/json

The series to analyse, the detector to run and its tuning.

query
object
required

The series to analyse; at most 30 days. Empty buckets are never filled, and projections are measured from to.

detector
enum<string>
default:trend

Which detection algorithm to run.

Available options:
trend,
spike,
changepoint,
time_to_threshold,
rate
config
object

Detector tuning (e.g. the ceiling a trend is projected to cross).

Response

The fetched series and its detections.

The analysed series and its detections.

series
object
required

The fetched series, to overlay the detections on.

detections
object[]
required

The detections produced by the detector, one per anomalous series (possibly empty).