pager-duty-dumper
v1.1.3
Published
Pager Duty Schedule Dumper
Downloads
3
Readme
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 Tokenschedule
,s
- Schedule IDmonth
,m
- Month (1-12), default: previous monthyear
,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"
}