LoginSignup
8
0

More than 1 year has passed since last update.

PagerDuty CLIでscheduleをoverrideする方法

Last updated at Posted at 2022-12-12

を用いてPagerDutyのスケジュールを上書きするやり方の紹介

1. インストールする(初回のみ)

sh -c "$(curl -sL https://raw.githubusercontent.com/martindstone/pagerduty-cli/master/install.sh)"

2. ログインする(適宜)

pd login

ブラウザが起動してログインできる。SSOも可能。

3. overrideする

pd schedule override add \
  --user_email='your.name@example.com' \
  --name='your-schedule-name' \
  --start='2022-11-23T10:00+09:00' \
  --end='2022-11-23T22:00+09:00'

4. 確認

pd schedule override list --name='your-schedule-name'
Getting overrides for schedule XXXXXXX 1/1 👍, 0/1 👎... done
ID             Start               End                 User ID User name       
────────────── ─────────────────── ─────────────────── ─────── ─────────────── 
xxxxxxxxxxxxxx 2022/11/23 10:00:00 2022/11/23 22:00:00 XXXXXXX Your Name
xxxxxxxxxxxxxx 2022/12/01 10:00:00 2022/12/01 22:00:00 XXXXXXX Your Name

おわりに

8
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
0