public class CpuUtilizationAlertConfigurer extends Object implements AlertConfigurer
Use the call to create() to create a fully initialized CpuUtilizationAlertConfiguration configuration.
CpuUtilizationAlertConfiguration| Constructor and Description |
|---|
CpuUtilizationAlertConfigurer()
Constructs an empty machine CPU utilization alert configuration.
|
| Modifier and Type | Method and Description |
|---|---|
CpuUtilizationAlertConfiguration |
create()
Get a fully configured machine CPU utilization configuration (after all properties have been
set).
|
CpuUtilizationAlertConfigurer |
enable(boolean enabled)
Enable an alert using this configuration.
|
CpuUtilizationAlertConfigurer |
measurementPeriod(long period,
TimeUnit timeUnit)
Set the period of time a CPU alert should be triggered if it's reading is above/below the
threshold setting.
|
CpuUtilizationAlertConfigurer |
raiseAlertIfCpuAbove(int highThreshold)
Raise an alert if the CPU reading is above the specified threshold for a period of time.
|
CpuUtilizationAlertConfigurer |
resolveAlertIfCpuBelow(int lowThreshold)
Resolve the previously raised alert if CPU is below the specified threshold for a period of
time.
|
public CpuUtilizationAlertConfigurer()
public CpuUtilizationAlertConfigurer enable(boolean enabled)
AlertConfigurerenable in interface AlertConfigurerenabled - true to enable the alert using this configuration;
false to disable the alert.AlertConfiguration.setEnabled(boolean)public CpuUtilizationAlertConfigurer raiseAlertIfCpuAbove(int highThreshold)
measurementPeriod(long, TimeUnit).highThreshold - high threshold percentage.CpuUtilizationAlertConfiguration.setHighThresholdPerc(int)public CpuUtilizationAlertConfigurer resolveAlertIfCpuBelow(int lowThreshold)
measurementPeriod(long, TimeUnit).lowThreshold - low threshold percentage.CpuUtilizationAlertConfiguration.setLowThresholdPerc(int)public CpuUtilizationAlertConfigurer measurementPeriod(long period, TimeUnit timeUnit)
period - period of time.timeUnit - the time unit of the specified period.public CpuUtilizationAlertConfiguration create()
create in interface BeanConfigurer<AlertConfiguration>Copyright © GigaSpaces.