@Stability(value=Stable)
public static interface CfnAssetModel.MetricProperty
extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotsitewise.*;
MetricProperty metricProperty = MetricProperty.builder()
.expression("expression")
.variables(List.of(ExpressionVariableProperty.builder()
.name("name")
.value(VariableValueProperty.builder()
.propertyLogicalId("propertyLogicalId")
// the properties below are optional
.hierarchyLogicalId("hierarchyLogicalId")
.build())
.build()))
.window(MetricWindowProperty.builder()
.tumbling(TumblingWindowProperty.builder()
.interval("interval")
// the properties below are optional
.offset("offset")
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAssetModel.MetricProperty.Builder
A builder for
CfnAssetModel.MetricProperty |
static class |
CfnAssetModel.MetricProperty.Jsii$Proxy
An implementation for
CfnAssetModel.MetricProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAssetModel.MetricProperty.Builder |
builder() |
String |
getExpression()
`CfnAssetModel.MetricProperty.Expression`.
|
Object |
getVariables()
`CfnAssetModel.MetricProperty.Variables`.
|
Object |
getWindow()
`CfnAssetModel.MetricProperty.Window`.
|
@Stability(value=Stable) @NotNull String getExpression()
@Stability(value=Stable) @NotNull Object getVariables()
@Stability(value=Stable) @NotNull Object getWindow()
@Stability(value=Stable) static CfnAssetModel.MetricProperty.Builder builder()
Copyright © 2021. All rights reserved.