@Stability(value=Stable) @Internal public static final class MetricFilterProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MetricFilterProps
MetricFilterPropssoftware.amazon.jsii.JsiiObject.InitializationModeMetricFilterProps.Builder, MetricFilterProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(MetricFilterProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
MetricFilterProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Number |
getDefaultValue()
The value to emit if the pattern does not match a particular event.
|
IFilterPattern |
getFilterPattern()
Pattern to search for log events.
|
ILogGroup |
getLogGroup()
The log group to create the filter on.
|
String |
getMetricName()
The name of the metric to emit.
|
String |
getMetricNamespace()
The namespace of the metric to emit.
|
String |
getMetricValue()
The value to emit for the metric.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(MetricFilterProps.Builder builder)
MetricFilterProps.Builder.public final ILogGroup getLogGroup()
MetricFilterPropsgetLogGroup in interface MetricFilterPropspublic final IFilterPattern getFilterPattern()
MetricFilterOptionsgetFilterPattern in interface MetricFilterOptionspublic final String getMetricName()
MetricFilterOptionsgetMetricName in interface MetricFilterOptionspublic final String getMetricNamespace()
MetricFilterOptionsgetMetricNamespace in interface MetricFilterOptionspublic final Number getDefaultValue()
MetricFilterOptionsDefault: No metric emitted.
getDefaultValue in interface MetricFilterOptionspublic final String getMetricValue()
MetricFilterOptionsCan either be a literal number (typically "1"), or the name of a field in the structure to take the value from the matched event. If you are using a field value, the field value must have been matched using the pattern.
If you want to specify a field from a matched JSON structure, use '$.fieldName', and make sure the field is in the pattern (if only as '$.fieldName = *').
If you want to specify a field from a matched space-delimited structure, use '$fieldName'.
Default: "1"
getMetricValue in interface MetricFilterOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.