Class MetricFilterOptions.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.MetricFilterOptions.Jsii$Proxy
- All Implemented Interfaces:
MetricFilterOptions
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
MetricFilterOptions
@Stability(Stable)
@Internal
public static final class MetricFilterOptions.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements MetricFilterOptions
An implementation for
MetricFilterOptions
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.MetricFilterOptions
MetricFilterOptions.Builder, MetricFilterOptions.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(MetricFilterOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theMetricFilterOptions.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Number
The value to emit if the pattern does not match a particular event.final IFilterPattern
Pattern to search for log events.final String
The name of the metric to emit.final String
The namespace of the metric to emit.final String
The value to emit for the metric.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theMetricFilterOptions.Builder
.
-
-
Method Details
-
getFilterPattern
Description copied from interface:MetricFilterOptions
Pattern to search for log events.- Specified by:
getFilterPattern
in interfaceMetricFilterOptions
-
getMetricName
Description copied from interface:MetricFilterOptions
The name of the metric to emit.- Specified by:
getMetricName
in interfaceMetricFilterOptions
-
getMetricNamespace
Description copied from interface:MetricFilterOptions
The namespace of the metric to emit.- Specified by:
getMetricNamespace
in interfaceMetricFilterOptions
-
getDefaultValue
Description copied from interface:MetricFilterOptions
The value to emit if the pattern does not match a particular event.Default: No metric emitted.
- Specified by:
getDefaultValue
in interfaceMetricFilterOptions
-
getMetricValue
Description copied from interface:MetricFilterOptions
The value to emit for the metric.Can 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"
- Specified by:
getMetricValue
in interfaceMetricFilterOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-