public class SchedulerMonitor extends InitializingMonitor
init(com.atlassian.diagnostics.MonitoringService) must be called to begin operations.monitor| Constructor and Description |
|---|
SchedulerMonitor(SchedulerMonitorConfiguration schedulerMonitorConfiguration,
AlertTriggerResolver alertTriggerResolver,
BundleFinder bundleFinder) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(MonitoringService monitoringService) |
void |
raiseAlertForHighUtilization(Instant timestamp,
List<RunningJobDiagnostic> runningJobs,
int workerThreadCount)
Raises an alert for scheduler high utilization.
|
void |
raiseAlertForSlowJob(Instant timestamp,
ScheduledJobDiagnostic diagnostic)
Raises an alert for a scheduled job taking longer than it's configured interval.
|
alert, defineIssue, defineIssuepublic SchedulerMonitor(SchedulerMonitorConfiguration schedulerMonitorConfiguration, AlertTriggerResolver alertTriggerResolver, BundleFinder bundleFinder)
public void init(@Nonnull MonitoringService monitoringService)
init in class InitializingMonitorpublic void raiseAlertForHighUtilization(@Nonnull Instant timestamp, @Nonnull List<RunningJobDiagnostic> runningJobs, int workerThreadCount)
timestamp - the timestamp to be used on the alertrunningJobs - the running jobsworkerThreadCount - the total number of worker threadspublic void raiseAlertForSlowJob(@Nonnull Instant timestamp, @Nonnull ScheduledJobDiagnostic diagnostic)
timestamp - the timestamp to be used on the alertdiagnostic - the diagnostic detailsCopyright © 2017–2019 Atlassian. All rights reserved.