Package org.jclouds.cloudwatch.domain
Class Alarm
java.lang.Object
org.jclouds.cloudwatch.domain.Alarm
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAlarm
(boolean areActionsEnabled, Set<String> alarmActions, String alarmARN, Date alarmConfigurationUpdatedTimestamp, String alarmDescription, String alarmName, ComparisonOperator comparisonOperator, Set<Dimension> dimensions, int evaluationPeriods, Set<String> insufficientDataActions, String metricName, String namespace, Set<String> okActions, int period, String stateReason, com.google.common.base.Optional<String> stateReasonData, Date stateUpdatedTimestamp, Alarm.State state, Statistics statistic, double threshold, com.google.common.base.Optional<Unit> unit) -
Method Summary
Modifier and TypeMethodDescriptionboolean
return whether actions are enabled if the alarm state changesboolean
return list of actions to perform when the alarm state changes toAlarm.State.ALARM
from any other statereturn the Amazon Resource Name (ARN) of the alarmreturn the date timestamp of when the alarm was last updatedreturn the description of the alarmreturn the name of the alarmreturn the arithmetic operation to use when comparing the specified statistic and thresholdreturn the list of dimensions associated with the alarm's associated metricint
return the number of periods over which data is compared to the specified thresholdreturn the list of actions to execute when this alarm transitions into anAlarm.State.INSUFFICIENT_DATA
state from any other statereturn the name of the alarm's metricreturn the namespace of alarm's associated metricreturn the list of actions to execute when this alarm transitions into anAlarm.State.OK
state from any other stateint
return the period in seconds over which the statistic is appliedgetState()
return the state value for the alarmreturn the human-readable explanation for the alarm's statecom.google.common.base.Optional
<String> return the explanation for the alarm's state in machine-readable JSON formatreturn the time stamp of the last update to the alarm's statereturn the statistic to apply to the alarm's associated metricdouble
return the value against which the specified statistic is comparedcom.google.common.base.Optional
<Unit> getUnit()
return the unit of the alarm's associated metricint
hashCode()
toString()
-
Constructor Details
-
Alarm
public Alarm(boolean areActionsEnabled, Set<String> alarmActions, String alarmARN, Date alarmConfigurationUpdatedTimestamp, String alarmDescription, String alarmName, ComparisonOperator comparisonOperator, Set<Dimension> dimensions, int evaluationPeriods, Set<String> insufficientDataActions, String metricName, String namespace, Set<String> okActions, int period, String stateReason, com.google.common.base.Optional<String> stateReasonData, Date stateUpdatedTimestamp, Alarm.State state, Statistics statistic, double threshold, com.google.common.base.Optional<Unit> unit)
-
-
Method Details
-
areActionsEnabled
public boolean areActionsEnabled()return whether actions are enabled if the alarm state changes -
getAlarmActions
return list of actions to perform when the alarm state changes toAlarm.State.ALARM
from any other state -
getAlarmARN
return the Amazon Resource Name (ARN) of the alarm -
getAlarmConfigurationUpdatedTimestamp
return the date timestamp of when the alarm was last updated -
getAlarmDescription
return the description of the alarm -
getAlarmName
return the name of the alarm -
getComparisonOperator
return the arithmetic operation to use when comparing the specified statistic and threshold -
getDimensions
return the list of dimensions associated with the alarm's associated metric -
getEvaluationPeriods
public int getEvaluationPeriods()return the number of periods over which data is compared to the specified threshold -
getInsufficientDataActions
return the list of actions to execute when this alarm transitions into anAlarm.State.INSUFFICIENT_DATA
state from any other state -
getMetricName
return the name of the alarm's metric -
getNamespace
return the namespace of alarm's associated metric -
getOkActions
return the list of actions to execute when this alarm transitions into anAlarm.State.OK
state from any other state -
getPeriod
public int getPeriod()return the period in seconds over which the statistic is applied -
getStateReason
return the human-readable explanation for the alarm's state -
getStateReasonData
return the explanation for the alarm's state in machine-readable JSON format -
getStateUpdatedTimestamp
return the time stamp of the last update to the alarm's state -
getState
return the state value for the alarm -
getStatistic
return the statistic to apply to the alarm's associated metric -
getThreshold
public double getThreshold()return the value against which the specified statistic is compared -
getUnit
return the unit of the alarm's associated metric -
hashCode
public int hashCode() -
equals
-
toString
-