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/