Interface ServiceLevelIndicatorMetric.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceLevelIndicatorMetric.Builder,
,ServiceLevelIndicatorMetric> SdkBuilder<ServiceLevelIndicatorMetric.Builder,
,ServiceLevelIndicatorMetric> SdkPojo
- Enclosing class:
ServiceLevelIndicatorMetric
-
Method Summary
Modifier and TypeMethodDescriptionkeyAttributes
(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.metricDataQueries
(Collection<MetricDataQuery> metricDataQueries) If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.metricDataQueries
(Consumer<MetricDataQuery.Builder>... metricDataQueries) If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.metricDataQueries
(MetricDataQuery... metricDataQueries) If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.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.operationName
(String operationName) If the SLO monitors a specific operation of the service, this field displays that operation name.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, 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
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:
-
metricDataQueries
ServiceLevelIndicatorMetric.Builder metricDataQueries(Collection<MetricDataQuery> metricDataQueries) If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.
- Parameters:
metricDataQueries
- If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataQueries
If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.
- Parameters:
metricDataQueries
- If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataQueries
ServiceLevelIndicatorMetric.Builder metricDataQueries(Consumer<MetricDataQuery.Builder>... metricDataQueries) If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, this structure includes the information about that metric or expression.
This is a convenience method that creates an instance of theMetricDataQuery.Builder
avoiding the need to create one manually viaMetricDataQuery.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricDataQueries(List<MetricDataQuery>)
.- Parameters:
metricDataQueries
- 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:
-