2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: get-datafeed-stats
|
|
|
|
:request: GetDatafeedStatsRequest
|
|
|
|
:response: GetDatafeedStatsResponse
|
|
|
|
--
|
2019-09-10 11:26:56 -04:00
|
|
|
[role="xpack"]
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}"]
|
2019-07-30 13:52:23 -04:00
|
|
|
=== Get datafeed stats API
|
2018-10-04 17:43:06 -04:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
Retrieves any number of {ml} datafeeds' statistics in the cluster.
|
|
|
|
It accepts a +{request}+ object and responds with a +{response}+ object.
|
2018-10-04 17:43:06 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get datafeed stats request
|
2018-10-04 17:43:06 -04:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
A +{request}+ object can have any number of `datafeedId` entries. However, they
|
|
|
|
all must be non-null. An empty list is the same as requesting statistics for all
|
|
|
|
datafeeds.
|
2018-10-04 17:43:06 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-10-04 17:43:06 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> Constructing a new request referencing existing `datafeedIds`. It can
|
|
|
|
contain wildcards.
|
2018-10-04 17:43:06 -04:00
|
|
|
<2> Whether to ignore if a wildcard expression matches no datafeeds.
|
2019-07-30 13:52:23 -04:00
|
|
|
(This includes `_all` string or when no datafeeds have been specified).
|
2018-10-04 17:43:06 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|
2018-10-04 17:43:06 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get datafeed stats response
|
2018-10-05 11:45:46 -04:00
|
|
|
The returned +{response}+ contains the requested datafeed statistics:
|
2018-10-04 17:43:06 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-10-04 17:43:06 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> `count()` indicates the number of datafeeds statistics found.
|
|
|
|
<2> `datafeedStats()` is the collection of {ml} `DatafeedStats` objects found.
|