Class MetricStatConfig.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.MetricStatConfig.Jsii$Proxy
All Implemented Interfaces:
MetricStatConfig, software.amazon.jsii.JsiiSerializable
Enclosing interface:
MetricStatConfig

@Stability(Stable) @Internal public static final class MetricStatConfig.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MetricStatConfig
An implementation for MetricStatConfig
  • 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(MetricStatConfig.Builder builder)
      Constructor that initializes the object based on literal property values passed by the MetricStatConfig.Builder.
  • Method Details

    • getMetricName

      public final String getMetricName()
      Description copied from interface: MetricStatConfig
      Name of the metric.
      Specified by:
      getMetricName in interface MetricStatConfig
    • getNamespace

      public final String getNamespace()
      Description copied from interface: MetricStatConfig
      Namespace of the metric.
      Specified by:
      getNamespace in interface MetricStatConfig
    • getPeriod

      public final Duration getPeriod()
      Description copied from interface: MetricStatConfig
      How many seconds to aggregate over.
      Specified by:
      getPeriod in interface MetricStatConfig
    • getStatistic

      public final String getStatistic()
      Description copied from interface: MetricStatConfig
      Aggregation function to use (can be either simple or a percentile).
      Specified by:
      getStatistic in interface MetricStatConfig
    • getAccount

      public final String getAccount()
      Description copied from interface: MetricStatConfig
      Account which this metric comes from.

      Default: Deployment account.

      Specified by:
      getAccount in interface MetricStatConfig
    • getDimensions

      public final List<Dimension> getDimensions()
      Description copied from interface: MetricStatConfig
      The dimensions to apply to the alarm.

      Default: []

      Specified by:
      getDimensions in interface MetricStatConfig
    • getRegion

      public final String getRegion()
      Description copied from interface: MetricStatConfig
      Region which this metric comes from.

      Default: Deployment region.

      Specified by:
      getRegion in interface MetricStatConfig
    • getUnitFilter

      public final Unit getUnitFilter()
      Description copied from interface: MetricStatConfig
      Unit used to filter the metric stream.

      Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units.

      This field has been renamed from plain unit to clearly communicate its purpose.

      Default: - Refer to all metric datums

      Specified by:
      getUnitFilter in interface MetricStatConfig
    • $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