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-put-job]]
|
2020-07-20 16:10:54 -04:00
|
|
|
= Create {anomaly-jobs} API
|
2017-12-14 13:52:49 -05:00
|
|
|
++++
|
2019-07-25 11:58:16 -04:00
|
|
|
<titleabbrev>Create jobs</titleabbrev>
|
2017-12-14 13:52:49 -05:00
|
|
|
++++
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-07-08 14:43:18 -04:00
|
|
|
Instantiates an {anomaly-job}.
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-put-job-request]]
|
2020-07-20 16:10:54 -04:00
|
|
|
== {api-request-title}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2018-12-07 15:34:11 -05:00
|
|
|
`PUT _ml/anomaly_detectors/<job_id>`
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-06-27 16:58:42 -04:00
|
|
|
[[ml-put-job-prereqs]]
|
2020-07-20 16:10:54 -04:00
|
|
|
== {api-prereq-title}
|
2019-06-27 16:58:42 -04:00
|
|
|
|
|
|
|
* If the {es} {security-features} are enabled, you must have `manage_ml` or
|
|
|
|
`manage` cluster privileges to use this API. See
|
2019-10-07 18:23:19 -04:00
|
|
|
<<security-privileges>>.
|
2019-06-27 16:58:42 -04:00
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-put-job-desc]]
|
2020-07-20 16:10:54 -04:00
|
|
|
== {api-description-title}
|
2019-02-08 06:35:37 -05:00
|
|
|
|
2019-07-08 14:43:18 -04:00
|
|
|
IMPORTANT: You must use {kib} or this API to create an {anomaly-job}. Do not put
|
|
|
|
a job directly to the `.ml-config` index using the {es} index API. If {es}
|
|
|
|
{security-features} are enabled, do not give users `write` privileges on the
|
|
|
|
`.ml-config` index.
|
2019-02-08 06:35:37 -05:00
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-put-job-path-parms]]
|
2020-07-20 16:10:54 -04:00
|
|
|
== {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
|
|
|
(Required, string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=job-id-anomaly-detection-define]
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
[role="child_attributes"]
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-put-job-request-body]]
|
2020-07-20 16:10:54 -04:00
|
|
|
== {api-request-body-title}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-12-27 16:30:26 -05:00
|
|
|
`allow_lazy_open`::
|
|
|
|
(Optional, boolean)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=allow-lazy-open]
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin analysis_config
|
2019-12-27 16:30:26 -05:00
|
|
|
[[put-analysisconfig]]`analysis_config`::
|
|
|
|
(Required, object)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=analysis-config]
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `analysis_config`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`bucket_span`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(<<time-units,time units>>)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=bucket-span]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`categorization_analyzer`:::
|
|
|
|
(object or string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=categorization-analyzer]
|
2020-03-30 14:06:33 -04:00
|
|
|
|
|
|
|
`categorization_field_name`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=categorization-field-name]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`categorization_filters`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(array of strings)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=categorization-filters]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin analysis_config.detectors
|
|
|
|
`detectors`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(array) An array of detector configuration objects. Detector configuration
|
|
|
|
objects specify which data fields a job analyzes. They also specify which
|
|
|
|
analytical functions are used. You can specify multiple detectors for a job.
|
|
|
|
+
|
|
|
|
NOTE: If the `detectors` array does not contain at least one detector,
|
|
|
|
no analysis can occur and an error is returned.
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `detectors`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`by_field_name`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=by-field-name]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin analysis_config.detectors.custom_rules
|
|
|
|
[[put-customrules]]`custom_rules`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(array)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules]
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `custom_rules`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`actions`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(array)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-actions]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin analysis_config.detectors.custom_rules.conditions
|
|
|
|
`conditions`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(array)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-conditions]
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `conditions`
|
|
|
|
[%collapsible%open]
|
|
|
|
=======
|
|
|
|
`applies_to`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-conditions-applies-to]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`operator`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-conditions-operator]
|
2020-03-30 14:06:33 -04:00
|
|
|
|
|
|
|
`value`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(double)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-conditions-value]
|
2020-03-30 14:06:33 -04:00
|
|
|
=======
|
|
|
|
//End analysis_config.detectors.custom_rules.conditions
|
|
|
|
|
|
|
|
//Begin analysis_config.detectors.custom_rules.scope
|
|
|
|
`scope`:::
|
|
|
|
(object)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-scope]
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `scope`
|
|
|
|
[%collapsible%open]
|
|
|
|
=======
|
|
|
|
`filter_id`::::
|
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-scope-filter-id]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`filter_type`::::
|
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-rules-scope-filter-type]
|
2020-03-30 14:06:33 -04:00
|
|
|
=======
|
|
|
|
//End analysis_config.detectors.custom_rules.scope
|
|
|
|
======
|
|
|
|
//End analysis_config.detectors.custom_rules
|
|
|
|
|
|
|
|
`detector_description`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=detector-description]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`detector_index`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(integer)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=detector-index]
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
2020-01-09 11:34:34 -05:00
|
|
|
If you specify a value for this property, it is ignored.
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`exclude_frequent`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=exclude-frequent]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`field_name`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=detector-field-name]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`function`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=function]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`over_field_name`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=over-field-name]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`partition_field_name`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=partition-field-name]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`use_null`::::
|
2019-12-27 16:30:26 -05:00
|
|
|
(boolean)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=use-null]
|
2020-03-30 14:06:33 -04:00
|
|
|
=====
|
|
|
|
//End analysis_config.detectors
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`influencers`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(array of strings)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=influencers]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`latency`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(<<time-units,time units>>)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=latency]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`multivariate_by_fields`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(boolean)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=multivariate-by-fields]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-06-06 03:15:17 -04:00
|
|
|
//Begin analysis_config.per_partition_categorization
|
|
|
|
`per_partition_categorization`:::
|
|
|
|
(Optional, object)
|
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=per-partition-categorization]
|
|
|
|
+
|
|
|
|
.Properties of `per_partition_categorization`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`enabled`::::
|
|
|
|
(boolean)
|
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=per-partition-categorization-enabled]
|
|
|
|
|
|
|
|
`stop_on_warn`::::
|
|
|
|
(boolean)
|
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=per-partition-categorization-stop-on-warn]
|
|
|
|
=====
|
|
|
|
//End analysis_config.per_partition_categorization
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`summary_count_field_name`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=summary-count-field-name]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End analysis_config
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin analysis_limits
|
2019-12-27 16:30:26 -05:00
|
|
|
[[put-analysislimits]]`analysis_limits`::
|
|
|
|
(Optional, object)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=analysis-limits]
|
2019-12-27 16:30:26 -05:00
|
|
|
+
|
2020-03-30 14:06:33 -04:00
|
|
|
.Properties of `analysis_limits`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`categorization_examples_limit`:::
|
|
|
|
(long)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=categorization-examples-limit]
|
2020-03-30 14:06:33 -04:00
|
|
|
|
|
|
|
`model_memory_limit`:::
|
|
|
|
(long or string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-memory-limit]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End analysis_limits
|
2017-04-11 21:52:47 -04:00
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`background_persist_interval`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, <<time-units, time units>>)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=background-persist-interval]
|
2019-07-12 11:26:31 -04:00
|
|
|
|
2019-12-27 16:30:26 -05:00
|
|
|
[[put-customsettings]]`custom_settings`::
|
|
|
|
(Optional, object)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=custom-settings]
|
2019-07-12 11:26:31 -04:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin data_description
|
2019-12-27 16:30:26 -05:00
|
|
|
[[put-datadescription]]`data_description`::
|
|
|
|
(Required, object)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=data-description]
|
2020-03-30 14:06:33 -04:00
|
|
|
//End data_description
|
2019-07-12 11:26:31 -04:00
|
|
|
|
2020-05-05 09:31:58 -04:00
|
|
|
`daily_model_snapshot_retention_after_days`::
|
|
|
|
(Optional, long)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=daily-model-snapshot-retention-after-days]
|
2020-05-05 09:31:58 -04:00
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`description`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, string) A description of the job.
|
2019-07-12 11:26:31 -04:00
|
|
|
|
|
|
|
`groups`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, array of strings)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=groups]
|
2019-07-12 11:26:31 -04:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
//Begin model_plot_config
|
2019-07-12 11:26:31 -04:00
|
|
|
`model_plot_config`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, object)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-plot-config]
|
2020-03-30 14:06:33 -04:00
|
|
|
+
|
|
|
|
.Properties of `model_plot_config`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
2020-06-04 09:15:35 -04:00
|
|
|
`annotations_enabled`:::
|
|
|
|
(boolean)
|
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-plot-config-annotations-enabled]
|
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`enabled`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
(boolean)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-plot-config-enabled]
|
2019-12-27 16:30:26 -05:00
|
|
|
|
2020-03-30 14:06:33 -04:00
|
|
|
`terms`:::
|
2019-12-27 16:30:26 -05:00
|
|
|
experimental[] (string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-plot-config-terms]
|
2020-03-30 14:06:33 -04:00
|
|
|
====
|
|
|
|
//End model_plot_config
|
2019-07-12 11:26:31 -04:00
|
|
|
|
|
|
|
`model_snapshot_retention_days`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, long)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-snapshot-retention-days]
|
2019-07-12 11:26:31 -04:00
|
|
|
|
|
|
|
`renormalization_window_days`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, long)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=renormalization-window-days]
|
2019-07-12 11:26:31 -04:00
|
|
|
|
|
|
|
`results_index_name`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=results-index-name]
|
2019-07-12 11:26:31 -04:00
|
|
|
|
|
|
|
`results_retention_days`::
|
2019-12-27 16:30:26 -05:00
|
|
|
(Optional, long)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=results-retention-days]
|
2017-04-25 17:08:29 -04:00
|
|
|
|
2019-06-27 12:42:47 -04:00
|
|
|
[[ml-put-job-example]]
|
2020-07-20 16:10:54 -04:00
|
|
|
== {api-examples-title}
|
2017-04-04 18:26:39 -04:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2017-04-04 18:26:39 -04:00
|
|
|
--------------------------------------------------
|
2018-12-07 15:34:11 -05:00
|
|
|
PUT _ml/anomaly_detectors/total-requests
|
2017-04-04 18:26:39 -04:00
|
|
|
{
|
2018-02-09 12:16:24 -05:00
|
|
|
"description" : "Total sum of requests",
|
|
|
|
"analysis_config" : {
|
|
|
|
"bucket_span":"10m",
|
|
|
|
"detectors": [
|
|
|
|
{
|
|
|
|
"detector_description": "Sum of total",
|
|
|
|
"function": "sum",
|
|
|
|
"field_name": "total"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"data_description" : {
|
|
|
|
"time_field":"timestamp",
|
|
|
|
"time_format": "epoch_ms"
|
|
|
|
}
|
2017-04-04 18:26:39 -04:00
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
When the job is created, you receive the following results:
|
2019-09-06 16:09:09 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
2017-04-04 18:26:39 -04:00
|
|
|
----
|
|
|
|
{
|
2019-07-08 14:43:18 -04:00
|
|
|
"job_id" : "total-requests",
|
|
|
|
"job_type" : "anomaly_detector",
|
2019-12-27 16:30:26 -05:00
|
|
|
"job_version" : "7.5.0",
|
2019-07-08 14:43:18 -04:00
|
|
|
"description" : "Total sum of requests",
|
|
|
|
"create_time" : 1562352500629,
|
|
|
|
"analysis_config" : {
|
|
|
|
"bucket_span" : "10m",
|
|
|
|
"detectors" : [
|
2017-04-04 18:26:39 -04:00
|
|
|
{
|
2019-07-08 14:43:18 -04:00
|
|
|
"detector_description" : "Sum of total",
|
|
|
|
"function" : "sum",
|
|
|
|
"field_name" : "total",
|
|
|
|
"detector_index" : 0
|
2017-04-04 18:26:39 -04:00
|
|
|
}
|
|
|
|
],
|
2019-07-08 14:43:18 -04:00
|
|
|
"influencers" : [ ]
|
2017-04-04 18:26:39 -04:00
|
|
|
},
|
2019-07-08 14:43:18 -04:00
|
|
|
"analysis_limits" : {
|
|
|
|
"model_memory_limit" : "1024mb",
|
|
|
|
"categorization_examples_limit" : 4
|
2017-08-18 14:29:08 -04:00
|
|
|
},
|
2019-07-08 14:43:18 -04:00
|
|
|
"data_description" : {
|
|
|
|
"time_field" : "timestamp",
|
|
|
|
"time_format" : "epoch_ms"
|
2017-04-04 18:26:39 -04:00
|
|
|
},
|
2020-05-05 09:31:58 -04:00
|
|
|
"model_snapshot_retention_days" : 10,
|
|
|
|
"daily_model_snapshot_retention_after_days" : 1,
|
2019-10-15 01:55:11 -04:00
|
|
|
"results_index_name" : "shared",
|
|
|
|
"allow_lazy_open" : false
|
2017-04-04 18:26:39 -04:00
|
|
|
}
|
|
|
|
----
|
2019-12-27 16:30:26 -05:00
|
|
|
// TESTRESPONSE[s/"job_version" : "7.5.0"/"job_version" : $body.job_version/]
|
2019-07-08 14:43:18 -04:00
|
|
|
// TESTRESPONSE[s/1562352500629/$body.$_path/]
|