Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ IMPORTANT: This API returns a maximum of 10,000 {dfeeds}.
wildcard expression. If you do not specify one of these options, the API
returns statistics for all {dfeeds}.

[[ml-get-datafeed-stats-query-parms]]
==== {api-query-parms-title}

`allow_no_datafeeds`::
(Optional, boolean) Specifies what to do when the request:
+
--
* Contains wildcard expressions and there are no {datafeeds} that match.
* Contains the `_all` string or no identifiers and there are no matches.
* Contains wildcard expressions and there are only partial matches.

The default value is `true`, which returns an empty `datafeeds` array when
there are no matches and the subset of results when there are partial matches.
If this parameter is `false`, the request returns a `404` status code when there
are no matches or only partial matches.
--


[[ml-get-datafeed-stats-results]]
==== {api-response-body-title}

Expand All @@ -58,6 +76,13 @@ You must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster
privileges to use this API. For more information, see
{stack-ov}/security-privileges.html[Security Privileges].

[[ml-get-datafeed-stats-response-codes]]
==== {api-response-codes-title}

`404` (Missing resources)::
If `allow_no_datafeeds` is `false`, this code indicates that there are no
resources that match the request or only partial matches for the request.

[[ml-get-datafeed-stats-example]]
==== {api-examples-title}

Expand Down
24 changes: 24 additions & 0 deletions docs/reference/ml/anomaly-detection/apis/get-datafeed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@ IMPORTANT: This API returns a maximum of 10,000 {dfeeds}.
wildcard expression. If you do not specify one of these options, the API
returns information about all {dfeeds}.

[[ml-get-datafeed-query-parms]]
==== {api-query-parms-title}

`allow_no_datafeeds`::
(Optional, boolean) Specifies what to do when the request:
+
--
* Contains wildcard expressions and there are no {datafeeds} that match.
* Contains the `_all` string or no identifiers and there are no matches.
* Contains wildcard expressions and there are only partial matches.

The default value is `true`, which returns an empty `datafeeds` array when
there are no matches and the subset of results when there are partial matches.
If this parameter is `false`, the request returns a `404` status code when there
are no matches or only partial matches.
--

[[ml-get-datafeed-results]]
==== {api-response-body-title}

Expand All @@ -55,6 +72,13 @@ You must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster
privileges to use this API. For more information, see
{stack-ov}/security-privileges.html[Security Privileges].

[[ml-get-datafeed-response-codes]]
==== {api-response-codes-title}

`404` (Missing resources)::
If `allow_no_datafeeds` is `false`, this code indicates that there are no
resources that match the request or only partial matches for the request.

[[ml-get-datafeed-example]]
==== {api-examples-title}

Expand Down
24 changes: 24 additions & 0 deletions docs/reference/ml/anomaly-detection/apis/stop-datafeed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ comma-separated list of {dfeeds} or a wildcard expression. You can close all
(string) Identifier for the {dfeed}. It can be a {dfeed} identifier or a
wildcard expression.

[[ml-stop-datafeed-query-parms]]
==== {api-query-parms-title}

`allow_no_datafeeds`::
(Optional, boolean) Specifies what to do when the request:
+
--
* Contains wildcard expressions and there are no {datafeeds} that match.
* Contains the `_all` string or no identifiers and there are no matches.
* Contains wildcard expressions and there are only partial matches.

The default value is `true`, which returns an empty `datafeeds` array when
there are no matches and the subset of results when there are partial matches.
If this parameter is `false`, the request returns a `404` status code when there
are no matches or only partial matches.
--

[[ml-stop-datafeed-request-body]]
==== {api-request-body-title}

Expand All @@ -53,6 +70,13 @@ You must have `manage_ml`, or `manage` cluster privileges to use this API.
For more information, see
{stack-ov}/security-privileges.html[Security privileges].

[[ml-stop-datafeed-response-codes]]
==== {api-response-codes-title}

`404` (Missing resources)::
If `allow_no_datafeeds` is `false`, this code indicates that there are no
resources that match the request or only partial matches for the request.

[[ml-stop-datafeed-example]]
==== {api-examples-title}

Expand Down