Get anomaly detection jobs usage info Added in 5.5.0
Query parameters
-
allow_no_match boolean
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/_stats
curl \
-X GET http://api.example.com/_ml/anomaly_detectors/_stats
Response examples (200)
{
"count": 42.0,
"jobs": [
{
"assignment_explanation": "string",
"data_counts": {
"bucket_count": 42.0,
"earliest_record_timestamp": 42.0,
"empty_bucket_count": 42.0,
"input_bytes": 42.0,
"input_field_count": 42.0,
"input_record_count": 42.0,
"invalid_date_count": 42.0,
"job_id": "string",
"last_data_time": 42.0,
"latest_empty_bucket_timestamp": 42.0,
"latest_record_timestamp": 42.0,
"latest_sparse_bucket_timestamp": 42.0,
"latest_bucket_timestamp": 42.0,
"log_time": 42.0,
"missing_field_count": 42.0,
"out_of_order_timestamp_count": 42.0,
"processed_field_count": 42.0,
"processed_record_count": 42.0,
"sparse_bucket_count": 42.0
},
"forecasts_stats": {
"memory_bytes": {
"avg": 42.0,
"max": 42.0,
"min": 42.0,
"total": 42.0
},
"processing_time_ms": {
"avg": 42.0,
"max": 42.0,
"min": 42.0,
"total": 42.0
},
"records": {
"avg": 42.0,
"max": 42.0,
"min": 42.0,
"total": 42.0
},
"status": {
"additionalProperty1": 42.0,
"additionalProperty2": 42.0
},
"total": 42.0,
"forecasted_jobs": 42.0
},
"job_id": "string",
"model_size_stats": {
"bucket_allocation_failures_count": 42.0,
"job_id": "string",
"": 42.0,
"memory_status": "ok",
"assignment_memory_basis": "string",
"result_type": "string",
"total_by_field_count": 42.0,
"total_over_field_count": 42.0,
"total_partition_field_count": 42.0,
"categorization_status": "ok",
"categorized_doc_count": 42.0,
"dead_category_count": 42.0,
"failed_category_count": 42.0,
"frequent_category_count": 42.0,
"rare_category_count": 42.0,
"total_category_count": 42.0,
"timestamp": 42.0
},
"node": {
"attributes": {
"additionalProperty1": "string",
"additionalProperty2": "string"
},
"ephemeral_id": "string",
"id": "string",
"name": "string",
"transport_address": "string"
},
"": "string",
"state": "closing",
"timing_stats": {
"": 42.0,
"bucket_count": 42.0,
"job_id": "string"
},
"deleting": true
}
]
}