2017-06-19 21:23:58 -04:00
|
|
|
[role="xpack"]
|
2018-08-31 19:49:24 -04:00
|
|
|
[testenv="platinum"]
|
2017-04-04 18:26:39 -04:00
|
|
|
[[ml-get-job-stats]]
|
2019-07-30 13:52:23 -04:00
|
|
|
=== Get {anomaly-job} statistics API
|
2017-12-14 13:52:49 -05:00
|
|
|
++++
|
2018-12-20 13:23:28 -05:00
|
|
|
<titleabbrev>Get job statistics</titleabbrev>
|
2017-12-14 13:52:49 -05:00
|
|
|
++++
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
Retrieves usage information for {anomaly-jobs}.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-get-job-stats-request]]
|
|
|
|
==== {api-request-title}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2018-12-07 15:34:11 -05:00
|
|
|
`GET _ml/anomaly_detectors/<job_id>/_stats`
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2018-12-07 15:34:11 -05:00
|
|
|
`GET _ml/anomaly_detectors/<job_id>,<job_id>/_stats` +
|
2017-08-09 11:30:21 -04:00
|
|
|
|
2018-12-07 15:34:11 -05:00
|
|
|
`GET _ml/anomaly_detectors/_stats` +
|
2017-08-09 11:30:21 -04:00
|
|
|
|
2019-06-27 16:58:42 -04:00
|
|
|
`GET _ml/anomaly_detectors/_all/_stats`
|
|
|
|
|
|
|
|
[[ml-get-job-stats-prereqs]]
|
|
|
|
==== {api-prereq-title}
|
|
|
|
|
|
|
|
* If the {es} {security-features} are enabled, you must have `monitor_ml`,
|
|
|
|
`monitor`, `manage_ml`, or `manage` cluster privileges to use this API. See
|
2019-10-07 18:23:19 -04:00
|
|
|
<<security-privileges>>.
|
2017-08-09 11:30:21 -04:00
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-get-job-stats-desc]]
|
|
|
|
==== {api-description-title}
|
2017-08-09 11:30:21 -04:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
You can get statistics for multiple {anomaly-jobs} in a single API request by
|
|
|
|
using a group name, a comma-separated list of jobs, or a wildcard expression.
|
|
|
|
You can get statistics for all {anomaly-jobs} by using `_all`, by specifying `*`
|
|
|
|
as the `<job_id>`, or by omitting the `<job_id>`.
|
2017-08-09 11:30:21 -04:00
|
|
|
|
2019-01-17 13:47:15 -05:00
|
|
|
IMPORTANT: This API returns a maximum of 10,000 jobs.
|
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-get-job-stats-path-parms]]
|
|
|
|
==== {api-path-parms-title}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`<job_id>`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection-default]
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-07-30 08:22:14 -04:00
|
|
|
[[ml-get-job-stats-query-parms]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
|
|
|
`allow_no_jobs`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, boolean)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=allow-no-jobs]
|
2019-07-30 08:22:14 -04:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
[role="child_attributes"]
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-get-job-stats-results]]
|
|
|
|
==== {api-response-body-title}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-12-30 17:55:36 -05:00
|
|
|
The API returns the following information about the operational progress of a
|
|
|
|
job:
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-12-30 17:55:36 -05:00
|
|
|
`assignment_explanation`::
|
2020-03-02 10:28:55 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=assignment-explanation-anomaly-jobs]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin data_counts
|
2019-12-30 17:55:36 -05:00
|
|
|
[[datacounts]]`data_counts`::
|
|
|
|
(object) An object that describes the quantity of input to the job and any
|
|
|
|
related error counts. The `data_count` values are cumulative for the lifetime of
|
|
|
|
a job. If a model snapshot is reverted or old results are deleted, the job
|
|
|
|
counts are not reset.
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `data_counts`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`bucket_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-count-anomaly-jobs]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`earliest_record_timestamp`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(date)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=earliest-record-timestamp]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`empty_bucket_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=empty-bucket-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`input_bytes`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=input-bytes]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`input_field_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=input-field-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`input_record_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=input-record-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`invalid_date_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=invalid-date-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`job_id`:::
|
2019-12-30 17:55:36 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`last_data_time`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(date)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=last-data-time]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`latest_empty_bucket_timestamp`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(date)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=latest-empty-bucket-timestamp]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`latest_record_timestamp`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(date)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=latest-record-timestamp]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`latest_sparse_bucket_timestamp`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(date)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=latest-sparse-record-timestamp]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`missing_field_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=missing-field-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
+
|
2020-03-02 10:28:55 -05:00
|
|
|
The value of `processed_record_count` includes this count.
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`out_of_order_timestamp_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=out-of-order-timestamp-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`processed_field_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=processed-field-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`processed_record_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=processed-record-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`sparse_bucket_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=sparse-bucket-count]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End data_counts
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-06 10:03:09 -05:00
|
|
|
`deleting`::
|
|
|
|
(boolean)
|
|
|
|
Indicates that the process of deleting the job is in progress but not yet
|
|
|
|
completed. It is only reported when `true`.
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin forecasts_stats
|
2019-12-30 17:55:36 -05:00
|
|
|
[[forecastsstats]]`forecasts_stats`::
|
2020-01-09 03:31:30 -05:00
|
|
|
(object) An object that provides statistical information about forecasts
|
|
|
|
belonging to this job. Some statistics are omitted if no forecasts have been
|
2020-03-30 14:06:33 -04:00
|
|
|
made.
|
2019-12-30 17:55:36 -05:00
|
|
|
+
|
2020-03-30 14:06:33 -04:00
|
|
|
NOTE: Unless there is at least one forecast, `memory_bytes`, `records`,
|
|
|
|
`processing_time_ms` and `status` properties are omitted.
|
|
|
|
+
|
|
|
|
.Properties of `forecasts_stats`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`forecasted_jobs`:::
|
2020-01-09 03:31:30 -05:00
|
|
|
(long) A value of `0` indicates that forecasts do not exist for this job. A
|
|
|
|
value of `1` indicates that at least one forecast exists.
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`memory_bytes`:::
|
2020-01-09 03:31:30 -05:00
|
|
|
(object) The `avg`, `min`, `max` and `total` memory usage in bytes for forecasts
|
|
|
|
related to this job. If there are no forecasts, this property is omitted.
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`processing_time_ms`:::
|
|
|
|
(object) The `avg`, `min`, `max` and `total` runtime in milliseconds for
|
|
|
|
forecasts related to this job. If there are no forecasts, this property is
|
|
|
|
omitted.
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`records`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(object) The `avg`, `min`, `max` and `total` number of `model_forecast` documents
|
|
|
|
written for forecasts related to this job. If there are no forecasts, this
|
2020-01-09 03:31:30 -05:00
|
|
|
property is omitted.
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`status`:::
|
2020-01-09 03:31:30 -05:00
|
|
|
(object) The count of forecasts by their status. For example:
|
|
|
|
{"finished" : 2, "started" : 1}. If there are no forecasts, this property is
|
|
|
|
omitted.
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`total`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=forecast-total]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End forecasts_stats
|
2019-12-30 17:55:36 -05:00
|
|
|
|
|
|
|
`job_id`::
|
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin model_size_stats
|
2019-12-30 17:55:36 -05:00
|
|
|
[[modelsizestats]]`model_size_stats`::
|
|
|
|
(object) An object that provides information about the size and contents of the
|
2020-03-30 14:06:33 -04:00
|
|
|
model.
|
|
|
|
+
|
|
|
|
.Properties of `model_size_stats`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`bucket_allocation_failures_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-allocation-failures-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`categorized_doc_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=categorized-doc-count]
|
2020-02-10 04:10:50 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`categorization_status`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=categorization-status]
|
2020-02-10 04:10:50 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`dead_category_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=dead-category-count]
|
2020-02-10 04:10:50 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`frequent_category_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=frequent-category-count]
|
2020-02-10 04:10:50 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`job_id`:::
|
2019-12-30 17:55:36 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`log_time`:::
|
2019-12-30 17:55:36 -05:00
|
|
|
(date) The timestamp of the `model_size_stats` according to server time.
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`memory_status`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=model-memory-status]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`model_bytes`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=model-bytes]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`model_bytes_exceeded`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=model-bytes-exceeded]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`model_bytes_memory_limit`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=model-memory-limit-anomaly-jobs]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`rare_category_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=rare-category-count]
|
2020-02-10 04:10:50 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`result_type`:::
|
2019-12-30 17:55:36 -05:00
|
|
|
(string) For internal use. The type of result.
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`total_by_field_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=total-by-field-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`total_category_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=total-category-count]
|
2020-02-10 04:10:50 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`total_over_field_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=total-over-field-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`total_partition_field_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=total-partition-field-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`timestamp`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(date)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=model-timestamp]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End model_size_stats
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin node
|
2019-12-30 17:55:36 -05:00
|
|
|
[[stats-node]]`node`::
|
|
|
|
(object) Contains properties for the node that runs the job. This information is
|
|
|
|
available only for open jobs.
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `node`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`attributes`:::
|
2020-04-22 13:58:26 -04:00
|
|
|
(object)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-attributes]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`ephemeral_id`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-ephemeral-id]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`id`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-id]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`name`:::
|
2020-04-22 13:58:26 -04:00
|
|
|
(string)
|
|
|
|
The node name.
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`transport_address`:::
|
2020-04-22 13:58:26 -04:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-transport-address]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End node
|
2019-12-30 17:55:36 -05:00
|
|
|
|
|
|
|
`open_time`::
|
2020-03-02 10:28:55 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=open-time]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
|
|
|
`state`::
|
2020-03-02 10:28:55 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=state-anomaly-job]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin timing_stats
|
2019-12-30 17:55:36 -05:00
|
|
|
[[timingstats]]`timing_stats`::
|
|
|
|
(object) An object that provides statistical information about timing aspect of
|
2020-03-30 14:06:33 -04:00
|
|
|
this job.
|
|
|
|
+
|
|
|
|
.Properties of `timing_stats`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`average_bucket_processing_time_ms`:::
|
2019-12-30 17:55:36 -05:00
|
|
|
(double) Average of all bucket processing times in milliseconds.
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`bucket_count`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(long)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-count]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`exponential_average_bucket_processing_time_ms`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(double)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-time-exponential-average]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`exponential_average_bucket_processing_time_per_hour_ms`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(double)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-time-exponential-average-hour]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`job_id`:::
|
2019-12-30 17:55:36 -05:00
|
|
|
(string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection]
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`maximum_bucket_processing_time_ms`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(double)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-time-maximum]
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`minimum_bucket_processing_time_ms`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(double)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-time-minimum]
|
2019-12-30 17:55:36 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`total_bucket_processing_time_ms`:::
|
2020-03-02 10:28:55 -05:00
|
|
|
(double)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-time-total]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End timing_stats
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-07-30 08:22:14 -04:00
|
|
|
[[ml-get-job-stats-response-codes]]
|
|
|
|
==== {api-response-codes-title}
|
|
|
|
|
|
|
|
`404` (Missing resources)::
|
|
|
|
If `allow_no_jobs` is `false`, this code indicates that there are no
|
|
|
|
resources that match the request or only partial matches for the request.
|
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-get-job-stats-example]]
|
|
|
|
==== {api-examples-title}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2017-04-11 21:52:47 -04:00
|
|
|
--------------------------------------------------
|
2019-12-30 17:55:36 -05:00
|
|
|
GET _ml/anomaly_detectors/low_request_rate/_stats
|
2017-04-11 21:52:47 -04:00
|
|
|
--------------------------------------------------
|
2019-12-30 17:55:36 -05:00
|
|
|
// TEST[skip:Kibana sample data]
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2017-05-08 09:53:04 -04:00
|
|
|
The API returns the following results:
|
2017-04-21 11:23:27 -04:00
|
|
|
[source,js]
|
2017-04-04 18:26:39 -04:00
|
|
|
----
|
|
|
|
{
|
2019-12-30 17:55:36 -05:00
|
|
|
"count" : 1,
|
|
|
|
"jobs" : [
|
2017-04-04 18:26:39 -04:00
|
|
|
{
|
2019-12-30 17:55:36 -05:00
|
|
|
"job_id" : "low_request_rate",
|
|
|
|
"data_counts" : {
|
|
|
|
"job_id" : "low_request_rate",
|
|
|
|
"processed_record_count" : 1216,
|
|
|
|
"processed_field_count" : 1216,
|
|
|
|
"input_bytes" : 51678,
|
|
|
|
"input_field_count" : 1216,
|
|
|
|
"invalid_date_count" : 0,
|
|
|
|
"missing_field_count" : 0,
|
|
|
|
"out_of_order_timestamp_count" : 0,
|
|
|
|
"empty_bucket_count" : 242,
|
|
|
|
"sparse_bucket_count" : 0,
|
|
|
|
"bucket_count" : 1457,
|
|
|
|
"earliest_record_timestamp" : 1575172659612,
|
|
|
|
"latest_record_timestamp" : 1580417369440,
|
|
|
|
"last_data_time" : 1576017595046,
|
|
|
|
"latest_empty_bucket_timestamp" : 1580356800000,
|
|
|
|
"input_record_count" : 1216
|
2017-04-04 18:26:39 -04:00
|
|
|
},
|
2019-12-30 17:55:36 -05:00
|
|
|
"model_size_stats" : {
|
|
|
|
"job_id" : "low_request_rate",
|
|
|
|
"result_type" : "model_size_stats",
|
|
|
|
"model_bytes" : 41480,
|
|
|
|
"model_bytes_exceeded" : 0,
|
|
|
|
"model_bytes_memory_limit" : 10485760,
|
|
|
|
"total_by_field_count" : 3,
|
|
|
|
"total_over_field_count" : 0,
|
|
|
|
"total_partition_field_count" : 2,
|
|
|
|
"bucket_allocation_failures_count" : 0,
|
|
|
|
"memory_status" : "ok",
|
2020-02-10 04:10:50 -05:00
|
|
|
"categorized_doc_count" : 0,
|
|
|
|
"total_category_count" : 0,
|
|
|
|
"frequent_category_count" : 0,
|
|
|
|
"rare_category_count" : 0,
|
|
|
|
"dead_category_count" : 0,
|
|
|
|
"categorization_status" : "ok",
|
2019-12-30 17:55:36 -05:00
|
|
|
"log_time" : 1576017596000,
|
|
|
|
"timestamp" : 1580410800000
|
2017-04-04 18:26:39 -04:00
|
|
|
},
|
2019-12-30 17:55:36 -05:00
|
|
|
"forecasts_stats" : {
|
|
|
|
"total" : 1,
|
|
|
|
"forecasted_jobs" : 1,
|
|
|
|
"memory_bytes" : {
|
|
|
|
"total" : 9179.0,
|
|
|
|
"min" : 9179.0,
|
|
|
|
"avg" : 9179.0,
|
|
|
|
"max" : 9179.0
|
|
|
|
},
|
|
|
|
"records" : {
|
|
|
|
"total" : 168.0,
|
|
|
|
"min" : 168.0,
|
|
|
|
"avg" : 168.0,
|
|
|
|
"max" : 168.0
|
|
|
|
},
|
|
|
|
"processing_time_ms" : {
|
|
|
|
"total" : 40.0,
|
|
|
|
"min" : 40.0,
|
|
|
|
"avg" : 40.0,
|
|
|
|
"max" : 40.0
|
|
|
|
},
|
|
|
|
"status" : {
|
|
|
|
"finished" : 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"state" : "opened",
|
|
|
|
"node" : {
|
|
|
|
"id" : "7bmMXyWCRs-TuPfGJJ_yMw",
|
|
|
|
"name" : "node-0",
|
|
|
|
"ephemeral_id" : "hoXMLZB0RWKfR9UPPUCxXX",
|
|
|
|
"transport_address" : "127.0.0.1:9300",
|
|
|
|
"attributes" : {
|
|
|
|
"ml.machine_memory" : "17179869184",
|
|
|
|
"xpack.installed" : "true",
|
|
|
|
"ml.max_open_jobs" : "20"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"assignment_explanation" : "",
|
|
|
|
"open_time" : "13s",
|
|
|
|
"timing_stats" : {
|
|
|
|
"job_id" : "low_request_rate",
|
|
|
|
"bucket_count" : 1457,
|
|
|
|
"total_bucket_processing_time_ms" : 1094.000000000001,
|
|
|
|
"minimum_bucket_processing_time_ms" : 0.0,
|
|
|
|
"maximum_bucket_processing_time_ms" : 48.0,
|
|
|
|
"average_bucket_processing_time_ms" : 0.75085792724777,
|
|
|
|
"exponential_average_bucket_processing_time_ms" : 0.5571716855800993,
|
|
|
|
"exponential_average_bucket_processing_time_per_hour_ms" : 15.0
|
2019-06-17 02:58:26 -04:00
|
|
|
}
|
2017-04-04 18:26:39 -04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2019-12-30 17:55:36 -05:00
|
|
|
----
|