# MetricStreamStatisticsConfigurationProperty

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.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `additionalStatistics`: string[] (required) — The additional statistics to stream for the metrics listed in `IncludeMetrics` .

- `includeMetrics`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMetricStream.MetricStreamStatisticsMetricProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnMetricStream.MetricStreamStatisticsMetricProperty.html)[] (required) — An array that defines the metrics that are to have additional statistics streamed.
