Skip to content

Making On-Call Better by Highlighting Common Pain Points Engineering Teams Experience.

License

Notifications You must be signed in to change notification settings

phanyzewski/pagerduty-sleep-hour-reporter

Repository files navigation

pagerdy off hour reporter

S Go Reference

On-Call Health Check

PagerDuty Sleep Reporter is a supplemental analytics package that allows you to get a better insight into your on-call team's health. The default behavior of the app is to look at a single month at a time, but generally you can pull a quarter's worth of data from the API before running into validation errors with pagerduty's API.

Requirements

A pager duty api token set in your environment. PAGERDUTY_API_TOKEN generating an api key

Generating a Report

install the app

go install github.com/phanyzewski/pd-off-hour-reporter@latest

set your PAGERDUTY_API_TOKEN in your environment, and run the app for a period of time.

example, to generate a report for the month of January of 2023 for your teams

PAGERDUTY_API_TOKEN=token ./pd-off-hour-reporter -start-year 2023 -start-month 01 -end-month 0 --team-ids UUID1,UUID2

Optional Configuration

additional command-line arguments are as follows, note that all dates assume a numeric representation

$ ./pd-off-hour-reporter --help
Usage of ./pd-off-hour-reporter:
  -end-month string
     ending numeric representation of ending month, eg 03 (default current month)
  -end-year string
     ending numeric representation of year, eg 2023 (default current years)
  -start-month string
     starting numeric representation of month, eg 12 (default last month)
  -start-year string
     starting numeric representation of year, eg 2022 (default current years)
  -team-ids string
     comma separated string of pager duty team ids

About

Making On-Call Better by Highlighting Common Pain Points Engineering Teams Experience.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages