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 {anomaly-job} API
  8. Provides the ability to update an {anomaly-job}.
  9. It accepts a +{request}+ object and responds with a +{response}+ object.
  10. [id="{upid}-{api}-request"]
  11. ==== Update {anomaly-job} request
  12. An +{request}+ object gets created with a `JobUpdate` object.
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> Constructing a new request referencing a `JobUpdate` object.
  18. ==== Optional arguments
  19. The `JobUpdate` object has many optional arguments with which to update an
  20. existing {anomaly-job}. An existing, non-null `jobId` must be referenced in its
  21. 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 {anomaly-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 {anomaly-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.