# MetricWindowProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `tumbling`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAssetModel.TumblingWindowProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotsitewise.CfnAssetModel.TumblingWindowProperty.html) — The tumbling time interval window.
