Skip to content
v2.278.0

MetricStreamStatisticsConfigurationProperty Struct ​

This structure specifies a list of additional statistics to stream, and the metrics to stream those additional statistics for.

All metrics that match the combination of metric name and namespace will be streamed with the additional statistics, no matter their dimensions.

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 metricStreamStatisticsConfigurationProperty: cloudwatch.CfnMetricStream.MetricStreamStatisticsConfigurationProperty = {
  additionalStatistics: ['additionalStatistics'],
  includeMetrics: [{
    metricName: 'metricName',
    namespace: 'namespace',
  }],
};
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

metric_stream_statistics_configuration_property = cloudwatch.CfnMetricStream.MetricStreamStatisticsConfigurationProperty(
    additional_statistics=["additionalStatistics"],
    include_metrics=[cloudwatch.CfnMetricStream.MetricStreamStatisticsMetricProperty(
        metric_name="metricName",
        namespace="namespace"
    )]
)
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.*;

MetricStreamStatisticsConfigurationProperty metricStreamStatisticsConfigurationProperty = MetricStreamStatisticsConfigurationProperty.builder()
        .additionalStatistics(List.of("additionalStatistics"))
        .includeMetrics(List.of(MetricStreamStatisticsMetricProperty.builder()
                .metricName("metricName")
                .namespace("namespace")
                .build()))
        .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 metricStreamStatisticsConfigurationProperty = new MetricStreamStatisticsConfigurationProperty {
    AdditionalStatistics = new [] { "additionalStatistics" },
    IncludeMetrics = new [] { new MetricStreamStatisticsMetricProperty {
        MetricName = "metricName",
        Namespace = "namespace"
    } }
};
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"

metricStreamStatisticsConfigurationProperty := &MetricStreamStatisticsConfigurationProperty{
	AdditionalStatistics: []*string{
		jsii.String("additionalStatistics"),
	},
	IncludeMetrics: []interface{}{
		&MetricStreamStatisticsMetricProperty{
			MetricName: jsii.String("metricName"),
			Namespace: jsii.String("namespace"),
		},
	},
}

Properties ​

additionalStatisticsstring[]additional_statisticstyping.List[str]additionalStatisticsList<String>AdditionalStatisticsstring[]AdditionalStatistics*[]*string required #
The additional statistics to stream for the metrics listed in `IncludeMetrics` .
includeMetricsIResolvable | IResolvable | CfnMetricStream.MetricStreamStatisticsMetricProperty[]include_metricstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MetricStreamStatisticsMetricProperty]]]includeMetricsIResolvableIncludeMetricsIResolvableIncludeMetricsinterface{} required #
An array that defines the metrics that are to have additional statistics streamed.