{"id":22086200,"url":"https://github.com/imjaroiswebdev/pdsvcalertgrouping","last_synced_at":"2025-03-23T22:18:25.327Z","repository":{"id":123516038,"uuid":"481272339","full_name":"imjaroiswebdev/pdsvcalertgrouping","owner":"imjaroiswebdev","description":"PagerDuty Go API Test Integration for creating a Service and configure alerts grouping","archived":false,"fork":false,"pushed_at":"2022-04-13T15:30:55.000Z","size":344,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T05:28:22.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imjaroiswebdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-13T15:30:02.000Z","updated_at":"2023-03-08T13:30:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"ac49d619-1686-4eda-89a3-225f1aa28d16","html_url":"https://github.com/imjaroiswebdev/pdsvcalertgrouping","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjaroiswebdev%2Fpdsvcalertgrouping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjaroiswebdev%2Fpdsvcalertgrouping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjaroiswebdev%2Fpdsvcalertgrouping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imjaroiswebdev%2Fpdsvcalertgrouping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imjaroiswebdev","download_url":"https://codeload.github.com/imjaroiswebdev/pdsvcalertgrouping/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175515,"owners_count":20572789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T01:21:53.812Z","updated_at":"2025-03-23T22:18:25.283Z","avatar_url":"https://github.com/imjaroiswebdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PagerDuty Go API Test Integration\n\nThis 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.\n\nSince 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.\n\n\u003e 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.\n\n## Parameters accepted by Enviroments Variables\n\n* `PAGERDUTY_TOKEN`: PagerDuty REST API Key [docs](https://support.pagerduty.com/docs/api-access-keys#generate-a-general-access-rest-api-key).\n* `PD_USER_EMAIL`: Email of PagerDuty registered user whom created REST API Key.\n\n## Comands\n\n```sh\n# RUN\nPAGERDUTY_TOKEN=u+iXibZntHXxshRjoVdU PD_USER_EMAIL=youremail@here.com go run ./...\n\n# TEST\ngo test .\n\n# INSTALL\nPAGERDUTY_TOKEN=u+iXibZntHXxshRjoVdU PD_USER_EMAIL=youremail@here.com go install ./...\n# build binary pdsvcalertgrouping\n```\n\n## Screen Captures\n\n![Service Created](./screen_capture_1.png)\n![Service Alert Grouping Configured](./screen_capture_2.png)\n![Escalation Policy Created](./screen_capture_3.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjaroiswebdev%2Fpdsvcalertgrouping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimjaroiswebdev%2Fpdsvcalertgrouping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimjaroiswebdev%2Fpdsvcalertgrouping/lists"}