Skip to content
v2.277.0

MetricWindowProperty Struct ​

Contains a time interval window used for data aggregate computations (for example, average, sum, count, and so on).

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const metricWindowProperty: iotsitewise.CfnAssetModel.MetricWindowProperty = {
  tumbling: {
    interval: 'interval',

    // the properties below are optional
    offset: 'offset',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotsitewise as iotsitewise

metric_window_property = iotsitewise.CfnAssetModel.MetricWindowProperty(
    tumbling=iotsitewise.CfnAssetModel.TumblingWindowProperty(
        interval="interval",

        # the properties below are optional
        offset="offset"
    )
)
java
// 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.*;

MetricWindowProperty metricWindowProperty = MetricWindowProperty.builder()
        .tumbling(TumblingWindowProperty.builder()
                .interval("interval")

                // the properties below are optional
                .offset("offset")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTSiteWise;

var metricWindowProperty = new MetricWindowProperty {
    Tumbling = new TumblingWindowProperty {
        Interval = "interval",

        // the properties below are optional
        Offset = "offset"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

metricWindowProperty := &MetricWindowProperty{
	Tumbling: &TumblingWindowProperty{
		Interval: jsii.String("interval"),

		// the properties below are optional
		Offset: jsii.String("offset"),
	},
}

Properties ​

tumblingoptionalIResolvable | CfnAssetModel.TumblingWindowPropertytumblingoptionaltyping.Union[IResolvable, TumblingWindowProperty]tumblingoptionalIResolvableTumblingoptionalIResolvableTumblingoptionalinterface{}#
The tumbling time interval window.