interface MetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudWatch.Mixins.CfnAlarmPropsMixin.MetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudwatch/mixins#CfnAlarmPropsMixin_MetricProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudwatch.mixins.CfnAlarmPropsMixin.MetricProperty |
Python | aws_cdk.mixins_preview.aws_cloudwatch.mixins.CfnAlarmPropsMixin.MetricProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudwatch » mixins » CfnAlarmPropsMixin » MetricProperty |
The Metric property type represents a specific metric.
Metric is a property of the MetricStat property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudwatch_mixins } from '@aws-cdk/mixins-preview/aws-cloudwatch';
const metricProperty: cloudwatch_mixins.CfnAlarmPropsMixin.MetricProperty = {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
};
Properties
| Name | Type | Description |
|---|---|---|
| dimensions? | IResolvable | (IResolvable | Dimension)[] | The metric dimensions that you want to be used for the metric that the alarm will watch. |
| metric | string | The name of the metric that you want the alarm to watch. |
| namespace? | string | The namespace of the metric that the alarm will watch. |
dimensions?
Type:
IResolvable | (IResolvable | Dimension)[]
(optional)
The metric dimensions that you want to be used for the metric that the alarm will watch.
metricName?
Type:
string
(optional)
The name of the metric that you want the alarm to watch.
This is a required field.
namespace?
Type:
string
(optional)
The namespace of the metric that the alarm will watch.

.NET
Go
Java
Python
TypeScript