|
|
@@ -956,7 +956,7 @@ class BxDolAIQuery extends BxDolDb
|
|
|
public function getAlerts()
|
|
|
{
|
|
|
$aValues = [];
|
|
|
- $aAlerts = $this->getAll("SELECT `unit`, `action` FROM `sys_alerts_log` ORDER BY `unit`, `action`");
|
|
|
+ $aAlerts = $this->getAll("SELECT `unit`, `action`, `counter_24h` FROM `sys_alerts_log` ORDER BY `unit`, `action`");
|
|
|
foreach ($aAlerts as $a) {
|
|
|
$sKey = $a['unit'] . ':' . $a['action'];
|
|
|
$aValues[$sKey] = [
|
|
|
@@ -965,6 +965,7 @@ class BxDolAIQuery extends BxDolDb
|
|
|
'action' => $a['action'],
|
|
|
'name' => $a['unit'] . ' - ' . $a['action'],
|
|
|
'desc' => $this->getAlertDesc($a['unit'] . ':' . $a['action']),
|
|
|
+ 'counter_24h' => $a['counter_24h'],
|
|
|
];
|
|
|
}
|
|
|
return $aValues;
|