Interface RequestBasedServiceLevelIndicatorMetricConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RequestBasedServiceLevelIndicatorMetricConfig.Builder,,RequestBasedServiceLevelIndicatorMetricConfig> SdkBuilder<RequestBasedServiceLevelIndicatorMetricConfig.Builder,,RequestBasedServiceLevelIndicatorMetricConfig> SdkPojo
- Enclosing class:
RequestBasedServiceLevelIndicatorMetricConfig
-
Method Summary
Modifier and TypeMethodDescriptionkeyAttributes(Map<String, String> keyAttributes) If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to.metricType(String metricType) If the SLO is to monitor either theLATENCYorAVAILABILITYmetric that Application Signals collects, use this field to specify which of those metrics is used.metricType(ServiceLevelIndicatorMetricType metricType) If the SLO is to monitor either theLATENCYorAVAILABILITYmetric that Application Signals collects, use this field to specify which of those metrics is used.monitoredRequestCountMetric(Consumer<MonitoredRequestCountMetricDataQueries.Builder> monitoredRequestCountMetric) 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.monitoredRequestCountMetric(MonitoredRequestCountMetricDataQueries monitoredRequestCountMetric) 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.operationName(String operationName) If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation.totalRequestCountMetric(Collection<MetricDataQuery> totalRequestCountMetric) Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO.totalRequestCountMetric(Consumer<MetricDataQuery.Builder>... totalRequestCountMetric) Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO.totalRequestCountMetric(MetricDataQuery... totalRequestCountMetric) Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
keyAttributes
RequestBasedServiceLevelIndicatorMetricConfig.Builder keyAttributes(Map<String, String> keyAttributes) If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. To do so, you must specify at least the
Type,Name, andEnvironmentattributes.This is a string-to-string map. It can include the following fields.
-
Typedesignates the type of object this is. -
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.
- Parameters:
keyAttributes- If this SLO is related to a metric collected by Application Signals, you must use this field to specify which service the SLO metric is related to. To do so, you must specify at least theType,Name, andEnvironmentattributes.This is a string-to-string map. It can include the following fields.
-
Typedesignates the type of object this is. -
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
operationName
If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation.
- Parameters:
operationName- If the SLO is to monitor a specific operation of the service, use this field to specify the name of that operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricType
If the SLO is to monitor either the
LATENCYorAVAILABILITYmetric that Application Signals collects, use this field to specify which of those metrics is used.- Parameters:
metricType- If the SLO is to monitor either theLATENCYorAVAILABILITYmetric that Application Signals collects, use this field to specify which of those metrics is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricType
RequestBasedServiceLevelIndicatorMetricConfig.Builder metricType(ServiceLevelIndicatorMetricType metricType) If the SLO is to monitor either the
LATENCYorAVAILABILITYmetric that Application Signals collects, use this field to specify which of those metrics is used.- Parameters:
metricType- If the SLO is to monitor either theLATENCYorAVAILABILITYmetric that Application Signals collects, use this field to specify which of those metrics is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalRequestCountMetric
RequestBasedServiceLevelIndicatorMetricConfig.Builder totalRequestCountMetric(Collection<MetricDataQuery> totalRequestCountMetric) Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO. This result will be divided by the "good request" or "bad request" value defined in
MonitoredRequestCountMetric.- Parameters:
totalRequestCountMetric- Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO. This result will be divided by the "good request" or "bad request" value defined inMonitoredRequestCountMetric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalRequestCountMetric
RequestBasedServiceLevelIndicatorMetricConfig.Builder totalRequestCountMetric(MetricDataQuery... totalRequestCountMetric) Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO. This result will be divided by the "good request" or "bad request" value defined in
MonitoredRequestCountMetric.- Parameters:
totalRequestCountMetric- Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO. This result will be divided by the "good request" or "bad request" value defined inMonitoredRequestCountMetric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalRequestCountMetric
RequestBasedServiceLevelIndicatorMetricConfig.Builder totalRequestCountMetric(Consumer<MetricDataQuery.Builder>... totalRequestCountMetric) Use this structure to define the metric that you want to use as the "total requests" number for a request-based SLO. This result will be divided by the "good request" or "bad request" value defined in
This is a convenience method that creates an instance of theMonitoredRequestCountMetric.MetricDataQuery.Builderavoiding the need to create one manually viaMetricDataQuery.builder().When the
Consumercompletes,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
RequestBasedServiceLevelIndicatorMetricConfig.Builder monitoredRequestCountMetric(MonitoredRequestCountMetricDataQueries monitoredRequestCountMetric) 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.- Parameters:
monitoredRequestCountMetric- 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 inTotalRequestCountMetricwill be divided by the number found forMonitoredRequestCountMetricto 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 RequestBasedServiceLevelIndicatorMetricConfig.Builder monitoredRequestCountMetric(Consumer<MonitoredRequestCountMetricDataQueries.Builder> monitoredRequestCountMetric) 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
This is a convenience method that creates an instance of theTotalRequestCountMetricwill be divided by the number found forMonitoredRequestCountMetricto determine the percentage of successful requests that this SLO tracks.MonitoredRequestCountMetricDataQueries.Builderavoiding the need to create one manually viaMonitoredRequestCountMetricDataQueries.builder().When the
Consumercompletes,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:
-