Interface CfnServiceLevelObjectiveProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceLevelObjectiveProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-06T01:36:23.226Z")
@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")
.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())
// 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())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServiceLevelObjectivePropsstatic final classAn implementation forCfnServiceLevelObjectiveProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringAn optional description for this SLO.default ObjectgetGoal()This structure contains the attributes that determine the goal of an SLO.getName()A name for this SLO.getSli()A structure containing information about the performance metric that this SLO monitors.getTags()A list of key-value pairs to associate with the SLO.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
A name for this SLO.- See Also:
-
getSli
A structure containing information about the performance metric that this SLO monitors.- See Also:
-
getDescription
An optional description for this SLO.Default: - "No description"
- See Also:
-
getGoal
This structure contains the attributes that determine the goal of an SLO.This includes the time period for evaluation and the attainment threshold.
- See Also:
-
getTags
A list of key-value pairs to associate with the SLO.You can associate as many as 50 tags with an SLO. To be able to associate tags with the SLO when you create the SLO, you must have the cloudwatch:TagResource permission.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
- See Also:
-
builder
-