public abstract class AbstractAlertSampleManager extends AbstractSampleManager implements AlertSampleManager
AlertSampleManager
.
If the configuration mailBody is i18n, it can include two parameters :
the first one is the current value, the second one is the threshold valueAlertSampleManager.Threshold
MonitoringConstants.Period
Modifier and Type | Field and Description |
---|---|
protected I18nizableText |
_body
The body of the mail
|
protected I18nizableText |
_subject
The subject of the mail
|
_description, _featureName, _id, _label, _logger, _pluginName
FEEDING_PERIOD, RRD_EXT, RRD_STORAGE_DIRECTORY
Constructor and Description |
---|
AbstractAlertSampleManager() |
Modifier and Type | Method and Description |
---|---|
private Object |
_getTypedValue(String configName) |
void |
configure(Configuration configuration) |
protected abstract Map<String,AlertSampleManager.Threshold.Operator> |
getOperators()
Provides the kind of operator for triggering the alert for each datasource an alert is attached to.
|
protected abstract Map<String,String> |
getThresholdConfigNames()
Provides the configuration names for each datasource an alert is attached to.
|
Map<String,AlertSampleManager.Threshold> |
getThresholdValues()
Provides the threshold for each datasource.
|
_configureDatasources, _configureValueRange, _getGraphTitle, _internalCollect, _registerDatasources, _setCommonParameters, collect, configureRRDDef, enableLogging, getDescription, getId, getLabel, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collect, configureRRDDef, getDescription, getId, getLabel
protected I18nizableText _subject
protected I18nizableText _body
public AbstractAlertSampleManager()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractSampleManager
ConfigurationException
public Map<String,AlertSampleManager.Threshold> getThresholdValues()
AlertSampleManager
getThresholdValues
in interface AlertSampleManager
private Object _getTypedValue(String configName)
protected abstract Map<String,String> getThresholdConfigNames()
getOperators()
protected abstract Map<String,AlertSampleManager.Threshold.Operator> getOperators()
getThresholdConfigNames()