OpenSearch/docs/reference/cat/datafeeds.asciidoc

132 lines
3.5 KiB
Plaintext

[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}].
[[cat-datafeeds-desc]]
==== {api-description-title}
{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.
[[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]
+
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:
`assignment_explanation`, `ae`:::
include::{docdir}/ml/ml-shared.asciidoc[tag=assignment-explanation-datafeeds]
`buckets.count`, `bc`, `bucketsCount`:::
(Default)
include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-count]
`id`:::
(Default)
include::{docdir}/ml/ml-shared.asciidoc[tag=datafeed-id]
`node.address`, `na`, `nodeAddress`:::
The network address of the node.
+
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
`node.ephemeral_id`, `ne`, `nodeEphemeralId`:::
The ephemeral ID of the node.
+
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
`node.id`, `ni`, `nodeId`:::
The unique identifier of the node.
+
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
`node.name`, `nn`, `nodeName`:::
The node name.
+
include::{docdir}/ml/ml-shared.asciidoc[tag=node-datafeeds]
`search.bucket_avg`, `sba`, `searchBucketAvg`:::
include::{docdir}/ml/ml-shared.asciidoc[tag=search-bucket-avg]
`search.count`, `sc`, `searchCount`:::
(Default)
include::{docdir}/ml/ml-shared.asciidoc[tag=search-count]
`search.exp_avg_hour`, `seah`, `searchExpAvgHour`:::
include::{docdir}/ml/ml-shared.asciidoc[tag=search-exp-avg-hour]
`search.time`, `st`, `searchTime`:::
include::{docdir}/ml/ml-shared.asciidoc[tag=search-time]
`state`, `s`:::
(Default)
include::{docdir}/ml/ml-shared.asciidoc[tag=state-datafeed]
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]
[[cat-datafeeds-example]]
==== {api-examples-title}
[source,console]
--------------------------------------------------
GET _cat/ml/datafeeds?v
--------------------------------------------------
// TEST[skip:kibana sample data]
[source,console-result]
----
id state buckets.count search.count
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]