Interface MetricMathAnomalyDetector.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricMathAnomalyDetector.Builder,MetricMathAnomalyDetector>
,SdkBuilder<MetricMathAnomalyDetector.Builder,MetricMathAnomalyDetector>
,SdkPojo
- Enclosing class:
- MetricMathAnomalyDetector
public static interface MetricMathAnomalyDetector.Builder extends SdkPojo, CopyableBuilder<MetricMathAnomalyDetector.Builder,MetricMathAnomalyDetector>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricMathAnomalyDetector.Builder
metricDataQueries(Collection<MetricDataQuery> metricDataQueries)
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression.MetricMathAnomalyDetector.Builder
metricDataQueries(Consumer<MetricDataQuery.Builder>... metricDataQueries)
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression.MetricMathAnomalyDetector.Builder
metricDataQueries(MetricDataQuery... metricDataQueries)
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
metricDataQueries
MetricMathAnomalyDetector.Builder metricDataQueries(Collection<MetricDataQuery> metricDataQueries)
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item in
MetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.- Parameters:
metricDataQueries
- An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item inMetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataQueries
MetricMathAnomalyDetector.Builder metricDataQueries(MetricDataQuery... metricDataQueries)
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item in
MetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.- Parameters:
metricDataQueries
- An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item inMetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataQueries
MetricMathAnomalyDetector.Builder metricDataQueries(Consumer<MetricDataQuery.Builder>... metricDataQueries)
An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item in
This is a convenience method that creates an instance of theMetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.MetricDataQuery.Builder
avoiding the need to create one manually viaMetricDataQuery.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#metricDataQueries(List
.) - Parameters:
metricDataQueries
- a consumer that will call methods onMetricDataQuery.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricDataQueries(java.util.Collection
)
-
-