Package com.attivio.connector
Class ConcurrentScannerPerformanceAlertRegistration
- java.lang.Object
-
- com.attivio.connector.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.
-
-
Constructor Summary
Constructors Constructor Description ConcurrentScannerPerformanceAlertRegistration(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric, long lowPerformanceThreshhould, long minimalTimeOfBadValueToRaiseAlertInMillis, ConcurrentScannerPerformanceAlertHandler alertHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConcurrentScannerPerformanceAlertHandler
getAlertHandler()
The handler to handle this alert.long
getLowPerformanceThreshhould()
When the metric value is <= from this value for at leastConcurrentScannerPerformanceAlertRegistration#getTimeInSeconds
an alert is createdConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics
getMetric()
java.lang.String
getMetricName()
long
getMinimalTimeOfBadValueToRaiseAlertInMillis()
When the metric value is smaller than the threshold for at least this value, an alert is created.void
setAlertHandler(ConcurrentScannerPerformanceAlertHandler alertHandler)
void
setLowPerformanceThreshhould(long lowPerformanceThreshhould)
void
setMetric(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric)
void
setMinimalTimeOfBadValueToRaiseAlertInMillis(long minimalTimeOfBadValueToRaiseAlertInMillis)
-
-
-
Constructor Detail
-
ConcurrentScannerPerformanceAlertRegistration
public ConcurrentScannerPerformanceAlertRegistration(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric, long lowPerformanceThreshhould, long minimalTimeOfBadValueToRaiseAlertInMillis, ConcurrentScannerPerformanceAlertHandler alertHandler)
-
-
Method Detail
-
getMetricName
public java.lang.String getMetricName()
- Returns:
- The metric we want to generate alerts for
-
getMetric
public ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics getMetric()
-
setMetric
public void setMetric(ConcurrentScannerTaskExecuter.ConcurrentExecutionMetrics metric)
-
getLowPerformanceThreshhould
public long getLowPerformanceThreshhould()
When the metric value is <= from this value for at leastConcurrentScannerPerformanceAlertRegistration#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)
-
getAlertHandler
public ConcurrentScannerPerformanceAlertHandler getAlertHandler()
The handler to handle this alert.- Returns:
- handler
-
setAlertHandler
public void setAlertHandler(ConcurrentScannerPerformanceAlertHandler alertHandler)
-
-