dutyme

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2016 License: MIT Imports: 5 Imported by: 0

README

dutyme Build Status MIT License

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

  1. Fork (https://github.com/tcnksm/dutyme/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

Taichi Nakashima

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL