mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Populate the alert rule field with the builder json (#14374)
That way it isn't empty. (which is unexpected)
This commit is contained in:
@@ -188,7 +188,7 @@ class RunAlerts
|
||||
$obj['uid'] = $alert['id'];
|
||||
$obj['alert_id'] = $alert['alert_id'];
|
||||
$obj['severity'] = $alert['severity'];
|
||||
$obj['rule'] = $alert['rule'];
|
||||
$obj['rule'] = $alert['rule'] ?: json_encode($alert['builder']);
|
||||
$obj['name'] = $alert['name'];
|
||||
$obj['timestamp'] = $alert['time_logged'];
|
||||
$obj['contacts'] = $extra['contacts'];
|
||||
|
Reference in New Issue
Block a user