Interface AlertGenerationChecker
public interface AlertGenerationChecker
-
Method Summary
Modifier and TypeMethodDescriptionintGet the alert counter for for given typebooleanisAlertRequired(MonitorConstants.AlertTypes alertType) Given an alert type this methid calculates if an alert generation is requiredvoidupdateAlertConfiguration(int alertCountResetInterval, int fatalAlertCount, int criticalAlertCount, int warningAlertCount) Method called if any of the parameters have been updated
-
Method Details
-
updateAlertConfiguration
void updateAlertConfiguration(int alertCountResetInterval, int fatalAlertCount, int criticalAlertCount, int warningAlertCount) Method called if any of the parameters have been updated- Parameters:
alertCountResetInterval-fatalAlertCount-criticalAlertCount-warningAlertCount-
-
isAlertRequired
Given an alert type this methid calculates if an alert generation is required- Parameters:
alertType-- Returns:
-
getCurrentAlertCount
int getCurrentAlertCount()Get the alert counter for for given type- Returns:
-