@Beta public class Alarm extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Alarm.State |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
boolean |
areActionsEnabled()
return whether actions are enabled if the alarm state changes
|
boolean |
equals(Object obj) |
Set<String> |
getAlarmActions()
return list of actions to perform when the alarm state changes to
Alarm.State.ALARM from any other state |
String |
getAlarmARN()
return the Amazon Resource Name (ARN) of the alarm
|
Date |
getAlarmConfigurationUpdatedTimestamp()
return the date timestamp of when the alarm was last updated
|
String |
getAlarmDescription()
return the description of the alarm
|
String |
getAlarmName()
return the name of the alarm
|
ComparisonOperator |
getComparisonOperator()
return the arithmetic operation to use when comparing the specified statistic and threshold
|
Set<Dimension> |
getDimensions()
return the list of dimensions associated with the alarm's associated metric
|
int |
getEvaluationPeriods()
return the number of periods over which data is compared to the specified threshold
|
Set<String> |
getInsufficientDataActions()
return the list of actions to execute when this alarm transitions into an
Alarm.State.INSUFFICIENT_DATA state
from any other state |
String |
getMetricName()
return the name of the alarm's metric
|
String |
getNamespace()
return the namespace of alarm's associated metric
|
Set<String> |
getOkActions()
return the list of actions to execute when this alarm transitions into an
Alarm.State.OK state from any other
state |
int |
getPeriod()
return the period in seconds over which the statistic is applied
|
Alarm.State |
getState()
return the state value for the alarm
|
String |
getStateReason()
return the human-readable explanation for the alarm's state
|
com.google.common.base.Optional<String> |
getStateReasonData()
return the explanation for the alarm's state in machine-readable JSON format
|
Date |
getStateUpdatedTimestamp()
return the time stamp of the last update to the alarm's state
|
Statistics |
getStatistic()
return the statistic to apply to the alarm's associated metric
|
double |
getThreshold()
return the value against which the specified statistic is compared
|
com.google.common.base.Optional<Unit> |
getUnit()
return the unit of the alarm's associated metric
|
int |
hashCode() |
String |
toString() |
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)
public boolean areActionsEnabled()
public Set<String> getAlarmActions()
Alarm.State.ALARM
from any other statepublic String getAlarmARN()
public Date getAlarmConfigurationUpdatedTimestamp()
public String getAlarmDescription()
public String getAlarmName()
public ComparisonOperator getComparisonOperator()
public Set<Dimension> getDimensions()
public int getEvaluationPeriods()
public Set<String> getInsufficientDataActions()
Alarm.State.INSUFFICIENT_DATA
state
from any other statepublic String getMetricName()
public String getNamespace()
public Set<String> getOkActions()
Alarm.State.OK
state from any other
statepublic int getPeriod()
public String getStateReason()
public com.google.common.base.Optional<String> getStateReasonData()
public Date getStateUpdatedTimestamp()
public Alarm.State getState()
public Statistics getStatistic()
public double getThreshold()
public com.google.common.base.Optional<Unit> getUnit()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.