Download the PHP package laravel-notification-channels/pagerduty without Composer
On this page you can find all versions of the php package laravel-notification-channels/pagerduty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/pagerduty
More information about laravel-notification-channels/pagerduty
Files in laravel-notification-channels/pagerduty
Package pagerduty
Short Description A Laravel notification channel for sending PagerDuty events.
License MIT
Homepage https://github.com/laravel-notification-channels/pagerduty
Informations about the package pagerduty
PagerDuty Event notifications channel for Laravel
This package makes it easy to send notification events to PagerDuty with Laravel 5.5+, 6.x and 7.x
Contents
- Installation
- Setting up the PagerDuty service
- Usage
- PagerDuty Setup
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Usage
Now you can use the channel in your via()
method inside the Notification class.
In order to let your Notification know which Integration should receive the event, add the routeNotificationForPagerDuty
method to your Notifiable model.
This method needs to return the Integration Key for the service and integration to which you want to send the event.
PagerDuty Setup
On a PagerDuty Service of your choice, create a new Integration using the Events API v2
.
The Integration Key
listed for your new integration is what you need to set in the routeNotificationForPagerDuty()
method.
Available Message methods
resolve()
: Sets the event type toresolve
to resolve issues.setDedupKey('')
: Sets thededup_key
(required when resolving).setSummary('')
: Sets a summary message on the event.setSource('')
: Sets the event source; defaults to thehostname
.setSeverity('')
: Sets the event severity; defaults tocritical
.setTimestamp('')
: Sets thetimestamp
of the event.setComponent('')
: Sets thecomponent
of the event.setGroup('')
: Sets thegroup
of the event.setClass('')
: Sets theclass
.addCustomDetail('', '')
: Adds a key/value pair to thecustom_detail
of the event.
See the PagerDuty v2 Events API documentation for more information about what these options will do.
Usage
When using Notification::route
be sure to reference 'PagerDuty' as the Channel.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Luke Waite
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of pagerduty with dependencies
guzzlehttp/guzzle Version ~6.0|^7.0
illuminate/notifications Version ~5.5 || ~6.0 || ~7.0 || ^8.0
illuminate/support Version ~5.5 || ~6.0 || ~7.0 || ^8.0