Interface Metric.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Metric.Builder,Metric>,SdkBuilder<Metric.Builder,Metric>,SdkPojo
- Enclosing class:
- Metric
public static interface Metric.Builder extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Metric.Builderexpression(String expression)The mathematical expression that defines the metric aggregation function.default Metric.BuilderprocessingConfig(Consumer<MetricProcessingConfig.Builder> processingConfig)The processing configuration for the given metric property.Metric.BuilderprocessingConfig(MetricProcessingConfig processingConfig)The processing configuration for the given metric property.Metric.Buildervariables(Collection<ExpressionVariable> variables)The list of variables used in the expression.Metric.Buildervariables(Consumer<ExpressionVariable.Builder>... variables)The list of variables used in the expression.Metric.Buildervariables(ExpressionVariable... variables)The list of variables used in the expression.default Metric.Builderwindow(Consumer<MetricWindow.Builder> window)The window (time interval) over which IoT SiteWise computes the metric's aggregation expression.Metric.Builderwindow(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 Detail
-
expression
Metric.Builder expression(String 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
Metric.Builder variables(Collection<ExpressionVariable> 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
Metric.Builder variables(ExpressionVariable... 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
Metric.Builder variables(Consumer<ExpressionVariable.Builder>... variables)
The list of variables used in the expression.
This is a convenience method that creates an instance of theExpressionVariable.Builderavoiding the need to create one manually viaExpressionVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#variables(List.) - 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:
#variables(java.util.Collection)
-
window
Metric.Builder window(MetricWindow 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
default Metric.Builder window(Consumer<MetricWindow.Builder> 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.Builderavoiding the need to create one manually viaMetricWindow.builder().When the
Consumercompletes,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:
window(MetricWindow)
-
processingConfig
Metric.Builder processingConfig(MetricProcessingConfig 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
default Metric.Builder processingConfig(Consumer<MetricProcessingConfig.Builder> 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.Builderavoiding the need to create one manually viaMetricProcessingConfig.builder().When the
Consumercompletes,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:
processingConfig(MetricProcessingConfig)
-
-