Package org.jclouds.cloudwatch.domain
Class Alarm
- java.lang.Object
-
- org.jclouds.cloudwatch.domain.Alarm
-
@Beta public class Alarm extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlarm.State
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareActionsEnabled()return whether actions are enabled if the alarm state changesbooleanequals(Object obj)Set<String>getAlarmActions()return list of actions to perform when the alarm state changes toAlarm.State.ALARMfrom any other stateStringgetAlarmARN()return the Amazon Resource Name (ARN) of the alarmDategetAlarmConfigurationUpdatedTimestamp()return the date timestamp of when the alarm was last updatedStringgetAlarmDescription()return the description of the alarmStringgetAlarmName()return the name of the alarmComparisonOperatorgetComparisonOperator()return the arithmetic operation to use when comparing the specified statistic and thresholdSet<Dimension>getDimensions()return the list of dimensions associated with the alarm's associated metricintgetEvaluationPeriods()return the number of periods over which data is compared to the specified thresholdSet<String>getInsufficientDataActions()return the list of actions to execute when this alarm transitions into anAlarm.State.INSUFFICIENT_DATAstate from any other stateStringgetMetricName()return the name of the alarm's metricStringgetNamespace()return the namespace of alarm's associated metricSet<String>getOkActions()return the list of actions to execute when this alarm transitions into anAlarm.State.OKstate from any other stateintgetPeriod()return the period in seconds over which the statistic is appliedAlarm.StategetState()return the state value for the alarmStringgetStateReason()return the human-readable explanation for the alarm's statecom.google.common.base.Optional<String>getStateReasonData()return the explanation for the alarm's state in machine-readable JSON formatDategetStateUpdatedTimestamp()return the time stamp of the last update to the alarm's stateStatisticsgetStatistic()return the statistic to apply to the alarm's associated metricdoublegetThreshold()return the value against which the specified statistic is comparedcom.google.common.base.Optional<Unit>getUnit()return the unit of the alarm's associated metricinthashCode()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
areActionsEnabled
public boolean areActionsEnabled()
return whether actions are enabled if the alarm state changes
-
getAlarmActions
public Set<String> getAlarmActions()
return list of actions to perform when the alarm state changes toAlarm.State.ALARMfrom any other state
-
getAlarmARN
public String getAlarmARN()
return the Amazon Resource Name (ARN) of the alarm
-
getAlarmConfigurationUpdatedTimestamp
public Date getAlarmConfigurationUpdatedTimestamp()
return the date timestamp of when the alarm was last updated
-
getAlarmDescription
public String getAlarmDescription()
return the description of the alarm
-
getAlarmName
public String getAlarmName()
return the name of the alarm
-
getComparisonOperator
public ComparisonOperator getComparisonOperator()
return the arithmetic operation to use when comparing the specified statistic and threshold
-
getDimensions
public Set<Dimension> 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
public Set<String> getInsufficientDataActions()
return the list of actions to execute when this alarm transitions into anAlarm.State.INSUFFICIENT_DATAstate from any other state
-
getMetricName
public String getMetricName()
return the name of the alarm's metric
-
getNamespace
public String getNamespace()
return the namespace of alarm's associated metric
-
getOkActions
public Set<String> getOkActions()
return the list of actions to execute when this alarm transitions into anAlarm.State.OKstate from any other state
-
getPeriod
public int getPeriod()
return the period in seconds over which the statistic is applied
-
getStateReason
public String getStateReason()
return the human-readable explanation for the alarm's state
-
getStateReasonData
public com.google.common.base.Optional<String> getStateReasonData()
return the explanation for the alarm's state in machine-readable JSON format
-
getStateUpdatedTimestamp
public Date getStateUpdatedTimestamp()
return the time stamp of the last update to the alarm's state
-
getState
public Alarm.State getState()
return the state value for the alarm
-
getStatistic
public Statistics 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
public com.google.common.base.Optional<Unit> getUnit()
return the unit of the alarm's associated metric
-
-