function monitoring_event_severities in Monitoring 8
Same name and namespace in other branches
- 7 monitoring.monitoring_sensors.inc \monitoring_event_severities()
Maps severities to their machine names.
Return value
array Severity names array keyed by RfcLogLevel constants.
1 call to monitoring_event_severities()
- MonitoringCoreKernelTest::testDatabaseAggregatorSensorPluginDblog in tests/
src/ Kernel/ MonitoringCoreKernelTest.php - Tests dblog watchdog sensor.
File
- ./
monitoring.install, line 65 - Monitoring base install file.
Code
function monitoring_event_severities() {
return array(
RfcLogLevel::DEBUG => 'debug',
RfcLogLevel::INFO => 'info',
RfcLogLevel::NOTICE => 'notice',
RfcLogLevel::WARNING => 'warning',
RfcLogLevel::ERROR => 'error',
RfcLogLevel::EMERGENCY => 'emergency',
RfcLogLevel::ALERT => 'alert',
RfcLogLevel::CRITICAL => 'critical',
);
}