1.1.3 • Published 3 years ago

pager-duty-dumper v1.1.3

Weekly downloads
3
License
ISC
Repository
-
Last release
3 years ago

Pager Duty Schedule Dumper

Small script to dump Pager Duty Schedule to CSV format.

How to install

To install script run command:

npm install -g pager-duty-dumper

Generate Personal Pager Duty API Key.

Usage

To dump Schedule for previous month:

> pdd

Fetching Pager Duty Schedule
Configuration:
- Schedule ID: XXXX
- Month: 2
- Year: 2020
- API Token: -YY...

Schedule:

Sławomir Słowikowski,02/01/2020,00:00,02/03/2020,14:00
Zygmunt Pracowity,02/03/2020,14:00,02/10/2020,14:00

Optional command line parameters:

  • token, t - Pager Duty API Token
  • schedule, s - Schedule ID
  • month, m - Month (1-12), default: previous month
  • year, y - Year, default: current year, or previous year if today is January

Configuration

You can store configuration in the file: ~/.pager-duty-dumper.json

Example content:

{
  "schedule": "yyyy",
  "token": "xxxx"
}