@Stability(value=Stable)
public static interface CfnAssetModel.TumblingWindowProperty
extends software.amazon.jsii.JsiiSerializable
You can use this window in metrics to aggregate data from properties and other assets.
You can use m , h , d , and w when you specify an interval or offset. Note that m represents minutes, h represents hours, d represents days, and w represents weeks. You can also use s to represent seconds in offset .
The interval and offset parameters support the ISO 8601 format . For example, PT5S represents 5 seconds, PT5M represents 5 minutes, and PT5H represents 5 hours.
Example:
// 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.*;
TumblingWindowProperty tumblingWindowProperty = TumblingWindowProperty.builder()
.interval("interval")
// the properties below are optional
.offset("offset")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAssetModel.TumblingWindowProperty.Builder
A builder for
CfnAssetModel.TumblingWindowProperty |
static class |
CfnAssetModel.TumblingWindowProperty.Jsii$Proxy
An implementation for
CfnAssetModel.TumblingWindowProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAssetModel.TumblingWindowProperty.Builder |
builder() |
String |
getInterval()
The time interval for the tumbling window.
|
default String |
getOffset()
The offset for the tumbling window.
|
@Stability(value=Stable) @NotNull String getInterval()
AWS IoT SiteWise computes the 1w interval the end of Sunday at midnight each week (UTC), the 1d interval at the end of each day at midnight (UTC), the 1h interval at the end of each hour, and so on.
When AWS IoT SiteWise aggregates data points for metric computations, the start of each interval is exclusive and the end of each interval is inclusive. AWS IoT SiteWise places the computed data point at the end of the interval.
@Stability(value=Stable) @Nullable default String getOffset()
For example, if you specify 18h for offset and 1d for interval , AWS IoT SiteWise aggregates data in one of the following ways:
For example, if you specify PT18H for offset and 1d for interval , AWS IoT SiteWise aggregates data in one of the following ways:
For example, if you specify 00:03:00 for offset , 5m for interval , and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC).
For example, if you specify 2021-07-23T18:00-08 for offset and 1d for interval , AWS IoT SiteWise aggregates data in one of the following ways:
@Stability(value=Stable) static CfnAssetModel.TumblingWindowProperty.Builder builder()
Copyright © 2022. All rights reserved.