Interface CfnServiceLevelObjective.RequestBasedSliMetricProperty

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

@Stability(Stable) public static interface CfnServiceLevelObjective.RequestBasedSliMetricProperty extends software.amazon.jsii.JsiiSerializable
This structure contains the information about the metric that is used for a request-based 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.*;
 RequestBasedSliMetricProperty requestBasedSliMetricProperty = RequestBasedSliMetricProperty.builder()
         .compositeSliConfig(CompositeSliConfigProperty.builder()
                 .selectionConfig(SelectionConfigProperty.builder()
                         .type("type")
                         // the properties below are optional
                         .pattern("pattern")
                         .build())
                 // the properties below are optional
                 .compositeSliComponents(List.of(CompositeSliComponentProperty.builder()
                         .operationName("operationName")
                         .build()))
                 .build())
         .dependencyConfig(DependencyConfigProperty.builder()
                 .dependencyKeyAttributes(Map.of(
                         "dependencyKeyAttributesKey", "dependencyKeyAttributes"))
                 .dependencyOperationName("dependencyOperationName")
                 .build())
         .keyAttributes(Map.of(
                 "keyAttributesKey", "keyAttributes"))
         .metricName("metricName")
         .metricSource(MetricSourceProperty.builder()
                 .metricSourceKeyAttributes(Map.of(
                         "metricSourceKeyAttributesKey", "metricSourceKeyAttributes"))
                 // the properties below are optional
                 .metricSourceAttributes(Map.of(
                         "metricSourceAttributesKey", "metricSourceAttributes"))
                 .build())
         .metricType("metricType")
         .monitoredRequestCountMetric(MonitoredRequestCountMetricProperty.builder()
                 .badCountMetric(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()))
                 .goodCountMetric(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()))
                 .build())
         .operationName("operationName")
         .totalRequestCountMetric(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()))
         .build();
 

See Also: