{"id":15468480,"url":"https://github.com/winebarrel/pd_event_v2","last_synced_at":"2025-03-28T12:23:49.633Z","repository":{"id":56887668,"uuid":"224801285","full_name":"winebarrel/pd_event_v2","owner":"winebarrel","description":"PagerDuty Events API v2 Ruby Client.","archived":false,"fork":false,"pushed_at":"2020-03-01T03:44:08.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T00:15:54.050Z","etag":null,"topics":["pagerduty","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winebarrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-29T07:35:54.000Z","updated_at":"2020-03-01T03:43:46.000Z","dependencies_parsed_at":"2022-08-20T15:20:53.595Z","dependency_job_id":null,"html_url":"https://github.com/winebarrel/pd_event_v2","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpd_event_v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpd_event_v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpd_event_v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fpd_event_v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/pd_event_v2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246027305,"owners_count":20711804,"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":["pagerduty","ruby"],"created_at":"2024-10-02T01:41:18.908Z","updated_at":"2025-03-28T12:23:49.605Z","avatar_url":"https://github.com/winebarrel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PdEventV2\n\n[PagerDuty Events API v2](https://v2.developer.pagerduty.com/docs/events-api-v2) Ruby Client.\n\n[![Gem Version](https://badge.fury.io/rb/pd_event_v2.svg)](http://badge.fury.io/rb/pd_event_v2)\n[![Build Status](https://travis-ci.org/winebarrel/pd_event_v2.svg?branch=master)](https://travis-ci.org/winebarrel/pd_event_v2)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pd_event_v2'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install pd_event_v2\n\n## Usage\n\n```ruby\nrequire 'pd_event_v2'\n\n# routing_key: Integration Key\nclient = PdEventV2::Client.new(routing_key: 'ZAPZAPZAP')\n\n# see https://v2.developer.pagerduty.com/v2/docs/send-an-event-events-api-v2\nres = client.trigger(\n  payload: {\n    summary: 'Example alert on host1.example.com',\n    source: 'monitoringtool:cloudvendor:central-region-dc-01:852559987:cluster/api-stats-prod-003',\n    severity: 'info'\n  }\n)\n\np res #=\u003e {\n      #     'status' =\u003e 'success',\n      #     'message' =\u003e 'Event processed',\n      #     'dedup_key' =\u003e '3c053fc438cc4608b8382b28adc0af8d'\n      #   }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fpd_event_v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fpd_event_v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fpd_event_v2/lists"}