{"id":17313303,"url":"https://github.com/johntdyer/sensu-webex-handler","last_synced_at":"2025-04-14T14:40:44.217Z","repository":{"id":53725005,"uuid":"163877332","full_name":"johntdyer/sensu-webex-handler","owner":"johntdyer","description":"Webex teams handler for Sensu Go","archived":false,"fork":false,"pushed_at":"2021-03-17T19:56:59.000Z","size":6224,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T06:19:48.961Z","etag":null,"topics":["sensu","sensu-go","sensu-handler","webex","webex-teams"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/johntdyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-02T18:47:04.000Z","updated_at":"2021-03-17T19:57:02.000Z","dependencies_parsed_at":"2022-09-10T12:10:41.862Z","dependency_job_id":null,"html_url":"https://github.com/johntdyer/sensu-webex-handler","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johntdyer%2Fsensu-webex-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johntdyer%2Fsensu-webex-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johntdyer%2Fsensu-webex-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johntdyer%2Fsensu-webex-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johntdyer","download_url":"https://codeload.github.com/johntdyer/sensu-webex-handler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898405,"owners_count":21179771,"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":["sensu","sensu-go","sensu-handler","webex","webex-teams"],"created_at":"2024-10-15T12:46:28.069Z","updated_at":"2025-04-14T14:40:44.196Z","avatar_url":"https://github.com/johntdyer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sensu Go webex Handler\n\n[![Bonsai Asset Badge](https://img.shields.io/badge/Sensu%20Go%20Webex%20Teams%20Handler-Download%20Me-brightgreen.svg?colorB=89C967\u0026logo=sensu)](https://bonsai.sensu.io/assets/johntdyer/sensu-webex-handler)\n![Build Status](https://travis-ci.com/johntdyer/sensu-webex-handler.svg?branch=master)\n![Go Report Card](https://goreportcard.com/badge/github.com/johntdyer/sensu-webex-handler)\n![GitHub issues](https://img.shields.io/github/issues/johntdyer/sensu-webex-handler)\n![GitHub forks](https://img.shields.io/github/forks/johntdyer/sensu-webex-handler)\n![GitHub stars](https://img.shields.io/github/stars/johntdyer/sensu-webex-handler)\n![GitHub license](https://img.shields.io/github/license/johntdyer/sensu-webex-handler)\n[![codecov](https://codecov.io/gh/johntdyer/sensu-webex-handler/branch/master/graph/badge.svg)](https://codecov.io/gh/johntdyer/sensu-webex-handler)\n\nThe Sensu webex handler is a [Sensu Event Handler][1] that sends event data to\na configured webex channel.   This plugin was mostly copied from the [Sensu slack handler][2] and repurposed for [Webex Teams][4].\n\n![screenshot](images/cards-example.png?raw=true \"Example\")\n\n## Installation\n\nDownload the latest version of the sensu-webex-handler from [releases][2],\nor create an executable script from this source.\n\nFrom the local path of the webex-handler repository:\n\n```go\ngo build -o /usr/local/bin/sensu-webex-handler main.go template.go\n```\n\n## Configuration\n\nExample Sensu Go handler definition:\n\nwebex-handler.json\n\n```json\n{\n    \"api_version\": \"core/v2\",\n    \"type\": \"Handler\",\n    \"metadata\": {\n        \"namespace\": \"default\",\n        \"name\": \"webex\"\n    },\n    \"spec\": {\n        \"type\": \"pipe\",\n        \"command\": \"sensu-webex-handler --api-key abc123 --room-id 'ABCDEFGHIJKLMNOP123' \\\\\",\n        \"timeout\": 30,\n        \"filters\": [\n            \"is_incident\"\n        ]\n    }\n}\n```\n\n`sensuctl create -f webex-handler.json`\n\nExample Sensu Go check definition:\n\n```json\n{\n    \"api_version\": \"core/v2\",\n    \"type\": \"CheckConfig\",\n    \"metadata\": {\n        \"namespace\": \"default\",\n        \"name\": \"dummy-app-healthz\"\n    },\n    \"spec\": {\n        \"command\": \"check-http -u http://localhost:8080/healthz\",\n        \"subscriptions\":[\n            \"dummy\"\n        ],\n        \"publish\": true,\n        \"interval\": 10,\n        \"handlers\": [\n            \"webex\"\n        ]\n    }\n}\n```\n\n## Usage examples\n\nHelp:\n\n```shell\nThe Sensu Go Webex Teams handler for event forwarding\n\nUsage:\n  sensu-webex-teams-handler [flags]\n\nFlags:\n  -k, --api-key string   API key for authenticated access\n  -a, --api-url string   Webex Teams API (default \"api.ciscospark.com\")\n  -h, --help             help for sensu-webex-teams-handler\n  -r, --room-id string   Room or email to send alert to\n\n```\n\n[1]: https://docs.sensu.io/sensu-go/5.0/reference/handlers/#how-do-sensu-handlers-work\n[2]: https://github.com/johntdyer/sensu-webex-handler/releases\n[3]: https://github.com/sensu/sensu-slack-handler\n[4]: https://developer.webex.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohntdyer%2Fsensu-webex-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohntdyer%2Fsensu-webex-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohntdyer%2Fsensu-webex-handler/lists"}