function MonitoringCoreTest::loadWatchdog in Monitoring 7
Loads watchdog entries by type.
Parameters
string $type: Watchdog type.
Return value
array List of dblog entries.
1 call to MonitoringCoreTest::loadWatchdog()
- MonitoringCoreTest::testSensorDisappearedSensors in test/
tests/ monitoring.core.test - Tests for SensorDisappearedSensors.
File
- test/
tests/ monitoring.core.test, line 837 - Contains \MonitoringCoreTest.
Class
- MonitoringCoreTest
- Tests for cron sensor.
Code
function loadWatchdog($type = 'monitoring') {
return db_query("SELECT * FROM {watchdog} WHERE type = :type", array(
':type' => $type,
))
->fetchAll();
}