Get anomaly detection job results for buckets
POST
/_ml/anomaly_detectors/{job_id}/results/buckets The API presents a chronological view of the records, grouped by bucket.
Required authorization
- Cluster privileges:
monitor_ml
Parameters
path Path Parameters
| Name | Type |
|---|---|
job_id
required
Identifier for the anomaly detection job. | type TypesId = string |
query Query Parameters
| Name | Type |
|---|---|
anomaly_score Returns buckets with anomaly scores greater or equal than this value. | number |
desc If | boolean |
end Returns buckets with timestamps earlier than this time. | type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string |
exclude_interim If | boolean |
expand If true, the output includes anomaly records. | boolean |
from Skips the specified number of buckets. | number |
size Specifies the maximum number of buckets to obtain. | number |
sort Specifies the sort field for the requested buckets. | type TypesField = string |
start Returns buckets with timestamps after this time. | type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string |
Request Body
application/json
{
anomaly_score?: number;
desc?: boolean;
end?:TypesDateTime ;
exclude_interim?: boolean;
expand?: boolean;
page?:MlTypesPage ;
sort?:TypesField ;
start?:TypesDateTime ;
}
anomaly_score?: number;
desc?: boolean;
end?:
exclude_interim?: boolean;
expand?: boolean;
page?:
sort?:
start?:
}
Responses
200 application/json
{ buckets: MlTypesBucketSummary [];count: number; }