2020-02-26 12:20:36 -05:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="platinum"]
|
|
|
|
[[cat-datafeeds]]
|
|
|
|
=== cat {dfeeds} API
|
|
|
|
++++
|
|
|
|
<titleabbrev>cat {dfeeds}</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Returns configuration and usage information about {dfeeds}.
|
|
|
|
|
|
|
|
[[cat-datafeeds-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`GET /_cat/ml/datafeeds/<feed_id>` +
|
|
|
|
|
|
|
|
`GET /_cat/ml/datafeeds`
|
|
|
|
|
|
|
|
[[cat-datafeeds-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
|
|
|
|
<<security-privileges>> and {ml-docs}/setup.html[Set up {ml-features}].
|
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
|
2020-02-26 12:20:36 -05:00
|
|
|
[[cat-datafeeds-desc]]
|
|
|
|
==== {api-description-title}
|
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
{dfeeds-cap} retrieve data from {es} for analysis by {anomaly-jobs}. For more
|
|
|
|
information, see {ml-docs}/ml-dfeeds.html[{dfeeds-cap}].
|
|
|
|
|
|
|
|
NOTE: This API returns a maximum of 10,000 jobs.
|
2020-02-26 12:20:36 -05:00
|
|
|
|
|
|
|
[[cat-datafeeds-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
|
|
|
`<feed_id>`::
|
|
|
|
(Optional, string)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id]
|
|
|
|
|
|
|
|
[[cat-datafeeds-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
|
|
|
`allow_no_datafeeds`::
|
|
|
|
(Optional, boolean)
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=allow-no-datafeeds]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=http-format]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-h]
|
|
|
|
+
|
2020-03-02 10:28:55 -05:00
|
|
|
If you do not specify which columns to include, the API returns the default
|
|
|
|
columns. If you explicitly specify one or more columns, it returns only the
|
|
|
|
specified columns.
|
|
|
|
+
|
|
|
|
Valid columns are:
|
2020-02-26 12:20:36 -05:00
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`assignment_explanation`, `ae`:::
|
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=assignment-explanation-datafeeds]
|
|
|
|
|
|
|
|
`buckets.count`, `bc`, `bucketsCount`:::
|
|
|
|
(Default)
|
2020-02-26 12:20:36 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-count]
|
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`id`:::
|
|
|
|
(Default)
|
2020-02-26 12:20:36 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id]
|
2020-03-02 10:28:55 -05:00
|
|
|
|
|
|
|
`node.address`, `na`, `nodeAddress`:::
|
2020-02-26 12:20:36 -05:00
|
|
|
The network address of the node.
|
|
|
|
+
|
2020-03-02 10:28:55 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
|
2020-02-26 12:20:36 -05:00
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`node.ephemeral_id`, `ne`, `nodeEphemeralId`:::
|
2020-02-26 12:20:36 -05:00
|
|
|
The ephemeral ID of the node.
|
|
|
|
+
|
2020-03-02 10:28:55 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
|
2020-02-26 12:20:36 -05:00
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`node.id`, `ni`, `nodeId`:::
|
2020-02-26 12:20:36 -05:00
|
|
|
The unique identifier of the node.
|
|
|
|
+
|
2020-03-02 10:28:55 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
|
2020-02-26 12:20:36 -05:00
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`node.name`, `nn`, `nodeName`:::
|
2020-02-26 12:20:36 -05:00
|
|
|
The node name.
|
|
|
|
+
|
2020-03-02 10:28:55 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
|
2020-02-26 12:20:36 -05:00
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`search.bucket_avg`, `sba`, `searchBucketAvg`:::
|
2020-02-26 12:20:36 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=search-bucket-avg]
|
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`search.count`, `sc`, `searchCount`:::
|
|
|
|
(Default)
|
2020-02-26 12:20:36 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=search-count]
|
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`search.exp_avg_hour`, `seah`, `searchExpAvgHour`:::
|
2020-02-26 12:20:36 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=search-exp-avg-hour]
|
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`search.time`, `st`, `searchTime`:::
|
2020-02-26 12:20:36 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=search-time]
|
|
|
|
|
2020-03-02 10:28:55 -05:00
|
|
|
`state`, `s`:::
|
|
|
|
(Default)
|
2020-02-26 12:20:36 -05:00
|
|
|
include::{docdir}/ml/ml-shared.asciidoc[tag=state-datafeed]
|
2020-03-02 10:28:55 -05:00
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=help]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
|
2020-02-26 12:20:36 -05:00
|
|
|
|
|
|
|
[[cat-datafeeds-example]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
|
|
|
[source,console]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET _cat/ml/datafeeds?v
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[skip:kibana sample data]
|
|
|
|
|
|
|
|
[source,console-result]
|
|
|
|
----
|
2020-03-02 10:28:55 -05:00
|
|
|
id state buckets.count search.count
|
2020-02-26 12:20:36 -05:00
|
|
|
datafeed-high_sum_total_sales stopped 743 7
|
|
|
|
datafeed-low_request_rate stopped 1457 3
|
|
|
|
datafeed-response_code_rates stopped 1460 18
|
|
|
|
datafeed-url_scanning stopped 1460 18
|
|
|
|
----
|
|
|
|
// TESTRESPONSE[skip:kibana sample data]
|