@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.250Z") @Stability(value=Stable) public interface CfnMetricStreamProps extends software.amazon.jsii.JsiiSerializable
Example:
// 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.*;
CfnMetricStreamProps cfnMetricStreamProps = CfnMetricStreamProps.builder()
.firehoseArn("firehoseArn")
.outputFormat("outputFormat")
.roleArn("roleArn")
// the properties below are optional
.excludeFilters(List.of(MetricStreamFilterProperty.builder()
.namespace("namespace")
.build()))
.includeFilters(List.of(MetricStreamFilterProperty.builder()
.namespace("namespace")
.build()))
.name("name")
.statisticsConfigurations(List.of(MetricStreamStatisticsConfigurationProperty.builder()
.additionalStatistics(List.of("additionalStatistics"))
.includeMetrics(List.of(MetricStreamStatisticsMetricProperty.builder()
.metricName("metricName")
.namespace("namespace")
.build()))
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnMetricStreamProps.Builder
A builder for
CfnMetricStreamProps |
static class |
CfnMetricStreamProps.Jsii$Proxy
An implementation for
CfnMetricStreamProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnMetricStreamProps.Builder |
builder() |
default Object |
getExcludeFilters()
If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.
|
String |
getFirehoseArn()
The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream.
|
default Object |
getIncludeFilters()
If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.
|
default String |
getName()
If you are creating a new metric stream, this is the name for the new stream.
|
String |
getOutputFormat()
The output format for the stream.
|
String |
getRoleArn()
The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources.
|
default Object |
getStatisticsConfigurations()
By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed.
|
default List<CfnTag> |
getTags()
An array of key-value pairs to apply to the metric stream.
|
@Stability(value=Stable) @NotNull String getFirehoseArn()
This Amazon Kinesis Firehose delivery stream must already exist and must be in the same account as the metric stream.
@Stability(value=Stable) @NotNull String getOutputFormat()
Valid values are json and opentelemetry0.7 For more information about metric stream output formats, see Metric streams output formats .
This parameter is required.
@Stability(value=Stable) @NotNull String getRoleArn()
This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include the firehose:PutRecord and firehose:PutRecordBatch permissions.
@Stability(value=Stable) @Nullable default Object getExcludeFilters()
You cannot specify both IncludeFilters and ExcludeFilters in the same metric stream.
When you modify the IncludeFilters or ExcludeFilters of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
@Stability(value=Stable) @Nullable default Object getIncludeFilters()
You cannot specify both IncludeFilters and ExcludeFilters in the same metric stream.
When you modify the IncludeFilters or ExcludeFilters of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
@Stability(value=Stable) @Nullable default String getName()
The name must be different than the names of other metric streams in this account and Region.
If you are updating a metric stream, specify the name of that stream here.
@Stability(value=Stable) @Nullable default Object getStatisticsConfigurations()
You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.
For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's OutputFormat . If the OutputFormat is json , you can stream any additional statistic that is supported by CloudWatch , listed in CloudWatch statistics definitions . If the OutputFormat is opentelemetry0 .7, you can stream percentile statistics (p??) .
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
For more information, see Tag .
@Stability(value=Stable) static CfnMetricStreamProps.Builder builder()
CfnMetricStreamProps.Builder of CfnMetricStreamPropsCopyright © 2022. All rights reserved.