dutyme
You should receive alerts while operation on production. Take responsibility for it.
dutyme
assigns PagerDuty on-call to yourself temporarily while operation. It creates override layer on the existing schedule. NOTE: dutyme
is still under development. command interface maybe updated in future.
Requirement
To use dutyme command, you need a PagerDuty API v2 token.
The token must have full access to read, write, update, and delete. Only account administrators have the ability to generate token (See more about token on official doc https://goo.gl/VPvlwB).
Usage
To assign, use start
command,
$ dutyme start
It asks all necessary infomation to override (your PagerDuty email address or schedule name) and creates a override layer. You can create multiple overrides on the same term (the latest one has priority). After executing, all infomation will be saved on disk so you can skip input from next time.
By default, it overrides 1 hour. You can change it via -working
flag,
$ dutyme start -working 30m
Install
To install, use go get
:
$ go get github.com/tcnksm/dutyme
Contribution
- Fork (https://github.com/tcnksm/dutyme/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes
- Run
gofmt -s
- Create a new Pull Request
Author
Taichi Nakashima