Class MetricFilterProps.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.MetricFilterProps.Jsii$Proxy
- All Implemented Interfaces:
MetricFilterOptions
,MetricFilterProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
MetricFilterProps
@Stability(Stable)
@Internal
public static final class MetricFilterProps.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements MetricFilterProps
An implementation for
MetricFilterProps
-
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.MetricFilterProps
MetricFilterProps.Builder, MetricFilterProps.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Jsii$Proxy
(MetricFilterProps.Builder builder) Constructor that initializes the object based on literal property values passed by theMetricFilterProps.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.The fields to use as dimensions for the metric.final String
The name of the metric filter.final IFilterPattern
Pattern to search for log events.final ILogGroup
The log group to create the filter on.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 Unit
getUnit()
The unit to assign to 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 theMetricFilterProps.Builder
.
-
-
Method Details
-
getLogGroup
Description copied from interface:MetricFilterProps
The log group to create the filter on.- Specified by:
getLogGroup
in interfaceMetricFilterProps
-
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
-
getDimensions
Description copied from interface:MetricFilterOptions
The fields to use as dimensions for the metric.One metric filter can include as many as three dimensions.
Default: - No dimensions attached to metrics.
- Specified by:
getDimensions
in interfaceMetricFilterOptions
- See Also:
-
getFilterName
Description copied from interface:MetricFilterOptions
The name of the metric filter.Default: - Cloudformation generated name.
- Specified by:
getFilterName
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
-
getUnit
Description copied from interface:MetricFilterOptions
The unit to assign to the metric.Default: - No unit attached to metrics.
- Specified by:
getUnit
in interfaceMetricFilterOptions
- See Also:
-
$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()
-