Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
adilbaig committed Jun 2, 2018
1 parent 7168ba5 commit 788fb52
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Features :

- Trigger, acknowledge and resolve incidents.
- Support for [Event contexts](https://v2.developer.pagerduty.com/v2/docs/trigger-events#contexts).
- Works with [V2 of the PD Events API](https://v2.developer.pagerduty.com/v2/docs/#the-events-api).
- Works with [Events API V1](https://v2.developer.pagerduty.com/v2/docs/#the-events-api).
- Unit Tests


Expand Down Expand Up @@ -65,7 +65,6 @@ Automatically send only one PagerDuty incident for repeated errors
(new TriggerEvent($serviceKey, "Service is down", true))->send();
(new TriggerEvent($serviceKey, "Service is down", true))->send();
(new TriggerEvent($serviceKey, "Service is down", true))->send();
(new TriggerEvent($serviceKey, "Service is down", true))->send();

````

Expand All @@ -83,10 +82,10 @@ $event = new TriggerEvent($serviceKey, "FAILURE for production/HTTP on machine s
$event
->setClient("Sample Monitoring Service")
->setClientURL("https://monitoring.service.com")
->setDetails(["ping time": "1500ms", "load avg": 0.75])
->setDetails(["ping time" => "1500ms", "load avg" => 0.75])
->addContext(new LinkContext("http://acme.pagerduty.com"))
->addContext(new LinkContext("http://acme.pagerduty.com", "View the incident on PagerDuty"))
->addContext(new ImageContext("https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1"))
->addContext(new ImageContext("https://chart.googleapis.com/chart?chs=600x400&chd=t:6,2,9,5,2,5,7,4,8,2,1&cht=lc&chds=a&chxt=y&chm=D,0033FF,0,0,5,1"));

// Pass in the '$response' variable by reference if you want to inspect PD's response. This is optional, and you probably don't need this in production.
$response = null;
Expand Down

0 comments on commit 788fb52

Please sign in to comment.