Skip to content

Commit

Permalink
Issue #181: Add incident_key to PagerDuty target
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiz committed Apr 25, 2018
1 parent d754867 commit 03051ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phplib/Target/PagerDuty.php
Expand Up @@ -46,6 +46,7 @@ public function process(Alert $alert, $date) {

$event_data = [
'service_key' => $this->obj['data']['service_key'],
'incident_key' => sprintf("%d-%d", $site['id'], $alert['search_id']),
'event_type' => 'trigger',
'client' => '411',
'description' => sprintf('[%s] %s', $site['name'], $search['name']),
Expand Down

0 comments on commit 03051ef

Please sign in to comment.