Get anomaly detection job stats
Generally available; Added in 5.5.0
Path parameters
-
Identifier for the anomaly detection job. It can be a job identifier, a group name, a comma-separated list of jobs, or a wildcard expression. If you do not specify one of these options, the API returns information for all anomaly detection jobs.
Query parameters
-
Specifies what to do when the request:
- Contains wildcard expressions and there are no jobs that match.
- Contains the _all string or no identifiers and there are no matches.
- Contains wildcard expressions and there are only partial matches.
If
true
, the API returns an emptyjobs
array when there are no matches and the subset of results when there are partial matches. Iffalse
, the API returns a404
status code when there are no matches or only partial matches.
GET
/_ml/anomaly_detectors/{job_id}/_stats
Console
GET _ml/anomaly_detectors/low_request_rate/_stats
resp = client.ml.get_job_stats(
job_id="low_request_rate",
)
const response = await client.ml.getJobStats({
job_id: "low_request_rate",
});
response = client.ml.get_job_stats(
job_id: "low_request_rate"
)
$resp = $client->ml()->getJobStats([
"job_id" => "low_request_rate",
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_ml/anomaly_detectors/low_request_rate/_stats"