Interface MetricFilterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,MetricFilterOptions
- All Known Implementing Classes:
MetricFilterProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)",
date="2024-07-12T19:34:04.992Z")
@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 class
A builder forMetricFilterProps
static final class
An implementation forMetricFilterProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic MetricFilterProps.Builder
builder()
The log group to create the filter on.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods 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.Builder
ofMetricFilterProps
-