update-data-frame-analytics.asciidoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --
  2. :api: update-data-frame-analytics
  3. :request: UpdateDataFrameAnalyticsRequest
  4. :response: UpdateDataFrameAnalyticsResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Update {dfanalytics-jobs} API
  9. beta::[]
  10. Updates an existing {dfanalytics-job}.
  11. The API accepts an +{request}+ object as a request and returns an +{response}+.
  12. [id="{upid}-{api}-request"]
  13. ==== Update {dfanalytics-jobs} request
  14. An +{request}+ requires the following argument:
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> The configuration of the {dfanalytics-job} update to perform
  20. [id="{upid}-{api}-config"]
  21. ==== {dfanalytics-cap} configuration update
  22. The `DataFrameAnalyticsConfigUpdate` object contains all the details about the {dfanalytics-job}
  23. configuration update and contains the following arguments:
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-config-update]
  27. --------------------------------------------------
  28. <1> The {dfanalytics-job} ID
  29. <2> The human-readable description
  30. <3> The memory limit for the model created as part of the analysis process
  31. <4> The maximum number of threads to be used by the analysis
  32. [id="{upid}-{api}-query-config"]
  33. include::../execution.asciidoc[]
  34. [id="{upid}-{api}-response"]
  35. ==== Response
  36. The returned +{response}+ contains the updated {dfanalytics-job}.
  37. ["source","java",subs="attributes,callouts,macros"]
  38. --------------------------------------------------
  39. include-tagged::{doc-tests-file}[{api}-response]
  40. --------------------------------------------------