function monitoring_event_severities in Monitoring 7
Same name and namespace in other branches
- 8 monitoring.install \monitoring_event_severities()
Maps severities to their machine names.
Return value
array Severity names array keyed by WATCHDOG_* constants.
3 calls to monitoring_event_severities()
- MonitoringCoreTest::testSensors in test/
tests/ monitoring.core.test - Tests individual sensors.
- monitoring_dblog_monitoring_sensor_info in ./
monitoring.monitoring_sensors.inc - Implements monitoring_MODULE_monitoring_sensor_info().
- monitoring_past_db_monitoring_sensor_info in ./
monitoring.monitoring_sensors.inc - Implements monitoring_MODULE_monitoring_sensor_info().
File
- ./
monitoring.monitoring_sensors.inc, line 818 - Define default sensors for core and contrib modules.
Code
function monitoring_event_severities() {
return array(
WATCHDOG_DEBUG => 'debug',
WATCHDOG_INFO => 'info',
WATCHDOG_NOTICE => 'notice',
WATCHDOG_WARNING => 'notice',
WATCHDOG_ERROR => 'error',
WATCHDOG_EMERGENCY => 'emergency',
WATCHDOG_ALERT => 'alert',
WATCHDOG_CRITICAL => 'critical',
);
}