Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 528 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 528 Bytes

Google Apps script to pull data from PagerDuty

Installation

  1. Create Google Sheet
  2. Name one tab "Data"
  3. Go to Tools > Script editor
  4. Pull code from repo
  5. Add file config.gs with the contents below:
  6. Go to Edit > Current project's triggers
  7. Add a trigger that runs main on Time-driven events with Day timer and select a time period to run
var Config = {
  pagerduty: {
    url: 'https://api.pagerduty.com',
    token: 'INSERT API TOKEN',
    paths: {
      incidents: '/incidents'
    }
  }
};