public static interface Metric.Builder extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
| Modifier and Type | Method and Description |
|---|---|
Metric.Builder |
expression(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.
|
Metric.Builder |
processingConfig(MetricProcessingConfig processingConfig)
The processing configuration for the given metric property.
|
Metric.Builder |
variables(Collection<ExpressionVariable> variables)
The list of variables used in the expression.
|
Metric.Builder |
variables(Consumer<ExpressionVariable.Builder>... variables)
The list of variables used in the expression.
|
Metric.Builder |
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.
|
Metric.Builder |
window(MetricWindow window)
The window (time interval) over which IoT SiteWise computes the metric's aggregation expression.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMetric.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.
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.
Metric.Builder variables(Collection<ExpressionVariable> variables)
The list of variables used in the expression.
variables - The list of variables used in the expression.Metric.Builder variables(ExpressionVariable... variables)
The list of variables used in the expression.
variables - The list of variables used in the expression.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.Builder avoiding the need to
create one manually via
ExpressionVariable.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #variables(List.
variables - a consumer that will call methods on
ExpressionVariable.Builder#variables(java.util.Collection) 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.
window - The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT
SiteWise computes one data point per 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 window.
MetricWindow.Builder avoiding the need
to create one manually via MetricWindow.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to window(MetricWindow).
window - a consumer that will call methods on MetricWindow.Builderwindow(MetricWindow)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.
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.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.Builder avoiding
the need to create one manually via MetricProcessingConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to processingConfig(MetricProcessingConfig).
processingConfig - a consumer that will call methods on MetricProcessingConfig.BuilderprocessingConfig(MetricProcessingConfig)Copyright © 2022. All rights reserved.