{"id":22835462,"url":"https://github.com/dxw/opsgenie-tools","last_synced_at":"2026-02-18T04:36:28.847Z","repository":{"id":177566457,"uuid":"659343945","full_name":"dxw/opsgenie-tools","owner":"dxw","description":"tools used to get data from Opsgenie","archived":false,"fork":false,"pushed_at":"2025-04-10T18:27:24.000Z","size":45,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-05-06T20:52:59.389Z","etag":null,"topics":["tech-ops"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/dxw.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,"zenodo":null}},"created_at":"2023-06-27T16:17:55.000Z","updated_at":"2025-03-03T12:00:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"307d4b4b-2e63-4c05-95be-6e3b3d645249","html_url":"https://github.com/dxw/opsgenie-tools","commit_stats":null,"previous_names":["dxw/opsgenie-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dxw/opsgenie-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fopsgenie-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fopsgenie-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fopsgenie-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fopsgenie-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxw","download_url":"https://codeload.github.com/dxw/opsgenie-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxw%2Fopsgenie-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29568743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T04:18:28.490Z","status":"ssl_error","status_checked_at":"2026-02-18T04:13:49.018Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["tech-ops"],"created_at":"2024-12-12T22:10:02.740Z","updated_at":"2026-02-18T04:36:23.838Z","avatar_url":"https://github.com/dxw.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpsGenie Tools\n\nA collection of scripts to help with getting data from OpsGenie.\n\n## Tools\n\n### oncall-hours.rb\n\nA script to output the number of hours that people have done on call for in\nperiod we use for paying for our rota.\n\nusage: `PAYMENT_RATE=10.00 OPSGENIE_API_KEY=yourkeyhere OPSGENIE_SCHEDULE_ID=youridhere OPSGENIE_ROTATION_ID=youridhere,youroptionalsecondidhere bundle exec oncall-hours.rb`\n\nYou can also set OPSGENIE_DATE to a date in the month you want to calculate for, otherwise it will use the current date.\nThese can all be set in a `.env` file in the same directory as the script as well\n\n### oncall.rb\n\nA script to output who is on call for the next 4 weeks.\n\n### calcualte-toil.rb\n\nA script to calculate the TOIL owed to people due to OOH alerts they have\nacknowledged. This gives a rough estimate of the TOIL owed so that the Line\nmanager can be told how much the person should have claimed for their week.\nThis currently underestimates for the first line person if the alert was escalated.\n\n### next-oncall.rb\n\nA script to work out when a given user is next on call for given schedule and\nrotation. These are set as environment variables the same as for\noncall-hours.rb. It will output the date the user is next on call.\n\n### schedules.rb\n\nA script to output the schedules that are available in OpsGenie. This is useful\nfor finding the ID of a schedule to use in the other scripts. It can also output\nthe rotations and their ID for a given schedule.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxw%2Fopsgenie-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxw%2Fopsgenie-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxw%2Fopsgenie-tools/lists"}