Interface CfnServiceLevelObjectiveProps

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:04.049Z") @Stability(Stable) public interface CfnServiceLevelObjectiveProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnServiceLevelObjective.

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.*;
 CfnServiceLevelObjectiveProps cfnServiceLevelObjectiveProps = CfnServiceLevelObjectiveProps.builder()
         .name("name")
         // the properties below are optional
         .description("description")
         .goal(GoalProperty.builder()
                 .attainmentGoal(123)
                 .interval(IntervalProperty.builder()
                         .calendarInterval(CalendarIntervalProperty.builder()
                                 .duration(123)
                                 .durationUnit("durationUnit")
                                 .startTime(123)
                                 .build())
                         .rollingInterval(RollingIntervalProperty.builder()
                                 .duration(123)
                                 .durationUnit("durationUnit")
                                 .build())
                         .build())
                 .warningThreshold(123)
                 .build())
         .requestBasedSli(RequestBasedSliProperty.builder()
                 .requestBasedSliMetric(RequestBasedSliMetricProperty.builder()
                         .keyAttributes(Map.of(
                                 "keyAttributesKey", "keyAttributes"))
                         .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())
                 // the properties below are optional
                 .comparisonOperator("comparisonOperator")
                 .metricThreshold(123)
                 .build())
         .sli(SliProperty.builder()
                 .comparisonOperator("comparisonOperator")
                 .metricThreshold(123)
                 .sliMetric(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())
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also: