aws-cdk-lib.aws_cloudwatch.CfnAnomalyDetector.MetricProperty

interface MetricProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudWatch.CfnAnomalyDetector.MetricProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnAnomalyDetector_MetricProperty
Javasoftware.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricProperty
Pythonaws_cdk.aws_cloudwatch.CfnAnomalyDetector.MetricProperty
TypeScript 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

NameTypeDescription
metricNamestringThe name of the metric.
namespacestringThe namespace of the metric.
dimensions?IResolvable | IResolvable | DimensionProperty[]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 | DimensionProperty[] (optional)

The dimensions for the metric.