1
0

stop-datafeed.asciidoc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[ml-stop-datafeed]]
  4. = Stop {dfeeds} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Stop {dfeeds}</titleabbrev>
  8. ++++
  9. Stops one or more {dfeeds}.
  10. [[ml-stop-datafeed-request]]
  11. == {api-request-title}
  12. `POST _ml/datafeeds/<feed_id>/_stop` +
  13. `POST _ml/datafeeds/<feed_id>,<feed_id>/_stop` +
  14. `POST _ml/datafeeds/_all/_stop`
  15. [[ml-stop-datafeed-prereqs]]
  16. == {api-prereq-title}
  17. Requires the `manage_ml` cluster privilege. This privilege is included in the
  18. `machine_learning_admin` built-in role.
  19. [[ml-stop-datafeed-desc]]
  20. == {api-description-title}
  21. A {dfeed} that is stopped ceases to retrieve data from {es}.
  22. A {dfeed} can be started and stopped multiple times throughout its lifecycle.
  23. You can stop multiple {dfeeds} in a single API request by using a
  24. comma-separated list of {dfeeds} or a wildcard expression. You can close all
  25. {dfeeds} by using `_all` or by specifying `*` as the `<feed_id>`.
  26. [[ml-stop-datafeed-path-parms]]
  27. == {api-path-parms-title}
  28. `<feed_id>`::
  29. (Required, string)
  30. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=datafeed-id-wildcard]
  31. [[ml-stop-datafeed-query-parms]]
  32. == {api-query-parms-title}
  33. `allow_no_match`::
  34. (Optional, Boolean)
  35. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=allow-no-datafeeds]
  36. [[ml-stop-datafeed-request-body]]
  37. == {api-request-body-title}
  38. `force`::
  39. (Optional, Boolean) If true, the {dfeed} is stopped forcefully.
  40. `timeout`::
  41. (Optional, time) Controls the amount of time to wait until a {dfeed} stops.
  42. The default value is 20 seconds.
  43. [[ml-stop-datafeed-response-codes]]
  44. == {api-response-codes-title}
  45. `404` (Missing resources)::
  46. If `allow_no_match` is `false`, this code indicates that there are no
  47. resources that match the request or only partial matches for the request.
  48. [[ml-stop-datafeed-example]]
  49. == {api-examples-title}
  50. [source,console]
  51. --------------------------------------------------
  52. POST _ml/datafeeds/datafeed-low_request_rate/_stop
  53. {
  54. "timeout": "30s"
  55. }
  56. --------------------------------------------------
  57. // TEST[skip:Kibana sample data]
  58. When the {dfeed} stops, you receive the following results:
  59. [source,console-result]
  60. ----
  61. {
  62. "stopped": true
  63. }
  64. ----