pagerduty-automation

command module
v0.0.0-...-4e051a0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 6 Imported by: 0

README

PagerDuty Automation

This is an apps that used for lazy person. It help you to automate some features in PagerDuty. To use this apps make sure you have PagerDuty api token and set it to your os environment.

Command :

export PagerDutyToken=FillThisWithYourAPIToken
Get All Users
clear ; go run main.go -command=get_users
Get Miss Users (User Is Not Verified)
clear ; go run main.go -command=get_users
Create New User
clear ; go run main.go -command=create_user -name="Iron Man" -email="iron.man@email.com" -role=admin -job="Software Engineer"

For PagerDuty Roles you can follow this documentation.

Set User Notification Rule
clear ; go run main.go -command=set_rules -email="iron.man@email.com"

I set some default rules, but you can customize it.

Finally

Special thanks for : - PagerDuty - PagerDuty Lib

API References : https://api-reference.pagerduty.com/

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