interface MetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.CloudWatch.CfnAnomalyDetectorPropsMixin.MetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awscloudwatch#CfnAnomalyDetectorPropsMixin_MetricProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAnomalyDetectorPropsMixin.MetricProperty |
Python | aws_cdk.cfn_property_mixins.aws_cloudwatch.CfnAnomalyDetectorPropsMixin.MetricProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_cloudwatch » CfnAnomalyDetectorPropsMixin » MetricProperty |
Represents a specific metric.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from '@aws-cdk/cfn-property-mixins';
const metricProperty: cloudwatch.CfnAnomalyDetectorPropsMixin.MetricProperty = {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
};
Properties
| Name | Type | Description |
|---|---|---|
| dimensions? | IResolvable | (IResolvable | Dimension)[] | The dimensions for the metric. |
| metric | string | The name of the metric. |
| namespace? | string | The namespace of the metric. |
dimensions?
Type:
IResolvable | (IResolvable | Dimension)[]
(optional)
The dimensions for the metric.
metricName?
Type:
string
(optional)
The name of the metric.
This is a required field.
namespace?
Type:
string
(optional)
The namespace of the metric.

.NET
Go
Java
Python
TypeScript