1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Add Microsoft Teams webhook support

This commit is contained in:
checktheroads
2020-06-26 12:23:11 -07:00
parent 04ff7568eb
commit 2af58d092c
8 changed files with 136 additions and 38 deletions

View File

@@ -57,10 +57,11 @@ If http logging is enabled, an HTTP POST will be sent to the configured target e
### Supported Providers
| Provider | Parameter Value |
| :-------------------------- | --------------: |
| [Slack](https://slack.com/) | `'slack'` |
| Generic | `'generic'` |
| Provider | Parameter Value |
| :--------------------------------------------------------------------------------------------------- | --------------: |
| Generic | `'generic'` |
| [Microsoft Teams](https://www.microsoft.com/en-us/microsoft-365/microsoft-teams/group-chat-software) | `'msteams'` |
| [Slack](https://slack.com/) | `'slack'` |
### Authentication
@@ -87,10 +88,7 @@ If the `provider` field is set to `'generic'`, the webhook will POST JSON data i
"query_vrf": "default",
"query_target": "1.1.1.0/24",
"headers": {
"content-length": "103",
"accept": "application/json, text/plain, */*",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36",
"content-type": "application/json;charset=UTF-8",
"referer": "http://lg.example.com/",
"accept-encoding": "gzip, deflate, br",
"accept-language": "en-US,en;q=0.9,fr;q=0.8,lb;q=0.7,la;q=0.6"