get-overall-buckets.asciidoc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --
  2. :api: get-overall-buckets
  3. :request: GetOverallBucketsRequest
  4. :response: GetOverallBucketsResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get overall buckets API
  8. Retrieves overall bucket results that summarize the bucket results of multiple
  9. {anomaly-jobs}.
  10. It accepts a +{request}+ object and responds
  11. with a +{response}+ object.
  12. [id="{upid}-{api}-request"]
  13. ==== Get overall buckets request
  14. A +{request}+ object gets created with one or more `jobId`.
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> Constructing a new request referencing job IDs `jobId1` and `jobId2`.
  20. ==== Optional arguments
  21. The following arguments are optional:
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-bucket-span]
  25. --------------------------------------------------
  26. <1> The span of the overall buckets. Must be greater or equal to the jobs'
  27. largest `bucket_span`.
  28. ["source","java",subs="attributes,callouts,macros"]
  29. --------------------------------------------------
  30. include-tagged::{doc-tests-file}[{api}-end]
  31. --------------------------------------------------
  32. <1> Overall buckets with timestamps earlier than this time will be returned.
  33. ["source","java",subs="attributes,callouts,macros"]
  34. --------------------------------------------------
  35. include-tagged::{doc-tests-file}[{api}-exclude-interim]
  36. --------------------------------------------------
  37. <1> If `true`, interim results will be excluded. Overall buckets are interim if
  38. any of the job buckets within the overall bucket interval are interim. Defaults
  39. to `false`.
  40. ["source","java",subs="attributes,callouts,macros"]
  41. --------------------------------------------------
  42. include-tagged::{doc-tests-file}[{api}-overall-score]
  43. --------------------------------------------------
  44. <1> Overall buckets with overall scores greater or equal than this value will be
  45. returned.
  46. ["source","java",subs="attributes,callouts,macros"]
  47. --------------------------------------------------
  48. include-tagged::{doc-tests-file}[{api}-start]
  49. --------------------------------------------------
  50. <1> Overall buckets with timestamps on or after this time will be returned.
  51. ["source","java",subs="attributes,callouts,macros"]
  52. --------------------------------------------------
  53. include-tagged::{doc-tests-file}[{api}-top-n]
  54. --------------------------------------------------
  55. <1> The number of top job bucket scores to be used in the `overall_score`
  56. calculation. Defaults to `1`.
  57. include::../execution.asciidoc[]
  58. [id="{upid}-{api}-response"]
  59. ==== Get overall buckets response
  60. The returned +{response}+ contains the requested buckets:
  61. ["source","java",subs="attributes,callouts,macros"]
  62. --------------------------------------------------
  63. include-tagged::{doc-tests-file}[{api}-response]
  64. --------------------------------------------------
  65. <1> The count of overall buckets that were matched.
  66. <2> The overall buckets retrieved.