interface OTelEnrichmentMetricSelectorProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnOTelEnrichment_OTelEnrichmentMetricSelectorProperty |
Java | software.amazon.awscdk.services.cloudwatch.CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty |
Python | aws_cdk.aws_cloudwatch.CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty |
TypeScript | aws-cdk-lib » aws_cloudwatch » CfnOTelEnrichment » OTelEnrichmentMetricSelectorProperty |
Selects metrics within one namespace.
The same shape serves both the include and the exclude direction. Namespaces are compared byte-for-byte and case-sensitively; no wildcards, prefixes or normalization.
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 oTelEnrichmentMetricSelectorProperty: cloudwatch.CfnOTelEnrichment.OTelEnrichmentMetricSelectorProperty = {
namespace: 'namespace',
// the properties below are optional
metricNames: ['metricNames'],
};
Properties
| Name | Type | Description |
|---|---|---|
| namespace | string | The CloudWatch namespace this selector applies to. |
| metric | string[] | Absent or empty means every metric in this namespace, in whichever direction this selector appears. |
namespace
Type:
string
The CloudWatch namespace this selector applies to.
metricNames?
Type:
string[]
(optional)
Absent or empty means every metric in this namespace, in whichever direction this selector appears.
Present means only these metric names.

.NET
Go
Java
Python
TypeScript