@Stability(value=Stable) @Internal public static final class MetricFilterOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MetricFilterOptions
MetricFilterOptionssoftware.amazon.jsii.JsiiObject.InitializationModeMetricFilterOptions.Builder, MetricFilterOptions.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(MetricFilterOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
MetricFilterOptions.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.
|
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(MetricFilterOptions.Builder builder)
MetricFilterOptions.Builder.public 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.