Class ConcurrentScannerPerformanceAlertRegistration


  • public class ConcurrentScannerPerformanceAlertRegistration
    extends java.lang.Object
    Contains the details for raising an alert when a low value has been observed for a "long" time. The "too low" values and the period of time that will trigger concern will be configured at the scanner level.
    • Method Detail

      • getMetricName

        public java.lang.String getMetricName()
        Returns:
        The metric we want to generate alerts for
      • getLowPerformanceThreshhould

        public long getLowPerformanceThreshhould()
        When the metric value is <= from this value for at least ConcurrentScannerPerformanceAlertRegistration#getTimeInSeconds an alert is created
        Returns:
        threshold value
      • setLowPerformanceThreshhould

        public void setLowPerformanceThreshhould​(long lowPerformanceThreshhould)
      • getMinimalTimeOfBadValueToRaiseAlertInMillis

        public long getMinimalTimeOfBadValueToRaiseAlertInMillis()
        When the metric value is smaller than the threshold for at least this value, an alert is created. The alert will get created again after this period if the metric value is still smaller than the threshold.
        Returns:
        time in millis
      • setMinimalTimeOfBadValueToRaiseAlertInMillis

        public void setMinimalTimeOfBadValueToRaiseAlertInMillis​(long minimalTimeOfBadValueToRaiseAlertInMillis)