pager-duty-dumper

1.1.3 • Public • Published

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"
}

Readme

Keywords

none

Package Sidebar

Install

npm i pager-duty-dumper

Weekly Downloads

0

Version

1.1.3

License

ISC

Unpacked Size

4.7 kB

Total Files

4

Last publish

Collaborators

  • wojtekk