A command line tool to put services in and out of maintenance mode in PagerDuty.
Node version: >= 8.
To ensure you enter your timezone in the correct format please refer to this list of timezones here.
yarn global add pd-snooze
npm install -g pd-snooze
pd-snooze set-config --apikey YOUR_APIKEY --email YOUR_EMAIL --timezone YOUR_TIMEZONE
set-config [options] Create the config required to interact with the PagerDuty API.
update-config [options] Update single or multiple values in the config.
list [options] Output all services or open maintenance windows.
start [options] Put all services or a particular service into maintenance mode.
end [options] End all maintenance windows or a maintenance window containing a particular service.
-d <min> Sets the duration of the maintenance window in minutes, default is 30.
pd-snooze -v || --version
pd-snooze -h || --help
pd-snooze set-config --apikey example-api-key --email [email protected] --timezone Europe/London
pd-snooze current-config
pd-snooze update-config --apikey <NEW_APIKEY>
pd-snooze list -s || --services
pd-snooze list -m || --maintenance
pd-snooze start -a || --all [-d || --duration <MIN>]
pd-snooze start -s || --service <SERVICE_NAME> [-d || --duration <MIN>]
pd-snooze end -a || --all
pd-snooze end -s || --service <SERVICE_NAME>