PagerDuty report that is used to fetch current acknowledged, triggered and high severity alerts and display them into a readable HTML table. This report can be either be emailed or used as a standalone HTML file.
You will need to have PowerShell installed on your machine.
Windows - Installed by default although there might be some policy restriction settings that prevent you from running scripts. You may need to run the following in an Admin PowerShell console:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
MacOS - You will to install the Homebrew package manger by running the following in your Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Then install PowerShell by running the following in your Terminal:
brew cask install powershell
You will need to include in your own API as well as specific Team ID:
# API Token
$apiKey = "API KEY"
# URI for Triggered PD alerts for a specifc Team
$URI_triggered = "https://api.pagerduty.com/incidents?statuses[]=triggered&team_ids[]=TEAM_ID"
# URI for Acknowledged PD alerts for a specifc Team
$URI_ack = "https://api.pagerduty.com/incidents?statuses[]=acknowledged&team_ids[]=TEAM_ID"
- Fork the master branch
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request!
Ayush Lal
[email protected]
Portfolio website
GitHub
// If you have any queries please feel free to get in touch.