public static interface Anomaly.Builder extends SdkPojo, CopyableBuilder<Anomaly.Builder,Anomaly>
Modifier and Type | Method and Description |
---|---|
Anomaly.Builder |
instances(AnomalyInstance... instances)
A list of the instances of the detected anomalies during the requested period.
|
Anomaly.Builder |
instances(Collection<AnomalyInstance> instances)
A list of the instances of the detected anomalies during the requested period.
|
Anomaly.Builder |
instances(Consumer<AnomalyInstance.Builder>... instances)
A list of the instances of the detected anomalies during the requested period.
|
default Anomaly.Builder |
metric(Consumer<Metric.Builder> metric)
Details about the metric that the analysis used when it detected the anomaly.
|
Anomaly.Builder |
metric(Metric metric)
Details about the metric that the analysis used when it detected the anomaly.
|
Anomaly.Builder |
reason(String reason)
The reason for which metric was flagged as anomalous.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Anomaly.Builder instances(Collection<AnomalyInstance> instances)
A list of the instances of the detected anomalies during the requested period.
instances
- A list of the instances of the detected anomalies during the requested period.Anomaly.Builder instances(AnomalyInstance... instances)
A list of the instances of the detected anomalies during the requested period.
instances
- A list of the instances of the detected anomalies during the requested period.Anomaly.Builder instances(Consumer<AnomalyInstance.Builder>... instances)
A list of the instances of the detected anomalies during the requested period.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #instances(List)
.instances
- a consumer that will call methods on List.Builder
#instances(List)
Anomaly.Builder metric(Metric metric)
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
metric
- Details about the metric that the analysis used when it detected the anomaly. The metric includes the
name of the frame that was analyzed with the type and thread states used to derive the metric value
for that frame.default Anomaly.Builder metric(Consumer<Metric.Builder> metric)
Details about the metric that the analysis used when it detected the anomaly. The metric includes the name of the frame that was analyzed with the type and thread states used to derive the metric value for that frame.
This is a convenience that creates an instance of theMetric.Builder
avoiding the need to create one
manually via Metric.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to metric(Metric)
.metric
- a consumer that will call methods on Metric.Builder
metric(Metric)
Anomaly.Builder reason(String reason)
The reason for which metric was flagged as anomalous.
reason
- The reason for which metric was flagged as anomalous.