Identifier for the datafeed. You can stop multiple datafeeds in a single API request by using a comma-separated
list of datafeeds or a wildcard expression. You can close all datafeeds by using _all or by specifying * as
the identifier.
Specifies what to do when the request:
_all string or no identifiers and there are no matches.If true, the API returns an empty datafeeds array when there are no matches and the subset of results when
there are partial matches. If false, the API returns a 404 status code when there are no matches or only
partial matches.
If true, the datafeed is stopped forcefully.
Specifies the amount of time to wait until a datafeed stops.
Refer to the description for the allow_no_match query parameter.
Default value is true.
Refer to the description for the force query parameter.
Default value is false.
Refer to the description for the timeout query parameter.
POST _ml/datafeeds/datafeed-low_request_rate/_stop
{
"timeout": "30s"
}
resp = client.ml.stop_datafeed(
datafeed_id="datafeed-low_request_rate",
timeout="30s",
)
const response = await client.ml.stopDatafeed({
datafeed_id: "datafeed-low_request_rate",
timeout: "30s",
});
response = client.ml.stop_datafeed(
datafeed_id: "datafeed-low_request_rate",
body: {
"timeout": "30s"
}
)
$resp = $client->ml()->stopDatafeed([
"datafeed_id" => "datafeed-low_request_rate",
"body" => [
"timeout" => "30s",
],
]);
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d '{"timeout":"30s"}' "$ELASTICSEARCH_URL/_ml/datafeeds/datafeed-low_request_rate/_stop"
{
"timeout": "30s"
}