Interface CfnAlarm.MetricProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnAlarm.MetricProperty extends
The `Metric` property type represents a specific metric.

Metric is a property of the MetricStat property type.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 MetricProperty metricProperty = MetricProperty.builder()
  • Method Details

    • getDimensions

      @Stability(Stable) @Nullable default Object getDimensions()
      The metric dimensions that you want to be used for the metric that the alarm will watch.
    • getMetricName

      @Stability(Stable) @Nullable default String getMetricName()
      The name of the metric that you want the alarm to watch.

      This is a required field.

    • getNamespace

      @Stability(Stable) @Nullable default String getNamespace()
      The namespace of the metric that the alarm will watch.
    • builder

      @Stability(Stable) static CfnAlarm.MetricProperty.Builder builder()
      a CfnAlarm.MetricProperty.Builder of CfnAlarm.MetricProperty