public interface ThresholdRuleMBean
Configure the conditions and alarm details for a threshold rule.
Modifier and Type | Method and Description |
---|---|
void |
activateRule()
Enables this rule.
|
void |
addResetCondition(String parameterSetName,
String statistic,
String operator,
double value)
Adds a reset condition to this rule.
|
void |
addResetCondition(String parameterSetName1,
String statistic1,
String parameterSetName2,
String statistic2,
String operator,
double doubleValue)
Adds a reset condition to this rule.
|
void |
addTriggerCondition(String parameterSetName,
String statistic,
String operator,
double value)
Adds a trigger condition to this rule.
|
void |
addTriggerCondition(String parameterSetName1,
String statistic1,
String parameterSetName2,
String statistic2,
String operator,
double value)
Adds a trigger condition to this rule.
|
void |
deactivateRule()
Disables this rule.
|
AlarmLevel |
getAlarmLevel()
The alarm level of the alarm
|
String |
getAlarmMessage()
The message of the alarm
|
String |
getAlarmType()
The alarm type of the alarm
|
String[] |
getResetConditions()
The condition which will reset this rule.
|
String |
getResetConditionsOperator()
The reset condition operator.
|
long |
getResetPeriod()
The reset period.
|
String[] |
getTriggerConditions()
The condition which will trigger this rule.
|
String |
getTriggerConditionsOperator()
The trigger condition operator.
|
long |
getTriggerPeriod()
The rule trigger frequency
|
boolean |
isActive()
Test the rules is enabled
|
void |
removeResetCondition(String key)
Remove the reset condition for this rule
|
void |
removeTriggerCondition(String key)
Remove the trigger condition for this rule
|
void |
setAlarm(AlarmLevel level,
String type,
String message)
The alarm that will be raised when this rule trigers and cleared when this rule resets.
|
void |
setResetConditionsOperator(String operator)
Changes the reset condition operator.
|
void |
setResetPeriod(long period)
Change the reset period.
|
void |
setTriggerConditionsOperator(String operator)
Changes the trigger condition operator.
|
void |
setTriggerPeriod(long period)
The rule trigger frequency
|
void addTriggerCondition(String parameterSetName, String statistic, String operator, double value) throws ConfigurationException, UnknownStatsParameterSetException, UnrecognizedStatisticException, com.opencloud.util.exception.ValidationException
Adds a trigger condition to this rule.
parameterSetName
- the name of the parameter setstatistic
- the name of the statisticoperator
- the comparator operatorvalue
- the value to compare toConfigurationException
- An exceptionUnknownStatsParameterSetException
- An exceptionUnrecognizedStatisticException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid addTriggerCondition(String parameterSetName1, String statistic1, String parameterSetName2, String statistic2, String operator, double value) throws ConfigurationException, UnknownStatsParameterSetException, UnrecognizedStatisticException, com.opencloud.util.exception.ValidationException
Adds a trigger condition to this rule.
parameterSetName1
- the name of the parameter setstatistic1
- the name of the statisticparameterSetName2
- the name of the parameter setstatistic2
- the name of the statisticoperator
- the comparator operatorvalue
- the value to compare toConfigurationException
- An exceptionUnknownStatsParameterSetException
- An exceptionUnrecognizedStatisticException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid addResetCondition(String parameterSetName, String statistic, String operator, double value) throws ConfigurationException, UnknownStatsParameterSetException, UnrecognizedStatisticException, com.opencloud.util.exception.ValidationException
Adds a reset condition to this rule.
parameterSetName
- the name of the parameter setstatistic
- the name of the statisticoperator
- the comparator operatorvalue
- the value to compare toConfigurationException
- An exceptionUnknownStatsParameterSetException
- An exceptionUnrecognizedStatisticException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid addResetCondition(String parameterSetName1, String statistic1, String parameterSetName2, String statistic2, String operator, double doubleValue) throws ConfigurationException, UnknownStatsParameterSetException, UnrecognizedStatisticException, com.opencloud.util.exception.ValidationException
Adds a reset condition to this rule.
parameterSetName1
- the name of the parameter setstatistic1
- the name of the statisticparameterSetName2
- the name of the parameter setstatistic2
- the name of the statisticoperator
- the comparator operatordoubleValue
- the value to compare toConfigurationException
- An exceptionUnknownStatsParameterSetException
- An exceptionUnrecognizedStatisticException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid removeTriggerCondition(String key) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Remove the trigger condition for this rule
key
- the trigger condition keyConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid removeResetCondition(String key) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Remove the reset condition for this rule
key
- the reset condition keyConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid setTriggerConditionsOperator(String operator) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Changes the trigger condition operator.
operator
- the new operatorConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid setResetConditionsOperator(String operator) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Changes the reset condition operator.
operator
- the new operatorConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionString getTriggerConditionsOperator() throws ConfigurationException
The trigger condition operator.
ConfigurationException
- An exceptionString getResetConditionsOperator() throws ConfigurationException
The reset condition operator.
ConfigurationException
- An exceptionvoid setAlarm(AlarmLevel level, String type, String message) throws ConfigurationException, com.opencloud.util.exception.ValidationException
The alarm that will be raised when this rule trigers and cleared when this rule resets.
level
- the alarm leveltype
- the type of the alarmmessage
- the alarm messageConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid activateRule() throws ConfigurationException
Enables this rule.
ConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionvoid deactivateRule() throws ConfigurationException
Disables this rule.
ConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionboolean isActive() throws ConfigurationException
Test the rules is enabled
ConfigurationException
- An exceptionString[] getTriggerConditions() throws ConfigurationException
The condition which will trigger this rule.
ConfigurationException
- An exceptionString[] getResetConditions() throws ConfigurationException
The condition which will reset this rule.
ConfigurationException
- An exceptionString getAlarmMessage() throws ConfigurationException
The message of the alarm
ConfigurationException
- An exceptionString getAlarmType() throws ConfigurationException
The alarm type of the alarm
ConfigurationException
- An exceptionAlarmLevel getAlarmLevel() throws ConfigurationException
The alarm level of the alarm
ConfigurationException
- An exceptionvoid setTriggerPeriod(long period) throws ConfigurationException, com.opencloud.util.exception.ValidationException
The rule trigger frequency
period
- the period in millisecondsConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionlong getTriggerPeriod() throws ConfigurationException
The rule trigger frequency
ConfigurationException
- An exceptionvoid setResetPeriod(long period) throws ConfigurationException, com.opencloud.util.exception.ValidationException
Change the reset period.
period
- the period in millisecondsConfigurationException
- An exceptioncom.opencloud.util.exception.ValidationException
- An exceptionlong getResetPeriod() throws ConfigurationException
The reset period.
ConfigurationException
- An exception