pagerduty incident create powershell script . This will create incident to a specific service
This is a simple power shell script which is checking the token file is valid or not . Token file valid means In my case my file has not to be more then 24hrs od or empty . This script will take Following arguments in sequence
- Token (API Token)
- From (Email associated with your PagerDuty account and organization)
- Path (Path of file)
- Service_Id (Service ID you can get from your serivce URL)
Run the script by passing the above mentioned arguments