Class CommonMetricOptions.Jsii$Proxy

All Implemented Interfaces:
Enclosing interface:

@Stability(Stable) @Internal public static final class CommonMetricOptions.Jsii$Proxy extends implements CommonMetricOptions
An implementation for CommonMetricOptions
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy( objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

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

    • getAccount

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

      Default: - Deployment account.

      Specified by:
      getAccount in interface CommonMetricOptions
    • getColor

      public final String getColor()
      Description copied from interface: CommonMetricOptions
      The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The Color class has a set of standard colors that can be used here.

      Default: - Automatic color

      Specified by:
      getColor in interface CommonMetricOptions
    • getDimensionsMap

      public final Map<String,String> getDimensionsMap()
      Description copied from interface: CommonMetricOptions
      Dimensions of the metric.

      Default: - No dimensions.

      Specified by:
      getDimensionsMap in interface CommonMetricOptions
    • getLabel

      public final String getLabel()
      Description copied from interface: CommonMetricOptions
      Label for this metric when added to a Graph in a Dashboard.

      You can use dynamic labels to show summary information about the entire displayed time series in the legend. For example, if you use:

       [max: ${MAX}] MyMetric

      As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend.

      Default: - No label

      Specified by:
      getLabel in interface CommonMetricOptions
    • getPeriod

      public final Duration getPeriod()
      Description copied from interface: CommonMetricOptions
      The period over which the specified statistic is applied.

      Default: Duration.minutes(5)

      Specified by:
      getPeriod in interface CommonMetricOptions
    • getRegion

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

      Default: - Deployment region.

      Specified by:
      getRegion in interface CommonMetricOptions
    • getStatistic

      public final String getStatistic()
      Description copied from interface: CommonMetricOptions
      What function to use for aggregating.

      Use the aws_cloudwatch.Stats helper class to construct valid input strings.

      Can be one of the following:

      • "Minimum" | "min"
      • "Maximum" | "max"
      • "Average" | "avg"
      • "Sum" | "sum"
      • "SampleCount | "n"
      • "pNN.NN"
      • "tmNN.NN" | "tm(NN.NN%:NN.NN%)"
      • "iqm"
      • "wmNN.NN" | "wm(NN.NN%:NN.NN%)"
      • "tcNN.NN" | "tc(NN.NN%:NN.NN%)"
      • "tsNN.NN" | "ts(NN.NN%:NN.NN%)"

      Default: Average

      Specified by:
      getStatistic in interface CommonMetricOptions
    • getUnit

      public final Unit getUnit()
      Description copied from interface: CommonMetricOptions
      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.

      The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases.

      CloudWatch does not honor this property for graphs.

      Default: - All metric datums in the given metric stream

      Specified by:
      getUnit in interface CommonMetricOptions
    • $jsii$toJson

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

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

      public final int hashCode()
      hashCode in class Object