mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
pagerduty transport uses template message (#11459)
This commit is contained in:
@@ -59,7 +59,7 @@ class Pagerduty extends Transport
|
||||
'event_action' => $obj['event_type'],
|
||||
'dedup_key' => (string)$obj['alert_id'],
|
||||
'payload' => [
|
||||
'custom_details' => substr(implode(PHP_EOL, array_column($obj['faults'], 'string')), 0, 1020) . '....' ?: 'Test',
|
||||
'custom_details' => strip_tags($obj['msg']) ?: 'Test',
|
||||
'source' => $obj['hostname'],
|
||||
'severity' => $obj['severity'],
|
||||
'summary' => ($obj['name'] ? $obj['name'] . ' on ' . $obj['hostname'] : $obj['title']),
|
||||
|
Reference in New Issue
Block a user