update-job.asciidoc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --
  2. :api: update-job
  3. :request: UpdateJobRequest
  4. :response: PutJobResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Update Job API
  8. The Update Job API provides the ability to update a {ml} job.
  9. It accepts a +{request}+ object and responds
  10. with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Update Job Request
  13. An +{request}+ object gets created with a `JobUpdate` object.
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> Constructing a new request referencing a `JobUpdate` object
  19. ==== Optional Arguments
  20. The `JobUpdate` object has many optional arguments with which to update an existing {ml}
  21. job. An existing, non-null `jobId` must be referenced in its creation.
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-options]
  25. --------------------------------------------------
  26. <1> Mandatory, non-null `jobId` referencing an existing {ml} job
  27. <2> Updated description
  28. <3> Updated analysis limits
  29. <4> Updated background persistence interval
  30. <5> Updated analysis config's categorization filters
  31. <6> Updated detectors through the `JobUpdate.DetectorUpdate` object
  32. <7> Updated group membership
  33. <8> Updated result retention
  34. <9> Updated model plot configuration
  35. <10> Updated model snapshot retention setting
  36. <11> Updated custom settings
  37. <12> Updated renormalization window
  38. Included with these options are specific optional `JobUpdate.DetectorUpdate` updates.
  39. ["source","java",subs="attributes,callouts,macros"]
  40. --------------------------------------------------
  41. include-tagged::{doc-tests-file}[{api}-detector-options]
  42. --------------------------------------------------
  43. <1> The index of the detector. `O` means unknown
  44. <2> The optional description of the detector
  45. <3> The `DetectionRule` rules that apply to this detector
  46. include::../execution.asciidoc[]
  47. [id="{upid}-{api}-response"]
  48. ==== Update Job Response
  49. A +{response}+ contains the updated `Job` object
  50. ["source","java",subs="attributes,callouts,macros"]
  51. --------------------------------------------------
  52. include-tagged::{doc-tests-file}[{api}-response]
  53. --------------------------------------------------
  54. <1> `getResponse()` returns the updated `Job` object