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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.MetricFilterProps
MetricFilterProps.Builder, MetricFilterProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(MetricFilterProps.Builder builder) Constructor that initializes the object based on literal property values passed by theMetricFilterProps.Builder.protectedJsii$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.JsonNodefinal booleanfinal NumberThe value to emit if the pattern does not match a particular event.The fields to use as dimensions for the metric.final StringThe name of the metric filter.final IFilterPatternPattern to search for log events.final ILogGroupThe log group to create the filter on.final StringThe name of the metric to emit.final StringThe namespace of the metric to emit.final StringThe value to emit for the metric.final UnitgetUnit()The unit to assign to the metric.final inthashCode()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:MetricFilterPropsThe log group to create the filter on.- Specified by:
getLogGroupin interfaceMetricFilterProps
-
getFilterPattern
Description copied from interface:MetricFilterOptionsPattern to search for log events.- Specified by:
getFilterPatternin interfaceMetricFilterOptions
-
getMetricName
Description copied from interface:MetricFilterOptionsThe name of the metric to emit.- Specified by:
getMetricNamein interfaceMetricFilterOptions
-
getMetricNamespace
Description copied from interface:MetricFilterOptionsThe namespace of the metric to emit.- Specified by:
getMetricNamespacein interfaceMetricFilterOptions
-
getDefaultValue
Description copied from interface:MetricFilterOptionsThe value to emit if the pattern does not match a particular event.Default: No metric emitted.
- Specified by:
getDefaultValuein interfaceMetricFilterOptions
-
getDimensions
Description copied from interface:MetricFilterOptionsThe 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:
getDimensionsin interfaceMetricFilterOptions- See Also:
-
getFilterName
Description copied from interface:MetricFilterOptionsThe name of the metric filter.Default: - Cloudformation generated name.
- Specified by:
getFilterNamein interfaceMetricFilterOptions
-
getMetricValue
Description copied from interface:MetricFilterOptionsThe 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:
getMetricValuein interfaceMetricFilterOptions
-
getUnit
Description copied from interface:MetricFilterOptionsThe unit to assign to the metric.Default: - No unit attached to metrics.
- Specified by:
getUnitin interfaceMetricFilterOptions- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-