Interface MetricMathAnomalyDetector.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricMathAnomalyDetector.Builder,,MetricMathAnomalyDetector> SdkBuilder<MetricMathAnomalyDetector.Builder,,MetricMathAnomalyDetector> SdkPojo
- Enclosing class:
MetricMathAnomalyDetector
-
Method Summary
Modifier and TypeMethodDescriptionmetricDataQueries(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.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.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
MetricDataQueriesgets a metric or performs a math expression. One item inMetricDataQueriesis the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnDatatotruefor this object in the array. For all other expressions and metrics, setReturnDatatofalse. 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 inMetricDataQueriesgets a metric or performs a math expression. One item inMetricDataQueriesis the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnDatatotruefor this object in the array. For all other expressions and metrics, setReturnDatatofalse. 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
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
MetricDataQueriesgets a metric or performs a math expression. One item inMetricDataQueriesis the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnDatatotruefor this object in the array. For all other expressions and metrics, setReturnDatatofalse. 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 inMetricDataQueriesgets a metric or performs a math expression. One item inMetricDataQueriesis the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnDatatotruefor this object in the array. For all other expressions and metrics, setReturnDatatofalse. 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 theMetricDataQueriesgets a metric or performs a math expression. One item inMetricDataQueriesis the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnDatatotruefor this object in the array. For all other expressions and metrics, setReturnDatatofalse. The designated expression must return a single time series.MetricDataQuery.Builderavoiding the need to create one manually viaMetricDataQuery.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricDataQueries(List<MetricDataQuery>).- 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:
-