Skip to content

Stable Release

Latest
Compare
Choose a tag to compare
@adilbaig adilbaig released this 04 Aug 16:50
· 1 commit to master since this release

This release fixes the images and links specifications to comply with PagerDuty API V2 Event Structure. In V1, a 'contexts' object was used to add links and images. This was replaced in v2, with top-level properties for both. Since this is compliant with V2, I'm not incrementing to a major version.

BREAKING CHANGE: Note that if you were using the ImageContext or LinkContext class prior to this release, those are no longer available. Use the addLink() and addImage() methods of the TriggerEvent class directly. For example:

# Old Code
$image = new ImageContext("https://www.pagerduty.com/wp-content/uploads/2016/05/pagerduty-logo-green.png", "https://example.com/", "Example text");
$event->addContext($image);
# New code
$event->addImage("https://www.pagerduty.com/wp-content/uploads/2016/05/pagerduty-logo-green.png", "https://example.com/", "Example text");

Refer to the README for examples of both methods. Thanks to @mattdudys for contributing to this release.