@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Goal extends Object implements Serializable, Cloneable, StructuredPojo
This structure contains the attributes that determine the goal of an SLO. This includes the time period for evaluation and the attainment threshold.
Constructor and Description |
---|
Goal() |
Modifier and Type | Method and Description |
---|---|
Goal |
clone() |
boolean |
equals(Object obj) |
Double |
getAttainmentGoal()
The threshold that determines if the goal is being met.
|
Interval |
getInterval()
The time period used to evaluate the SLO.
|
Double |
getWarningThreshold()
The percentage of remaining budget over total budget that you want to get warnings for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttainmentGoal(Double attainmentGoal)
The threshold that determines if the goal is being met.
|
void |
setInterval(Interval interval)
The time period used to evaluate the SLO.
|
void |
setWarningThreshold(Double warningThreshold)
The percentage of remaining budget over total budget that you want to get warnings for.
|
String |
toString()
Returns a string representation of this object.
|
Goal |
withAttainmentGoal(Double attainmentGoal)
The threshold that determines if the goal is being met.
|
Goal |
withInterval(Interval interval)
The time period used to evaluate the SLO.
|
Goal |
withWarningThreshold(Double warningThreshold)
The percentage of remaining budget over total budget that you want to get warnings for.
|
public void setInterval(Interval interval)
The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
If you omit this parameter, a rolling interval of 7 days is used.
interval
- The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
If you omit this parameter, a rolling interval of 7 days is used.
public Interval getInterval()
The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
If you omit this parameter, a rolling interval of 7 days is used.
If you omit this parameter, a rolling interval of 7 days is used.
public Goal withInterval(Interval interval)
The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
If you omit this parameter, a rolling interval of 7 days is used.
interval
- The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
If you omit this parameter, a rolling interval of 7 days is used.
public void setAttainmentGoal(Double attainmentGoal)
The threshold that determines if the goal is being met. An attainment goal is the ratio of good periods that meet the threshold requirements to the total periods within the interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state.
If you omit this parameter, 99 is used to represent 99% as the attainment goal.
attainmentGoal
- The threshold that determines if the goal is being met. An attainment goal is the ratio of good
periods that meet the threshold requirements to the total periods within the interval. For example, an
attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in
healthy state.
If you omit this parameter, 99 is used to represent 99% as the attainment goal.
public Double getAttainmentGoal()
The threshold that determines if the goal is being met. An attainment goal is the ratio of good periods that meet the threshold requirements to the total periods within the interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state.
If you omit this parameter, 99 is used to represent 99% as the attainment goal.
If you omit this parameter, 99 is used to represent 99% as the attainment goal.
public Goal withAttainmentGoal(Double attainmentGoal)
The threshold that determines if the goal is being met. An attainment goal is the ratio of good periods that meet the threshold requirements to the total periods within the interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state.
If you omit this parameter, 99 is used to represent 99% as the attainment goal.
attainmentGoal
- The threshold that determines if the goal is being met. An attainment goal is the ratio of good
periods that meet the threshold requirements to the total periods within the interval. For example, an
attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in
healthy state.
If you omit this parameter, 99 is used to represent 99% as the attainment goal.
public void setWarningThreshold(Double warningThreshold)
The percentage of remaining budget over total budget that you want to get warnings for. If you omit this parameter, the default of 50.0 is used.
warningThreshold
- The percentage of remaining budget over total budget that you want to get warnings for. If you omit this
parameter, the default of 50.0 is used.public Double getWarningThreshold()
The percentage of remaining budget over total budget that you want to get warnings for. If you omit this parameter, the default of 50.0 is used.
public Goal withWarningThreshold(Double warningThreshold)
The percentage of remaining budget over total budget that you want to get warnings for. If you omit this parameter, the default of 50.0 is used.
warningThreshold
- The percentage of remaining budget over total budget that you want to get warnings for. If you omit this
parameter, the default of 50.0 is used.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.