Skip to content

Commit

Permalink
JSON syntax issu in Mattermost example updated, and MS Teams example …
Browse files Browse the repository at this point in the history
…added. (#412)

Co-authored-by: richard.sims <[email protected]>
  • Loading branch information
arpanet-creeper and richard.sims authored Dec 1, 2020
1 parent 5c8cf60 commit 1544541
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion docs/report-http.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ reports:
{"title": "Expected from:", "value": "AS ${asn}", "short": "true"},
{"title": "Seen from:", "value": "AS ${neworigin}", "short": "true"},
{"title": "Since:", "value": "${earliest}", "short": "true"},
{"title": "Event description":, "value": "${summary}"} ],
{"title": "Event description", "value": "${summary}"} ],
"text": "#bgpalerter #${type}", "color": "#ffffff"}]}'
isTemplateJSON: true
headers:
Expand Down Expand Up @@ -85,3 +85,50 @@ Pushover is an app that makes it easy to get real-time notifications on your And
```

Thanks to [Hugo Salgado](https://twitter.com/huguei/status/1278771420525408258).

## MS Teams

Microsoft Teams is a proprietary business communication platform developed by Microsoft, as part of the Microsoft 365 family of products

```yaml
reports:
- file: reportHTTP
channels:
- hijack
- newprefix
- visibility
- path
- misconfiguration
- rpki
params:
templates:
default: '{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "d76100",
"summary": "BGPAlerter has detected an issue",
"sections": [{
"activityTitle": "${summary}",
"activitySubtitle": "BGPAlerter has detected an issue",
"facts": [{
"name": "Prefix",
"value": "${prefix}"
}, {
"name": "Expected from",
"value": "AS ${asn}"
}, {
"name": "Seen from",
"value": "AS ${neworigin}"
}, {
"name": "Since:",
"value": "${earliest}"
}],
"markdown": true
}]
}'
isTemplateJSON: true
headers:
showPaths: 0 # Amount of AS_PATHs to report in the alert
hooks:
default: https: WEBHOOK_URL
```

0 comments on commit 1544541

Please sign in to comment.