Interface AlertGenerationChecker


public interface AlertGenerationChecker
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the alert counter for for given type
    boolean
    Given an alert type this methid calculates if an alert generation is required
    void
    updateAlertConfiguration(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

      boolean isAlertRequired(MonitorConstants.AlertTypes alertType)
      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: