Interface CfnServiceLevelObjective.SliMetricProperty

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

@Stability(Stable) public static interface CfnServiceLevelObjective.SliMetricProperty extends software.amazon.jsii.JsiiSerializable
Use this structure to specify the metric to be used for the SLO.

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.applicationsignals.*;
 SliMetricProperty sliMetricProperty = SliMetricProperty.builder()
         .keyAttributes(Map.of(
                 "keyAttributesKey", "keyAttributes"))
         .metricDataQueries(List.of(MetricDataQueryProperty.builder()
                 .id("id")
                 // the properties below are optional
                 .accountId("accountId")
                 .expression("expression")
                 .metricStat(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())
                 .returnData(false)
                 .build()))
         .metricType("metricType")
         .operationName("operationName")
         .periodSeconds(123)
         .statistic("statistic")
         .build();
 

See Also: