https://github.com/imjaroiswebdev/pdsvcalertgrouping
PagerDuty Go API Test Integration for creating a Service and configure alerts grouping
https://github.com/imjaroiswebdev/pdsvcalertgrouping
Last synced: about 1 year ago
JSON representation
PagerDuty Go API Test Integration for creating a Service and configure alerts grouping
- Host: GitHub
- URL: https://github.com/imjaroiswebdev/pdsvcalertgrouping
- Owner: imjaroiswebdev
- Created: 2022-04-13T15:30:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-13T15:30:55.000Z (about 4 years ago)
- Last Synced: 2025-01-29T05:28:22.396Z (over 1 year ago)
- Language: Go
- Size: 336 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PagerDuty Go API Test Integration
This is a simple integration of [PagerDuty Go API](https://github.com/heimweh/go-pagerduty) for creating a Service and then updating it to have alerts grouping with the *Intelligent* noise reduction mode.
Since is an integration just for testing it isn't very open to external parameters appart from the PagerDuty API Key and the User's email which will be notified of the alerts and incidents.
> The first time the program runs will create a Service with intelligent alert grouping and an Escalation Policy, but subsequents runs will only reuse the already created resources and return success after repeating the config for alert grouping.
## Parameters accepted by Enviroments Variables
* `PAGERDUTY_TOKEN`: PagerDuty REST API Key [docs](https://support.pagerduty.com/docs/api-access-keys#generate-a-general-access-rest-api-key).
* `PD_USER_EMAIL`: Email of PagerDuty registered user whom created REST API Key.
## Comands
```sh
# RUN
PAGERDUTY_TOKEN=u+iXibZntHXxshRjoVdU PD_USER_EMAIL=youremail@here.com go run ./...
# TEST
go test .
# INSTALL
PAGERDUTY_TOKEN=u+iXibZntHXxshRjoVdU PD_USER_EMAIL=youremail@here.com go install ./...
# build binary pdsvcalertgrouping
```
## Screen Captures


