Add 'alert history' widget for dashboard (#10901)

* add alert history dashboard

* add sql-schema

* only alert

* add settings

* add settings

* fix display alert details

* fix db-schema

* add filtering by severity

* fix code climate

* Update common.php
This commit is contained in:
louis-oui
2020-01-23 12:27:57 +01:00
committed by Kevin Krumm
parent 945be18ea6
commit 4395b002ab
6 changed files with 164 additions and 0 deletions

View File

@@ -13,6 +13,17 @@
* @author LibreNMS Contributors
*/
$alert_severities = array(
// alert_rules.status is enum('ok','warning','critical')
'ok' => 1,
'warning' => 2,
'critical' => 3,
'ok only' => 4,
'warning only' => 5,
'critical only' => 6,
);
$where = 1;
$param = [];