Package org.jclouds.cloudwatch.options
Class SaveAlarmOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.cloudwatch.options.SaveAlarmOptions
-
- All Implemented Interfaces:
HttpRequestOptions
@Beta public class SaveAlarmOptions extends BaseHttpRequestOptions
Options used to create/update an alarm.
-
-
Field Summary
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description SaveAlarmOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaveAlarmOptionsactionsEnabled(boolean actionsEnabled)Indicates whether or not actions should be executed during any changes to the alarm's state.SaveAlarmOptionsalarmAction(String alarmAction)The action to execute when this alarm transitions into an ALARM state from any other state.SaveAlarmOptionsalarmActions(Set<String> alarmActions)The list of actions to execute when this alarm transitions into an ALARM state from any other state.SaveAlarmOptionsalarmDescription(String alarmDescription)The description of the alarm.SaveAlarmOptionsalarmName(String alarmName)The name of the alarm.SaveAlarmOptionscomparisonOperator(ComparisonOperator comparisonOperator)The arithmetic operation to use when comparing the specified statistic and threshold.SaveAlarmOptionsdimension(Dimension dimension)The dimension for the alarm's associated metric.SaveAlarmOptionsdimensions(Set<Dimension> dimensions)The dimensions for the alarm's associated metric.SaveAlarmOptionsevaluationPeriods(int evaluationPeriods)The number of periods over which data is compared to the specified threshold.SaveAlarmOptionsinsufficientDataAction(String insufficientDataAction)The actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state.SaveAlarmOptionsinsufficientDataActions(Set<String> insufficientDataActions)The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state.SaveAlarmOptionsmetricName(String metricName)The name for the alarm's associated metric.SaveAlarmOptionsnamespace(String namespace)The namespace for the alarm's associated metric.SaveAlarmOptionsokAction(String okAction)The action to execute when this alarm transitions into an OK state from any other state.SaveAlarmOptionsokActions(Set<String> okActions)The list of actions to execute when this alarm transitions into an OK state from any other state.SaveAlarmOptionsperiod(int period)The period in seconds over which the specified statistic is applied.SaveAlarmOptionsstatistic(Statistics statistic)The statistic to apply to the alarm's associated metric.SaveAlarmOptionsthreshold(double threshold)The value against which the specified statistic is compared.SaveAlarmOptionsunit(Unit unit)The unit for the alarm's associated metric.-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Method Detail
-
actionsEnabled
public SaveAlarmOptions actionsEnabled(boolean actionsEnabled)
Indicates whether or not actions should be executed during any changes to the alarm's state.- Parameters:
actionsEnabled- indicates whether or not actions should be executed during any changes to the alarm's state- Returns:
- this
SaveAlarmOptionsobject
-
alarmActions
public SaveAlarmOptions alarmActions(Set<String> alarmActions)
The list of actions to execute when this alarm transitions into an ALARM state from any other state.- Parameters:
alarmActions- the list of actions to execute when this alarm transitions into an ALARM state from any other state- Returns:
- this
SaveAlarmOptionsobject
-
alarmAction
public SaveAlarmOptions alarmAction(String alarmAction)
The action to execute when this alarm transitions into an ALARM state from any other state.- Parameters:
alarmAction- the actions to execute when this alarm transitions into an ALARM state from any other state- Returns:
- this
SaveAlarmOptionsobject
-
alarmDescription
public SaveAlarmOptions alarmDescription(String alarmDescription)
The description of the alarm.- Parameters:
alarmDescription- the description of the alarm- Returns:
- this
SaveAlarmOptionsobject
-
alarmName
public SaveAlarmOptions alarmName(String alarmName)
The name of the alarm.- Parameters:
alarmName- the name of the alarm- Returns:
- this
SaveAlarmOptionsobject
-
comparisonOperator
public SaveAlarmOptions comparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified statistic and threshold.- Parameters:
comparisonOperator- the arithmetic operation to use when comparing the specified statistic and threshold- Returns:
- this
SaveAlarmOptionsobject
-
dimensions
public SaveAlarmOptions dimensions(Set<Dimension> dimensions)
The dimensions for the alarm's associated metric.- Parameters:
dimensions- the dimensions for the alarm's associated metric- Returns:
- this
SaveAlarmOptionsobject
-
dimension
public SaveAlarmOptions dimension(Dimension dimension)
The dimension for the alarm's associated metric.- Parameters:
dimension- the dimension for the alarm's associated metric- Returns:
- this
SaveAlarmOptionsobject
-
evaluationPeriods
public SaveAlarmOptions evaluationPeriods(int evaluationPeriods)
The number of periods over which data is compared to the specified threshold.- Parameters:
evaluationPeriods- the number of periods over which data is compared to the specified threshold- Returns:
- this
SaveAlarmOptionsobject
-
insufficientDataActions
public SaveAlarmOptions insufficientDataActions(Set<String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state.- Parameters:
insufficientDataActions- the list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state- Returns:
- this
SaveAlarmOptionsobject
-
insufficientDataAction
public SaveAlarmOptions insufficientDataAction(String insufficientDataAction)
The actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state.- Parameters:
insufficientDataAction- the action to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state- Returns:
- this
SaveAlarmOptionsobject
-
metricName
public SaveAlarmOptions metricName(String metricName)
The name for the alarm's associated metric.- Parameters:
metricName- the name for the alarm's associated metric- Returns:
- this
SaveAlarmOptionsobject
-
namespace
public SaveAlarmOptions namespace(String namespace)
The namespace for the alarm's associated metric.- Parameters:
namespace- the namespace for the alarm's associated metric- Returns:
- this
SaveAlarmOptionsobject
-
okActions
public SaveAlarmOptions okActions(Set<String> okActions)
The list of actions to execute when this alarm transitions into an OK state from any other state.- Parameters:
okActions- the list of actions to execute when this alarm transitions into an OK state from any other state- Returns:
- this
SaveAlarmOptionsobject
-
okAction
public SaveAlarmOptions okAction(String okAction)
The action to execute when this alarm transitions into an OK state from any other state.- Parameters:
okAction- the action to execute when this alarm transitions into an OK state from any other state- Returns:
- this
SaveAlarmOptionsobject
-
period
public SaveAlarmOptions period(int period)
The period in seconds over which the specified statistic is applied.- Parameters:
period- the period in seconds over which the specified statistic is applied- Returns:
- this
SaveAlarmOptionsobject
-
statistic
public SaveAlarmOptions statistic(Statistics statistic)
The statistic to apply to the alarm's associated metric.- Parameters:
statistic- the statistic to apply to the alarm's associated metric- Returns:
- this
SaveAlarmOptionsobject
-
threshold
public SaveAlarmOptions threshold(double threshold)
The value against which the specified statistic is compared.- Parameters:
threshold- the value against which the specified statistic is compared- Returns:
- this
SaveAlarmOptionsobject
-
unit
public SaveAlarmOptions unit(Unit unit)
The unit for the alarm's associated metric.- Parameters:
unit- the unit for the alarm's associated metric- Returns:
- this
SaveAlarmOptionsobject
-
-