get-overall-buckets.asciidoc 3.0 KB

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