Interface RequestBasedServiceLevelIndicatorMetric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RequestBasedServiceLevelIndicatorMetric.Builder,
,RequestBasedServiceLevelIndicatorMetric> SdkBuilder<RequestBasedServiceLevelIndicatorMetric.Builder,
,RequestBasedServiceLevelIndicatorMetric> SdkPojo
- Enclosing class:
RequestBasedServiceLevelIndicatorMetric
-
Method Summary
Modifier and TypeMethodDescriptiondependencyConfig
(Consumer<DependencyConfig.Builder> dependencyConfig) Identifies the dependency using theDependencyKeyAttributes
andDependencyOperationName
.dependencyConfig
(DependencyConfig dependencyConfig) Identifies the dependency using theDependencyKeyAttributes
andDependencyOperationName
.keyAttributes
(Map<String, String> keyAttributes) This is a string-to-string map that contains information about the type of object that this SLO is related to.metricType
(String metricType) If the SLO monitors either theLATENCY
orAVAILABILITY
metric that Application Signals collects, this field displays which of those metrics is used.metricType
(ServiceLevelIndicatorMetricType metricType) If the SLO monitors either theLATENCY
orAVAILABILITY
metric that Application Signals collects, this field displays which of those metrics is used.monitoredRequestCountMetric
(Consumer<MonitoredRequestCountMetricDataQueries.Builder> monitoredRequestCountMetric) This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO.monitoredRequestCountMetric
(MonitoredRequestCountMetricDataQueries monitoredRequestCountMetric) This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO.operationName
(String operationName) If the SLO monitors a specific operation of the service, this field displays that operation name.totalRequestCountMetric
(Collection<MetricDataQuery> totalRequestCountMetric) This structure defines the metric that is used as the "total requests" number for a request-based SLO.totalRequestCountMetric
(Consumer<MetricDataQuery.Builder>... totalRequestCountMetric) This structure defines the metric that is used as the "total requests" number for a request-based SLO.totalRequestCountMetric
(MetricDataQuery... totalRequestCountMetric) This structure defines the metric that is used as the "total requests" number for a request-based SLO.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
keyAttributes
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.
-
Type
designates the type of object that this SLO is related to. -
ResourceType
specifies the type of the resource. This field is used only when the value of theType
field isResource
orAWS::Resource
. -
Name
specifies the name of the object. This is used only if the value of theType
field isService
,RemoteService
, orAWS::Service
. -
Identifier
identifies the resource objects of this resource. This is used only if the value of theType
field isResource
orAWS::Resource
. -
Environment
specifies the location where this object is hosted, or what it belongs to.
- Parameters:
keyAttributes
- 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.-
Type
designates the type of object that this SLO is related to. -
ResourceType
specifies the type of the resource. This field is used only when the value of theType
field isResource
orAWS::Resource
. -
Name
specifies the name of the object. This is used only if the value of theType
field isService
,RemoteService
, orAWS::Service
. -
Identifier
identifies the resource objects of this resource. This is used only if the value of theType
field isResource
orAWS::Resource
. -
Environment
specifies the location where this object is hosted, or what it belongs to.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
operationName
If the SLO monitors a specific operation of the service, this field displays that operation name.
- Parameters:
operationName
- If the SLO monitors a specific operation of the service, this field displays that operation name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricType
If the SLO monitors either the
LATENCY
orAVAILABILITY
metric that Application Signals collects, this field displays which of those metrics is used.- Parameters:
metricType
- If the SLO monitors either theLATENCY
orAVAILABILITY
metric that Application Signals collects, this field displays which of those metrics is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricType
RequestBasedServiceLevelIndicatorMetric.Builder metricType(ServiceLevelIndicatorMetricType metricType) If the SLO monitors either the
LATENCY
orAVAILABILITY
metric that Application Signals collects, this field displays which of those metrics is used.- Parameters:
metricType
- If the SLO monitors either theLATENCY
orAVAILABILITY
metric that Application Signals collects, this field displays which of those metrics is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalRequestCountMetric
RequestBasedServiceLevelIndicatorMetric.Builder totalRequestCountMetric(Collection<MetricDataQuery> totalRequestCountMetric) 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
.- Parameters:
totalRequestCountMetric
- 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 inMonitoredRequestCountMetric
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalRequestCountMetric
RequestBasedServiceLevelIndicatorMetric.Builder totalRequestCountMetric(MetricDataQuery... totalRequestCountMetric) 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
.- Parameters:
totalRequestCountMetric
- 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 inMonitoredRequestCountMetric
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalRequestCountMetric
RequestBasedServiceLevelIndicatorMetric.Builder totalRequestCountMetric(Consumer<MetricDataQuery.Builder>... totalRequestCountMetric) 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
This is a convenience method that creates an instance of theMonitoredRequestCountMetric
.MetricDataQuery.Builder
avoiding the need to create one manually viaMetricDataQuery.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tototalRequestCountMetric(List<MetricDataQuery>)
.- Parameters:
totalRequestCountMetric
- a consumer that will call methods onMetricDataQuery.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoredRequestCountMetric
RequestBasedServiceLevelIndicatorMetric.Builder monitoredRequestCountMetric(MonitoredRequestCountMetricDataQueries monitoredRequestCountMetric) This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined in
TotalRequestCountMetric
is divided by the number found forMonitoredRequestCountMetric
to determine the percentage of successful requests that this SLO tracks.- Parameters:
monitoredRequestCountMetric
- This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined inTotalRequestCountMetric
is divided by the number found forMonitoredRequestCountMetric
to determine the percentage of successful requests that this SLO tracks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoredRequestCountMetric
default RequestBasedServiceLevelIndicatorMetric.Builder monitoredRequestCountMetric(Consumer<MonitoredRequestCountMetricDataQueries.Builder> monitoredRequestCountMetric) This structure defines the metric that is used as the "good request" or "bad request" value for a request-based SLO. This value observed for the metric defined in
This is a convenience method that creates an instance of theTotalRequestCountMetric
is divided by the number found forMonitoredRequestCountMetric
to determine the percentage of successful requests that this SLO tracks.MonitoredRequestCountMetricDataQueries.Builder
avoiding the need to create one manually viaMonitoredRequestCountMetricDataQueries.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoredRequestCountMetric(MonitoredRequestCountMetricDataQueries)
.- Parameters:
monitoredRequestCountMetric
- a consumer that will call methods onMonitoredRequestCountMetricDataQueries.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dependencyConfig
Identifies the dependency using the
DependencyKeyAttributes
andDependencyOperationName
.- Parameters:
dependencyConfig
- Identifies the dependency using theDependencyKeyAttributes
andDependencyOperationName
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dependencyConfig
default RequestBasedServiceLevelIndicatorMetric.Builder dependencyConfig(Consumer<DependencyConfig.Builder> dependencyConfig) Identifies the dependency using the
This is a convenience method that creates an instance of theDependencyKeyAttributes
andDependencyOperationName
.DependencyConfig.Builder
avoiding the need to create one manually viaDependencyConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todependencyConfig(DependencyConfig)
.- Parameters:
dependencyConfig
- a consumer that will call methods onDependencyConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-