The API presents a chronological view of the records, grouped by bucket. ##Required authorization
- Cluster privileges:
monitor_ml
Query parameters
-
Returns buckets with anomaly scores greater or equal than this value.
-
If
true, the buckets are sorted in descending order. -
Returns buckets with timestamps earlier than this time.
-1means it is unset and results are not limited to specific timestamps. -
If
true, the output excludes interim results. -
If true, the output includes anomaly records.
-
Skips the specified number of buckets.
-
Specifies the maximum number of buckets to obtain.
-
Specifies the sort field for the requested buckets.
-
Returns buckets with timestamps after this time.
-1means it is unset and results are not limited to specific timestamps.
Body
-
Refer to the description for the
anomaly_scorequery parameter. -
Refer to the description for the
descquery parameter. -
Refer to the description for the
exclude_interimquery parameter. -
Refer to the description for the
expandquery parameter. -
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
GET _ml/anomaly_detectors/low_request_rate/results/buckets
{
"anomaly_score": 80,
"start": "1454530200001"
}
curl \
--request POST 'http://api.example.com/_ml/anomaly_detectors/{job_id}/results/buckets' \
--header "Content-Type: application/json" \
--data '"{\n \"anomaly_score\": 80,\n \"start\": \"1454530200001\"\n}"'
{
"anomaly_score": 80,
"start": "1454530200001"
}