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
  • 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

      protected Jsii$Proxy(MetricFilterOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the MetricFilterOptions.Builder.
  • Method Details

    • getFilterPattern

      public final IFilterPattern getFilterPattern()
      Description copied from interface: MetricFilterOptions
      Pattern to search for log events.
      Specified by:
      getFilterPattern in interface MetricFilterOptions
    • getMetricName

      public final String getMetricName()
      Description copied from interface: MetricFilterOptions
      The name of the metric to emit.
      Specified by:
      getMetricName in interface MetricFilterOptions
    • getMetricNamespace

      public final String getMetricNamespace()
      Description copied from interface: MetricFilterOptions
      The namespace of the metric to emit.
      Specified by:
      getMetricNamespace in interface MetricFilterOptions
    • getDefaultValue

      public final Number 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 interface MetricFilterOptions
    • getMetricValue

      public final String 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 interface MetricFilterOptions
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object