ResourceMetricSelectionProperty Struct
Defines which metrics are enabled for detailed monitoring on the resource.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 resourceMetricSelectionProperty: cloudwatch.CfnResourceMetricsConfiguration.ResourceMetricSelectionProperty = {
includeMetrics: ['includeMetrics'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudwatch as cloudwatch
resource_metric_selection_property = cloudwatch.CfnResourceMetricsConfiguration.ResourceMetricSelectionProperty(
include_metrics=["includeMetrics"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
ResourceMetricSelectionProperty resourceMetricSelectionProperty = ResourceMetricSelectionProperty.builder()
.includeMetrics(List.of("includeMetrics"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
var resourceMetricSelectionProperty = new ResourceMetricSelectionProperty {
IncludeMetrics = new [] { "includeMetrics" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
resourceMetricSelectionProperty := &ResourceMetricSelectionProperty{
IncludeMetrics: []*string{
jsii.String("includeMetrics"),
},
}
Properties
includeMetricsstring[]include_metricstyping.List[str]includeMetricsList<String>IncludeMetricsstring[]IncludeMetrics*[]*string required #The list of metric names to include in detailed monitoring for the resource.