Interface CfnAlarm.MetricStatProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAlarm.MetricStatProperty.Jsii$Proxy
Enclosing class:
CfnAlarm

@Stability(Stable) public static interface CfnAlarm.MetricStatProperty extends software.amazon.jsii.JsiiSerializable
This structure defines the metric to be returned, along with the statistics, period, and units.

MetricStat is a property of the MetricDataQuery property type.

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.*;
 MetricStatProperty metricStatProperty = MetricStatProperty.builder()
         .metric(MetricProperty.builder()
                 .dimensions(List.of(DimensionProperty.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .metricName("metricName")
                 .namespace("namespace")
                 .build())
         .period(123)
         .stat("stat")
         // the properties below are optional
         .unit("unit")
         .build();
 

See Also: