2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: get-overall-buckets
|
|
|
|
:request: GetOverallBucketsRequest
|
|
|
|
:response: GetOverallBucketsResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2019-07-30 13:52:23 -04:00
|
|
|
=== Get overall buckets API
|
2018-09-03 08:34:36 -04:00
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
Retrieves overall bucket results that summarize the bucket results of multiple
|
|
|
|
{anomaly-jobs}.
|
2018-10-05 11:45:46 -04:00
|
|
|
It accepts a +{request}+ object and responds
|
|
|
|
with a +{response}+ object.
|
2018-09-03 08:34:36 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get overall buckets request
|
2018-09-03 08:34:36 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
A +{request}+ object gets created with one or more `jobId`.
|
2018-09-03 08:34:36 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing job IDs `jobId1` and `jobId2`.
|
|
|
|
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Optional arguments
|
2018-09-03 08:34:36 -04:00
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-bucket-span]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> The span of the overall buckets. Must be greater or equal to the jobs'
|
|
|
|
largest `bucket_span`.
|
2018-09-03 08:34:36 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-end]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Overall buckets with timestamps earlier than this time will be returned.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-exclude-interim]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> If `true`, interim results will be excluded. Overall buckets are interim if
|
|
|
|
any of the job buckets within the overall bucket interval are interim. Defaults
|
|
|
|
to `false`.
|
2018-09-03 08:34:36 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-overall-score]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> Overall buckets with overall scores greater or equal than this value will be
|
|
|
|
returned.
|
2018-09-03 08:34:36 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-start]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Overall buckets with timestamps on or after this time will be returned.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-top-n]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> The number of top job bucket scores to be used in the `overall_score`
|
|
|
|
calculation. Defaults to `1`.
|
2018-09-03 08:34:36 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|
2018-09-03 08:34:36 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2019-07-30 13:52:23 -04:00
|
|
|
==== Get overall buckets response
|
2018-09-03 08:34:36 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
The returned +{response}+ contains the requested buckets:
|
2018-09-03 08:34:36 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-09-03 08:34:36 -04:00
|
|
|
--------------------------------------------------
|
2019-07-30 13:52:23 -04:00
|
|
|
<1> The count of overall buckets that were matched.
|
|
|
|
<2> The overall buckets retrieved.
|