Fix PagerDuty transport's group field (#13235)

* Do not poll passive interfaces

* Bug

* Update payload
This commit is contained in:
ottorei
2021-09-13 21:14:11 +02:00
committed by GitHub
parent 1452ad9889
commit b2d34cac4a
+1 -1
View File
@@ -61,7 +61,7 @@ class Pagerduty extends Transport
'dedup_key' => (string) $obj['alert_id'],
'payload' => [
'custom_details' => strip_tags($obj['msg']) ?: 'Test',
'device_groups' => \DeviceCache::get($obj['device_id'])->groups->pluck('name'),
'group' => (string) \DeviceCache::get($obj['device_id'])->groups->pluck('name'),
'source' => $obj['hostname'],
'severity' => $obj['severity'],
'summary' => ($obj['name'] ? $obj['name'] . ' on ' . $obj['hostname'] : $obj['title']),