Interface CfnServiceLevelObjective.RequestBasedSliMetricProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceLevelObjective.RequestBasedSliMetricProperty.Jsii$Proxy
- Enclosing class:
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.*;
RequestBasedSliMetricProperty requestBasedSliMetricProperty = RequestBasedSliMetricProperty.builder()
.dependencyConfig(DependencyConfigProperty.builder()
.dependencyKeyAttributes(Map.of(
"dependencyKeyAttributesKey", "dependencyKeyAttributes"))
.dependencyOperationName("dependencyOperationName")
.build())
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServiceLevelObjective.RequestBasedSliMetricPropertystatic final classAn implementation forCfnServiceLevelObjective.RequestBasedSliMetricProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectIdentifies the dependency using theDependencyKeyAttributesandDependencyOperationName.default ObjectThis is a string-to-string map that contains information about the type of object that this SLO is related to.default StringIf the SLO monitors either theLATENCYorAVAILABILITYmetric that Application Signals collects, this field displays which of those metrics is used.default ObjectUse this structure to define the metric that you want to use as the "good request" or "bad request" value for a request-based SLO.default StringIf the SLO monitors a specific operation of the service, this field displays that operation name.default ObjectThis structure defines the metric that is used as the "total requests" number for a request-based SLO.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDependencyConfig
Identifies the dependency using theDependencyKeyAttributesandDependencyOperationName.Returns union: either
IResolvableorCfnServiceLevelObjective.DependencyConfigProperty- See Also:
-
getKeyAttributes
This is a string-to-string map that contains information about the type of object that this SLO is related to.It can include the following fields.
Typedesignates the type of object that this SLO is related to.ResourceTypespecifies the type of the resource. This field is used only when the value of theTypefield isResourceorAWS::Resource.Namespecifies the name of the object. This is used only if the value of theTypefield isService,RemoteService, orAWS::Service.Identifieridentifies the resource objects of this resource. This is used only if the value of theTypefield isResourceorAWS::Resource.Environmentspecifies the location where this object is hosted, or what it belongs to.AwsAccountIdallows you to create an SLO for an object that exists in another account.
Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
getMetricType
If the SLO monitors either theLATENCYorAVAILABILITYmetric that Application Signals collects, this field displays which of those metrics is used.- See Also:
-
getMonitoredRequestCountMetric
Use this structure to define the metric that you want to use as the "good request" or "bad request" value for a request-based SLO.This value observed for the metric defined in
TotalRequestCountMetricwill be divided by the number found forMonitoredRequestCountMetricto determine the percentage of successful requests that this SLO tracks.Returns union: either
IResolvableorCfnServiceLevelObjective.MonitoredRequestCountMetricProperty- See Also:
-
getOperationName
If the SLO monitors a specific operation of the service, this field displays that operation name.- See Also:
-
getTotalRequestCountMetric
This structure defines the metric that is used as the "total requests" number for a request-based SLO.The number observed for this metric is divided by the number of "good requests" or "bad requests" that is observed for the metric defined in
MonitoredRequestCountMetric.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnServiceLevelObjective.MetricDataQueryProperty>- See Also:
-
builder
-