Skip to content

How to determine who is on-call using Ruby and the PagerDuty API

Notifications You must be signed in to change notification settings

lfepp/pagerduty_oncall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Our team utilizes an IRC bot to execute a variety of functions but I found that it lacked a function to ask the PagerDuty API which engineer is on-call right now. I set out to figure out a way to answer this question.

Libraries

I'm no Ruby expert so when I asked three different developers for their library recommendations I was given three different answers.

Usage

  • First argument: Your v2 REST API key (I recommend generating a read-only API key)
  • Second argument: The ID of the appropriate service

Sample Output

On-Call Engineer: John Smith. Email(s): john.smith@yourcompany.com, john.smith@gmail.com. Phone Number(s): 1112223333.

More Information

About

How to determine who is on-call using Ruby and the PagerDuty API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Ruby 100.0%