All methods and paths for this operation:
The API presents a chronological view of the records, grouped by bucket.
monitor_mlIdentifier for the anomaly detection job.
The timestamp of a single bucket result. If you do not specify this parameter, the API returns information about all buckets.
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. -1 means 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. -1 means it is unset
and results are not limited to specific timestamps.
Refer to the description for the anomaly_score query parameter.
Default value is 0.
Refer to the description for the desc query parameter.
Default value is false.
Refer to the description for the exclude_interim query parameter.
Default value is false.
Refer to the description for the expand query parameter.
Default value is false.
Refer to the desription for the sort query parameter.
GET _ml/anomaly_detectors/low_request_rate/results/buckets
{
"anomaly_score": 80,
"start": "1454530200001"
}
resp = client.ml.get_buckets(
job_id="low_request_rate",
anomaly_score=80,
start="1454530200001",
)
const response = await client.ml.getBuckets({
job_id: "low_request_rate",
anomaly_score: 80,
start: 1454530200001,
});
response = client.ml.get_buckets(
job_id: "low_request_rate",
body: {
"anomaly_score": 80,
"start": "1454530200001"
}
)
$resp = $client->ml()->getBuckets([
"job_id" => "low_request_rate",
"body" => [
"anomaly_score" => 80,
"start" => "1454530200001",
],
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d '{"anomaly_score":80,"start":"1454530200001"}' "$ELASTICSEARCH_URL/_ml/anomaly_detectors/low_request_rate/results/buckets"
client.ml().getBuckets(g -> g
.anomalyScore(80.0D)
.jobId("low_request_rate")
.start(DateTime.of("1454530200001"))
);
{
"anomaly_score": 80,
"start": "1454530200001"
}