You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Alert diff, Add new AlertStatus changed, Fix AlertLog UI not showing the correct details (librenms#16313)
* Fix alert diff and add new status changed
* Fix for styleci
* Fix for styleci2
* Fix PHP Static Analysis
* Fix for styleci3
* Fix PHP Static 2
* Typo
* Fix the UI as it wouldn't fetch the correct details
* Fix the UI for clear/resolved
* Ignore PHPStan as dbFetchRows is already in use in this file and some improvements for the eventlog UI variable names
* Typo
* A more robust method of comparison
* Fix styleci
* Fix rename missing
* Fix PHP Static Analysis
* Fix typo when AlertState Better
* Add failsafe and improve diffBetweenFaults
* Fix style & PHP Static Analysis
* Add back the default $state
* Remove the else as we need to let go a "not changed"
* Change UI "title" for the modifications
* Fix doc
* Fix merge conflict
* Fake rollback for conflict
* Update again for conflict
* Update again for conflict
* Rename "got changed" to "changed"
* Some language changes
---------
Co-authored-by: Neil Lathwood <[email protected]>
Eventlog::log('Alert got worse but the diff was not, ensure that a "id" or "_id" field is available for rule ' . $alert['name'], $alert['device_id'], 'alert', Severity::Warning);
Eventlog::log('Alert got better but the diff was not, ensure that a "id" or "_id" field is available for rule ' . $alert['name'], $alert['device_id'], 'alert', Severity::Warning);
330
349
}
331
350
332
-
if ($state > AlertState::CLEAR && $n > 0) {
351
+
if ($state > AlertState::CLEAR && $current_alert_count > 0) {
333
352
$alert['details']['rule'] = $chk;
334
353
if (dbInsert([
335
354
'state' => $state,
@@ -340,12 +359,83 @@ public function runFollowUp()
0 commit comments