Interface CfnMetricFilterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMetricFilterProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:12.502Z")
@Stability(Stable)
public interface CfnMetricFilterProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnMetricFilter.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMetricFilterPropsstatic final classAn implementation forCfnMetricFilterProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnMetricFilterProps.Builderbuilder()default StringThe name of the metric filter.A filter pattern for extracting metric data out of ingested log events.The name of an existing log group that you want to associate with this metric filter.The metric transformations.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFilterPattern
A filter pattern for extracting metric data out of ingested log events.For more information, see Filter and Pattern Syntax .
- See Also:
-
getLogGroupName
The name of an existing log group that you want to associate with this metric filter.- See Also:
-
getMetricTransformations
The metric transformations.- See Also:
-
getFilterName
The name of the metric filter.- See Also:
-
builder
- Returns:
- a
CfnMetricFilterProps.BuilderofCfnMetricFilterProps
-