Path parameters

  • job_idstring Required

    Identifier for the anomaly detection job.

Query parameters

  • allow_no_matchboolean

    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 empty jobs array when there are no matches and the subset of results when there are partial matches. If false, the API returns a 404 status code when there are no matches or only partial matches.

  • bytesstring

    The unit used to display byte values.

    Values are b, kb, mb, gb, tb, or pb.

  • hstring | array[string]

    Comma-separated list of column names to display.

  • sstring | array[string]

    Comma-separated list of column names or column aliases used to sort the response.

  • timestring

    The unit used to display time values.

    Values are nanos, micros, ms, s, m, h, or d.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • idstring
    • statestring

      Values are closing, closed, opened, failed, or opening.

    • opened_timestring

      For open jobs only, the amount of time the job has been opened.

    • assignment_explanationstring

      For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job.

    • data.processed_recordsstring

      The number of input documents that have been processed by the anomaly detection job. This value includes documents with missing fields, since they are nonetheless analyzed. If you use datafeeds and have aggregations in your search query, the processed_record_count is the number of aggregation results processed, not the number of Elasticsearch documents.

    • data.processed_fieldsstring

      The total number of fields in all the documents that have been processed by the anomaly detection job. Only fields that are specified in the detector configuration object contribute to this count. The timestamp is not included in this count.

    • data.input_bytesnumber | string

    • data.input_recordsstring

      The number of input documents posted to the anomaly detection job.

    • data.input_fieldsstring

      The total number of fields in input documents posted to the anomaly detection job. This count includes fields that are not used in the analysis. However, be aware that if you are using a datafeed, it extracts only the required fields from the documents it retrieves before posting them to the job.

    • data.invalid_datesstring

      The number of input documents with either a missing date field or a date that could not be parsed.

    • data.missing_fieldsstring

      The number of input documents that are missing a field that the anomaly detection job is configured to analyze. Input documents with missing fields are still processed because it is possible that not all fields are missing. If you are using datafeeds or posting data to the job in JSON format, a high missing_field_count is often not an indication of data issues. It is not necessarily a cause for concern.

    • data.out_of_order_timestampsstring

      The number of input documents that have a timestamp chronologically preceding the start of the current anomaly detection bucket offset by the latency window. This information is applicable only when you provide data to the anomaly detection job by using the post data API. These out of order documents are discarded, since jobs require time series data to be in ascending chronological order.

    • data.empty_bucketsstring

      The number of buckets which did not contain any data. If your data contains many empty buckets, consider increasing your bucket_span or using functions that are tolerant to gaps in data such as mean, non_null_sum or non_zero_count.

    • data.sparse_bucketsstring

      The number of buckets that contained few data points compared to the expected number of data points. If your data contains many sparse buckets, consider using a longer bucket_span.

    • data.bucketsstring

      The total number of buckets processed.

    • data.earliest_recordstring

      The timestamp of the earliest chronologically input document.

    • data.latest_recordstring

      The timestamp of the latest chronologically input document.

    • data.laststring

      The timestamp at which data was last analyzed, according to server time.

    • data.last_empty_bucketstring

      The timestamp of the last bucket that did not contain any data.

    • data.last_sparse_bucketstring

      The timestamp of the last bucket that was considered sparse.

    • model.bytesnumber | string

    • model.memory_statusstring

      Values are ok, soft_limit, or hard_limit.

    • model.bytes_exceedednumber | string

    • model.memory_limitstring

      The upper limit for model memory usage, checked on increasing values.

    • model.by_fieldsstring

      The number of by field values that were analyzed by the models. This value is cumulative for all detectors in the job.

    • model.over_fieldsstring

      The number of over field values that were analyzed by the models. This value is cumulative for all detectors in the job.

    • model.partition_fieldsstring

      The number of partition field values that were analyzed by the models. This value is cumulative for all detectors in the job.

    • model.bucket_allocation_failuresstring

      The number of buckets for which new entities in incoming data were not processed due to insufficient model memory. This situation is also signified by a hard_limit: memory_status property value.

    • model.categorization_statusstring

      Values are ok or warn.

    • model.categorized_doc_countstring

      The number of documents that have had a field categorized.

    • model.total_category_countstring

      The number of categories created by categorization.

    • model.frequent_category_countstring

      The number of categories that match more than 1% of categorized documents.

    • model.rare_category_countstring

      The number of categories that match just one categorized document.

    • model.dead_category_countstring

      The number of categories created by categorization that will never be assigned again because another category’s definition makes it a superset of the dead category. Dead categories are a side effect of the way categorization has no prior training.

    • model.failed_category_countstring

      The number of times that categorization wanted to create a new category but couldn’t because the job had hit its model_memory_limit. This count does not track which specific categories failed to be created. Therefore you cannot use this value to determine the number of unique categories that were missed.

    • model.log_timestring

      The timestamp when the model stats were gathered, according to server time.

    • model.timestampstring

      The timestamp of the last record when the model stats were gathered.

    • forecasts.totalstring

      The number of individual forecasts currently available for the job. A value of one or more indicates that forecasts exist.

    • forecasts.memory.minstring

      The minimum memory usage in bytes for forecasts related to the anomaly detection job.

    • forecasts.memory.maxstring

      The maximum memory usage in bytes for forecasts related to the anomaly detection job.

    • forecasts.memory.avgstring

      The average memory usage in bytes for forecasts related to the anomaly detection job.

    • forecasts.memory.totalstring

      The total memory usage in bytes for forecasts related to the anomaly detection job.

    • forecasts.records.minstring

      The minimum number of model_forecast documents written for forecasts related to the anomaly detection job.

    • forecasts.records.maxstring

      The maximum number of model_forecast documents written for forecasts related to the anomaly detection job.

    • forecasts.records.avgstring

      The average number of model_forecast documents written for forecasts related to the anomaly detection job.

    • forecasts.records.totalstring

      The total number of model_forecast documents written for forecasts related to the anomaly detection job.

    • forecasts.time.minstring

      The minimum runtime in milliseconds for forecasts related to the anomaly detection job.

    • forecasts.time.maxstring

      The maximum runtime in milliseconds for forecasts related to the anomaly detection job.

    • forecasts.time.avgstring

      The average runtime in milliseconds for forecasts related to the anomaly detection job.

    • forecasts.time.totalstring

      The total runtime in milliseconds for forecasts related to the anomaly detection job.

    • node.idstring
    • node.namestring

      The name of the assigned node.

    • node.ephemeral_idstring
    • node.addressstring

      The network address of the assigned node.

    • buckets.countstring

      The number of bucket results produced by the job.

    • buckets.time.totalstring

      The sum of all bucket processing times, in milliseconds.

    • buckets.time.minstring

      The minimum of all bucket processing times, in milliseconds.

    • buckets.time.maxstring

      The maximum of all bucket processing times, in milliseconds.

    • buckets.time.exp_avgstring

      The exponential moving average of all bucket processing times, in milliseconds.

    • buckets.time.exp_avg_hourstring

      The exponential moving average of bucket processing times calculated in a one hour time window, in milliseconds.

GET /_cat/ml/anomaly_detectors/{job_id}
curl \
 --request GET 'http://api.example.com/_cat/ml/anomaly_detectors/{job_id}' \
 --header "Authorization: $API_KEY"
Response examples (200)
A successful response from `GET _cat/ml/anomaly_detectors?h=id,s,dpr,mb&v=true&format=json`.
[
  {
    "id": "high_sum_total_sales",
    "s": "closed",
    "dpr": "14022",
    "mb": "1.5mb"
  },
  {
    "id": "low_request_rate",
    "s": "closed",
    "dpr": "1216",
    "mb": "40.5kb"
  },
  {
    "id": "response_code_rates",
    "s": "closed",
    "dpr": "28146",
    "mb": "132.7kb"
  },
  {
    "id": "url_scanning",
    "s": "closed",
    "dpr": "28146",
    "mb": "501.6kb"
  }
]