2017 © Pedro Peláez
 

library pagerdutywhosoncall

Pagerduty class for checking who is oncall including override schedules

image

itjamie/pagerdutywhosoncall

Pagerduty class for checking who is oncall including override schedules

  • Saturday, March 26, 2016
  • by jamiemurphyit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

PHP PagerDuty WhosOnCall

(c) 2016 Jamie Murphy jamiemurphyit@gmail.com, (*1)

Installation

``` sh $ composer require itjamie/pagerdutywhosoncall, (*2)


Basic Usage ----------- ```php require 'vendor/autoload.php'; // if using php composer date_default_timezone_set('UTC'); // set the timezone of your php env to be the same you pass to pagerduty $pagerdutyapi = new PagerDutyWhosOncall(array( 'baseurl' => 'https://instancename.pagerduty.com/api/v1/', 'apikey' => 'placeholderforyourapi', 'debug' => false, 'timezone' => 'UTC' // This is the timezone that will be passed to pagerduty. https://developer.pagerduty.com/documentation/rest/types#timezone ) ); $scheduleid = "abc123"; echo ' Oncall Now :'.PHP_EOL; $result = $pagerdutyapi->whoIsOnCall( $scheduleid ); var_dump($result); echo ' Oncall in one hour :'.PHP_EOL; $time = time()+60*60; $result = $pagerdutyapi->whoIsOnCall( $scheduleid, $time ); var_dump($result);

Credits

Thanks to ozzd/PagerdutyPHP for some of the original code., (*3)

The Versions

26/03 2016

dev-master

9999999-dev

Pagerduty class for checking who is oncall including override schedules

  Sources   Download

GNU

by Jamie Murphy

pagerduty

26/03 2016

0.6

0.6.0.0

Pagerduty class for checking who is oncall including override schedules

  Sources   Download

GNU

by Jamie Murphy

pagerduty

26/03 2016

0.5

0.5.0.0

Pagerduty class for checking who is oncall including override schedules

  Sources   Download

GNU

by Jamie Murphy

pagerduty

26/03 2016

0.4

0.4.0.0

Pagerduty class for checking who is oncall including override schedules

  Sources   Download

GNU

by Jamie Murphy

pagerduty

26/03 2016

0.3

0.3.0.0

Pagerduty class for checking who is oncall including override schedules

  Sources   Download

GNU

by Jamie Murphy

pagerduty

26/03 2016

0.2

0.2.0.0

Pagerduty class for checking who is oncall including override schedules

  Sources   Download

GNU

by Jamie Murphy

pagerduty