@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceLevelIndicatorConfig extends Object implements Serializable, Cloneable, StructuredPojo
This structure specifies the information about the service and the performance metric that an SLO is to monitor.
Constructor and Description |
---|
ServiceLevelIndicatorConfig() |
Modifier and Type | Method and Description |
---|---|
ServiceLevelIndicatorConfig |
clone() |
boolean |
equals(Object obj) |
String |
getComparisonOperator()
The arithmetic operation to use when comparing the specified metric to the threshold.
|
Double |
getMetricThreshold()
The value that the SLI metric is compared to.
|
ServiceLevelIndicatorMetricConfig |
getSliMetricConfig()
Use this structure to specify the metric to be used for the SLO.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified metric to the threshold.
|
void |
setMetricThreshold(Double metricThreshold)
The value that the SLI metric is compared to.
|
void |
setSliMetricConfig(ServiceLevelIndicatorMetricConfig sliMetricConfig)
Use this structure to specify the metric to be used for the SLO.
|
String |
toString()
Returns a string representation of this object.
|
ServiceLevelIndicatorConfig |
withComparisonOperator(ServiceLevelIndicatorComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified metric to the threshold.
|
ServiceLevelIndicatorConfig |
withComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified metric to the threshold.
|
ServiceLevelIndicatorConfig |
withMetricThreshold(Double metricThreshold)
The value that the SLI metric is compared to.
|
ServiceLevelIndicatorConfig |
withSliMetricConfig(ServiceLevelIndicatorMetricConfig sliMetricConfig)
Use this structure to specify the metric to be used for the SLO.
|
public void setSliMetricConfig(ServiceLevelIndicatorMetricConfig sliMetricConfig)
Use this structure to specify the metric to be used for the SLO.
sliMetricConfig
- Use this structure to specify the metric to be used for the SLO.public ServiceLevelIndicatorMetricConfig getSliMetricConfig()
Use this structure to specify the metric to be used for the SLO.
public ServiceLevelIndicatorConfig withSliMetricConfig(ServiceLevelIndicatorMetricConfig sliMetricConfig)
Use this structure to specify the metric to be used for the SLO.
sliMetricConfig
- Use this structure to specify the metric to be used for the SLO.public void setMetricThreshold(Double metricThreshold)
The value that the SLI metric is compared to.
metricThreshold
- The value that the SLI metric is compared to.public Double getMetricThreshold()
The value that the SLI metric is compared to.
public ServiceLevelIndicatorConfig withMetricThreshold(Double metricThreshold)
The value that the SLI metric is compared to.
metricThreshold
- The value that the SLI metric is compared to.public void setComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified metric to the threshold.
comparisonOperator
- The arithmetic operation to use when comparing the specified metric to the threshold.ServiceLevelIndicatorComparisonOperator
public String getComparisonOperator()
The arithmetic operation to use when comparing the specified metric to the threshold.
ServiceLevelIndicatorComparisonOperator
public ServiceLevelIndicatorConfig withComparisonOperator(String comparisonOperator)
The arithmetic operation to use when comparing the specified metric to the threshold.
comparisonOperator
- The arithmetic operation to use when comparing the specified metric to the threshold.ServiceLevelIndicatorComparisonOperator
public ServiceLevelIndicatorConfig withComparisonOperator(ServiceLevelIndicatorComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified metric to the threshold.
comparisonOperator
- The arithmetic operation to use when comparing the specified metric to the threshold.ServiceLevelIndicatorComparisonOperator
public String toString()
toString
in class Object
Object.toString()
public ServiceLevelIndicatorConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.