Get anomaly detection job stats
Generally available; Added in 5.5.0
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.
Responses
-
Hide response attributes Show response attributes object
-
Hide jobs attributes Show jobs attributes object
-
For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job.
-
Hide data_counts attributes Show data_counts attributes object
-
Hide forecasts_stats attributes Show forecasts_stats attributes object
-
Identifier for the anomaly detection job.
-
Hide model_size_stats attributes Show model_size_stats attributes object
log_time
string | number Required A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
-
Values are
ok
,soft_limit
, orhard_limit
. -
Values are
ok
orwarn
.
-
Alternative representation of DiscoveryNode used in ml.get_job_stats and ml.get_datafeed_stats
-
Values are
closing
,closed
,opened
,failed
, oropening
. -
Hide timing_stats attributes Show timing_stats attributes object
-
Time unit for fractional milliseconds
-
Time unit for fractional milliseconds
-
Time unit for fractional milliseconds
-
Time unit for fractional milliseconds
-
Time unit for fractional milliseconds
-
Time unit for fractional milliseconds
-
-
Indicates that the process of deleting the job is in progress but not yet completed. It is only reported when
true
.
-
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"