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.
|
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 AWS IoT SiteWise computes the metric's aggregation expression.
|
Metric.Builder |
window(MetricWindow window)
The window (time interval) over which AWS 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 AWS 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 AWS 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 that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #variables(List) .variables - a consumer that will call methods on List.Builder #variables(List) Metric.Builder window(MetricWindow window)
The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression. AWS IoT
SiteWise computes one data point per window.
window - The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression.
AWS IoT SiteWise computes one data point per window.default Metric.Builder window(Consumer<MetricWindow.Builder> window)
The window (time interval) over which AWS IoT SiteWise computes the metric's aggregation expression. AWS 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)Copyright © 2021. All rights reserved.