2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: get-datafeed
|
|
|
|
:request: GetDatafeedRequest
|
|
|
|
:response: GetDatafeedResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2018-09-16 06:54:55 -04:00
|
|
|
=== Get Datafeed API
|
|
|
|
|
|
|
|
The Get Datafeed API provides the ability to get {ml} datafeeds in the cluster.
|
2018-10-05 11:45:46 -04:00
|
|
|
It accepts a +{request}+ object and responds
|
|
|
|
with a +{response}+ object.
|
2018-09-16 06:54:55 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-09-16 06:54:55 -04:00
|
|
|
==== Get Datafeed Request
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
A +{request}+ object gets can have any number of `datafeedId` entries.
|
2018-09-16 06:54:55 -04:00
|
|
|
However, they all must be non-null. An empty list is the same as requesting for all datafeeds.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-09-16 06:54:55 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing existing `datafeedIds`, can contain wildcards
|
|
|
|
<2> Whether to ignore if a wildcard expression matches no datafeeds.
|
|
|
|
(This includes `_all` string or when no datafeeds have been specified)
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Get Datafeed Response
|
2018-09-16 06:54:55 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-09-16 06:54:55 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The count of retrieved datafeeds
|
|
|
|
<2> The retrieved datafeeds
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|