@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.700Z") @Stability(value=Stable) public interface CfnMetricFilterProps 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.logs.*;
CfnMetricFilterProps cfnMetricFilterProps = CfnMetricFilterProps.builder()
.filterPattern("filterPattern")
.logGroupName("logGroupName")
.metricTransformations(List.of(MetricTransformationProperty.builder()
.metricName("metricName")
.metricNamespace("metricNamespace")
.metricValue("metricValue")
// the properties below are optional
.defaultValue(123)
.dimensions(List.of(DimensionProperty.builder()
.key("key")
.value("value")
.build()))
.unit("unit")
.build()))
// the properties below are optional
.filterName("filterName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnMetricFilterProps.Builder
A builder for
CfnMetricFilterProps |
static class |
CfnMetricFilterProps.Jsii$Proxy
An implementation for
CfnMetricFilterProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnMetricFilterProps.Builder |
builder() |
default String |
getFilterName()
`AWS::Logs::MetricFilter.FilterName`.
|
String |
getFilterPattern()
A filter pattern for extracting metric data out of ingested log events.
|
String |
getLogGroupName()
The name of an existing log group that you want to associate with this metric filter.
|
Object |
getMetricTransformations()
The metric transformations.
|
@Stability(value=Stable) @NotNull String getFilterPattern()
For more information, see Filter and Pattern Syntax .
@Stability(value=Stable) @NotNull String getLogGroupName()
@Stability(value=Stable) @NotNull Object getMetricTransformations()
@Stability(value=Stable) @Nullable default String getFilterName()
@Stability(value=Stable) static CfnMetricFilterProps.Builder builder()
CfnMetricFilterProps.Builder of CfnMetricFilterPropsCopyright © 2022. All rights reserved.