public class OperatingSystemMonitor extends InitializingMonitor
init(com.atlassian.diagnostics.MonitoringService) must be called to begin operationsmonitor| Constructor and Description |
|---|
OperatingSystemMonitor(OperatingSystemMonitorConfiguration operatingSystemMonitorConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
alertFileSystemInaccessible(File file)
Raises an alert for an inaccessible system directory.
|
void |
alertLowFreeDiskSpace(File directory,
long free,
long total,
long minimum)
Raises an alert for low free disk space.
|
void |
alertLowFreeMemory(long free,
long total,
long minimum)
Raises an alert for low free memory.
|
void |
init(MonitoringService monitoringService) |
void |
raiseAlertForHighCpu(Instant timestamp,
HighCPUUsageEvent highCpuUsageEvent)
Raises an alert for high CPU usage.
|
alert, defineIssue, defineIssuepublic OperatingSystemMonitor(OperatingSystemMonitorConfiguration operatingSystemMonitorConfiguration)
public void init(MonitoringService monitoringService)
init in class InitializingMonitorpublic void raiseAlertForHighCpu(@Nonnull Instant timestamp, @Nonnull HighCPUUsageEvent highCpuUsageEvent)
timestamp - the timestamp to be used on the alerthighCpuUsageEvent - the snapshot of the CPUpublic void alertLowFreeMemory(long free,
long total,
long minimum)
free - the free space available on Disktotal - the total space available on Diskminimum - the minimum free space for Alertpublic void alertLowFreeDiskSpace(File directory, long free, long total, long minimum)
directory - the directory checked for the Alertfree - the free space available in the Directorytotal - the total space available in the Directoryminimum - the minimum free space for Alertpublic void alertFileSystemInaccessible(File file)
file - the directory that is inaccessibleCopyright © 2017–2019 Atlassian. All rights reserved.