delete-forecast.asciidoc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --
  2. :api: delete-forecast
  3. :request: DeleteForecastRequest
  4. :response: AcknowledgedResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Delete Forecast API
  8. The Delete Forecast API provides the ability to delete a {ml} job's
  9. forecast in the cluster.
  10. It accepts a +{request}+ object and responds
  11. with an +{response}+ object.
  12. [id="{upid}-{api}-request"]
  13. ==== Delete Forecast Request
  14. A +{request}+ object gets created with an existing non-null `jobId`.
  15. All other fields are optional for the request.
  16. ["source","java",subs="attributes,callouts,macros"]
  17. --------------------------------------------------
  18. include-tagged::{doc-tests-file}[{api}-request]
  19. --------------------------------------------------
  20. <1> Constructing a new request referencing an existing `jobId`
  21. ==== Optional Arguments
  22. The following arguments are optional.
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[{api}-request-options]
  26. --------------------------------------------------
  27. <1> Sets the specific forecastIds to delete, can be set to `_all` to indicate ALL forecasts for the given
  28. `jobId`
  29. <2> Set the timeout for the request to respond, default is 30 seconds
  30. <3> Set the `allow_no_forecasts` option. When `true` no error will be returned if an `_all`
  31. request finds no forecasts. It defaults to `true`
  32. [id="{upid}-{api}-response"]
  33. ==== Delete Forecast Response
  34. An +{response}+ contains an acknowledgement of the forecast(s) deletion
  35. ["source","java",subs="attributes,callouts,macros"]
  36. --------------------------------------------------
  37. include-tagged::{doc-tests-file}[{api}-response]
  38. --------------------------------------------------
  39. <1> `isAcknowledged()` indicates if the forecast was successfully deleted or not.
  40. include::../execution.asciidoc[]