Interface MetricFilterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,MetricFilterOptions
- All Known Implementing Classes:
MetricFilterProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:10.816Z")
@Stability(Stable)
public interface MetricFilterProps
extends software.amazon.jsii.JsiiSerializable, MetricFilterOptions
Properties for a MetricFilter.
Example:
MetricFilter.Builder.create(this, "MetricFilter")
.logGroup(logGroup)
.metricNamespace("MyApp")
.metricName("Latency")
.filterPattern(FilterPattern.exists("$.latency"))
.metricValue("$.latency")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMetricFilterPropsstatic final classAn implementation forMetricFilterProps -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricFilterProps.Builderbuilder()The log group to create the filter on.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.logs.MetricFilterOptions
getDefaultValue, getDimensions, getFilterName, getFilterPattern, getMetricName, getMetricNamespace, getMetricValue, getUnit
-
Method Details
-
getLogGroup
The log group to create the filter on. -
builder
- Returns:
- a
MetricFilterProps.BuilderofMetricFilterProps
-