Interface MetricAlarmConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
MetricAlarmConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.876Z") @Stability(Deprecated) @Deprecated public interface MetricAlarmConfig extends software.amazon.jsii.JsiiSerializable
Deprecated.
Replaced by MetricConfig
(deprecated) Properties used to construct the Metric identifying part of an Alarm.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cloudwatch.*;
 Object value;
 MetricAlarmConfig metricAlarmConfig = MetricAlarmConfig.builder()
         .metricName("metricName")
         .namespace("namespace")
         .period(123)
         // the properties below are optional
         .dimensions(List.of(Dimension.builder()
                 .name("name")
                 .value(value)
                 .build()))
         .extendedStatistic("extendedStatistic")
         .statistic(Statistic.SAMPLE_COUNT)
         .unit(Unit.SECONDS)
         .build();
 

  • Method Details

    • getMetricName

      @Stability(Deprecated) @Deprecated @NotNull String getMetricName()
      Deprecated.
      (deprecated) Name of the metric.
    • getNamespace

      @Stability(Deprecated) @Deprecated @NotNull String getNamespace()
      Deprecated.
      (deprecated) Namespace of the metric.
    • getPeriod

      @Stability(Deprecated) @Deprecated @NotNull Number getPeriod()
      Deprecated.
      (deprecated) How many seconds to aggregate over.
    • getDimensions

      @Stability(Deprecated) @Deprecated @Nullable default List<Dimension> getDimensions()
      Deprecated.
      (deprecated) The dimensions to apply to the alarm.
    • getExtendedStatistic

      @Stability(Deprecated) @Deprecated @Nullable default String getExtendedStatistic()
      Deprecated.
      (deprecated) Percentile aggregation function to use.
    • getStatistic

      @Stability(Deprecated) @Deprecated @Nullable default Statistic getStatistic()
      Deprecated.
      (deprecated) Simple aggregation function to use.
    • getUnit

      @Stability(Deprecated) @Deprecated @Nullable default Unit getUnit()
      Deprecated.
      (deprecated) The unit of the alarm.
    • builder

      @Stability(Deprecated) @Deprecated static MetricAlarmConfig.Builder builder()
      Deprecated.
      Returns:
      a MetricAlarmConfig.Builder of MetricAlarmConfig