interface MetricProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudWatch.CfnAnomalyDetector.MetricProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnAnomalyDetector_MetricProperty |
![]() | software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricProperty |
![]() | aws_cdk.aws_cloudwatch.CfnAnomalyDetector.MetricProperty |
![]() | aws-cdk-lib » aws_cloudwatch » CfnAnomalyDetector » 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-lib';
const metricProperty: cloudwatch.CfnAnomalyDetector.MetricProperty = {
metricName: 'metricName',
namespace: 'namespace',
// the properties below are optional
dimensions: [{
name: 'name',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
metric | string | The name of the metric. |
namespace | string | The namespace of the metric. |
dimensions? | IResolvable | IResolvable | Dimension [] | The dimensions for the metric. |
metricName
Type:
string
The name of the metric.
This is a required field.
namespace
Type:
string
The namespace of the metric.
dimensions?
Type:
IResolvable
|
IResolvable
|
Dimension
[]
(optional)
The dimensions for the metric.