Interface Metric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Metric.Builder,
,Metric> SdkBuilder<Metric.Builder,
,Metric> SdkPojo
- Enclosing class:
Metric
-
Method Summary
Modifier and TypeMethodDescriptionexpression
(String expression) The mathematical expression that defines the metric aggregation function.default Metric.Builder
processingConfig
(Consumer<MetricProcessingConfig.Builder> processingConfig) The processing configuration for the given metric property.processingConfig
(MetricProcessingConfig processingConfig) The processing configuration for the given metric property.variables
(Collection<ExpressionVariable> variables) The list of variables used in the expression.variables
(Consumer<ExpressionVariable.Builder>... variables) The list of variables used in the expression.variables
(ExpressionVariable... variables) The list of variables used in the expression.default Metric.Builder
window
(Consumer<MetricWindow.Builder> window) The window (time interval) over which IoT SiteWise computes the metric's aggregation expression.window
(MetricWindow window) The window (time interval) over which IoT SiteWise computes the metric's aggregation 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 Details
-
expression
The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.
For more information, see Quotas in the IoT SiteWise User Guide.
- Parameters:
expression
- The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.For more information, see Quotas in the IoT SiteWise User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
The list of variables used in the expression.
- Parameters:
variables
- The list of variables used in the expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
The list of variables used in the expression.
- Parameters:
variables
- The list of variables used in the expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
The list of variables used in the expression.
This is a convenience method that creates an instance of theExpressionVariable.Builder
avoiding the need to create one manually viaExpressionVariable.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovariables(List<ExpressionVariable>)
.- Parameters:
variables
- a consumer that will call methods onExpressionVariable.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
window
The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per
window
.- Parameters:
window
- The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point perwindow
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
window
The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per
This is a convenience method that creates an instance of thewindow
.MetricWindow.Builder
avoiding the need to create one manually viaMetricWindow.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towindow(MetricWindow)
.- Parameters:
window
- a consumer that will call methods onMetricWindow.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
processingConfig
The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.
- Parameters:
processingConfig
- The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
processingConfig
The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.
This is a convenience method that creates an instance of theMetricProcessingConfig.Builder
avoiding the need to create one manually viaMetricProcessingConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprocessingConfig(MetricProcessingConfig)
.- Parameters:
processingConfig
- a consumer that will call methods onMetricProcessingConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-