interface MetricStat
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudWatch.Events.AlarmEvents.CloudWatchAlarmStateChange.MetricStat |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudwatch/events#AlarmEvents_CloudWatchAlarmStateChange_MetricStat |
Java | software.amazon.awscdk.mixins.preview.services.cloudwatch.events.AlarmEvents.CloudWatchAlarmStateChange.MetricStat |
Python | aws_cdk.mixins_preview.aws_cloudwatch.events.AlarmEvents.CloudWatchAlarmStateChange.MetricStat |
TypeScript | @aws-cdk/mixins-preview ยป aws_cloudwatch ยป events ยป AlarmEvents ยป CloudWatchAlarmStateChange ยป MetricStat |
Type definition for MetricStat.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { events as cloudwatch_events } from '@aws-cdk/mixins-preview/aws-cloudwatch';
const metricStat: cloudwatch_events.AlarmEvents.CloudWatchAlarmStateChange.MetricStat = {
metric: {
dimensions: ['dimensions'],
name: ['name'],
namespace: ['namespace'],
},
period: ['period'],
stat: ['stat'],
};
Properties
| Name | Type | Description |
|---|---|---|
| metric? | Metric | metric property. |
| period? | string[] | period property. |
| stat? | string[] | stat property. |
metric?
Type:
Metric
(optional, default: Do not filter on this field)
metric property.
Specify an array of string values to match this event if the actual value of metric is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
period?
Type:
string[]
(optional, default: Do not filter on this field)
period property.
Specify an array of string values to match this event if the actual value of period is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.
stat?
Type:
string[]
(optional, default: Do not filter on this field)
stat property.
Specify an array of string values to match this event if the actual value of stat is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

.NET
Go
Java
Python
TypeScript