Class CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.SliMetricProperty>
- Enclosing interface:
CfnServiceLevelObjectivePropsMixin.SliMetricProperty
@Stability(Stable)
public static final class CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.SliMetricProperty>
A builder for
CfnServiceLevelObjectivePropsMixin.SliMetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dependencyConfig(CfnServiceLevelObjectivePropsMixin.DependencyConfigProperty dependencyConfig) dependencyConfig(IResolvable dependencyConfig) keyAttributes(Map<String, String> keyAttributes) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getKeyAttributes()keyAttributes(IResolvable keyAttributes) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getKeyAttributes()metricDataQueries(List<? extends Object> metricDataQueries) metricDataQueries(IResolvable metricDataQueries) metricType(String metricType) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getMetricType()operationName(String operationName) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getOperationName()periodSeconds(Number periodSeconds) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getPeriodSeconds()Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getStatistic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dependencyConfig
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder dependencyConfig(IResolvable dependencyConfig) - Parameters:
dependencyConfig- Identifies the dependency using theDependencyKeyAttributesandDependencyOperationName.- Returns:
this
-
dependencyConfig
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder dependencyConfig(CfnServiceLevelObjectivePropsMixin.DependencyConfigProperty dependencyConfig) - Parameters:
dependencyConfig- Identifies the dependency using theDependencyKeyAttributesandDependencyOperationName.- Returns:
this
-
keyAttributes
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder keyAttributes(Map<String, String> keyAttributes) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getKeyAttributes()- 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:
this
-
keyAttributes
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder keyAttributes(IResolvable keyAttributes) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getKeyAttributes()- 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:
this
-
metricDataQueries
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder metricDataQueries(IResolvable metricDataQueries) - Parameters:
metricDataQueries- If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression.- Returns:
this
-
metricDataQueries
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder metricDataQueries(List<? extends Object> metricDataQueries) - Parameters:
metricDataQueries- If this SLO monitors a CloudWatch metric or the result of a CloudWatch metric math expression, use this structure to specify that metric or expression.- Returns:
this
-
metricType
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder metricType(String metricType) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getMetricType()- 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:
this
-
operationName
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder operationName(String operationName) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getOperationName()- 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:
this
-
periodSeconds
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder periodSeconds(Number periodSeconds) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getPeriodSeconds()- Parameters:
periodSeconds- The number of seconds to use as the period for SLO evaluation. Your application's performance is compared to the SLI during each period. For each period, the application is determined to have either achieved or not achieved the necessary performance.- Returns:
this
-
statistic
@Stability(Stable) public CfnServiceLevelObjectivePropsMixin.SliMetricProperty.Builder statistic(String statistic) Sets the value ofCfnServiceLevelObjectivePropsMixin.SliMetricProperty.getStatistic()- Parameters:
statistic- The statistic to use for comparison to the threshold. It can be any CloudWatch statistic or extended statistic. For more information about statistics, see CloudWatch statistics definitions .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjectivePropsMixin.SliMetricProperty>- Returns:
- a new instance of
CfnServiceLevelObjectivePropsMixin.SliMetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-