https://github.com/sensu-plugins/sensu-plugins-microsoft-teams
Sensu plugins for Microsoft Teams
https://github.com/sensu-plugins/sensu-plugins-microsoft-teams
sensu-handler sensu-plugins
Last synced: 7 months ago
JSON representation
Sensu plugins for Microsoft Teams
- Host: GitHub
- URL: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams
- Owner: sensu-plugins
- License: mit
- Created: 2017-09-04T13:24:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T15:04:55.000Z (about 4 years ago)
- Last Synced: 2024-04-25T15:01:48.684Z (about 1 year ago)
- Topics: sensu-handler, sensu-plugins
- Language: Ruby
- Homepage: http://sensu-plugins.io
- Size: 98.6 KB
- Stars: 2
- Watchers: 7
- Forks: 6
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Sensu-Plugins-Microsoft-Teams
[](https://travis-ci.org/sensu-plugins/sensu-plugins-microsoft-teams)
[](https://badge.fury.io/rb/sensu-plugins-microsoft-teams)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-microsoft-teams)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-microsoft-teams)
[](https://gemnasium.com/sensu-plugins/sensu-plugins-microsoft-teams)## Screenshot
## Functionality
## Files
* bin/handler-microsoft-teams.rb## Usage for handler-microsoft-teams.rb
```
{
"microsoft-teams": {
"webhook_url": "webhook url",
"dashboard": "uchiwa url, add link to teams notification. Format: http://sensu.com/#/client/$DataCenter/, optional",
"channel": "#notifications-room, optional defaults to webhook defined",
"message_prefix": "optional prefix - can be used for mentions",
"surround": "optional - can be used for bold(*), italics(_), code(`) and preformatted(```)",
"bot_name": "optional bot name, defaults to webhook defined",
"link_names": "optional - find and link channel names and usernames",
"message_template": "optional description erb template file - /some/path/to/template.erb",
"payload_template": "optional json payload template file (note: overrides most other template options.)",
"template": "backwards-compatible alias for message_template",
"proxy_address": "The HTTP proxy address (example: proxy.example.com)",
"proxy_port": "The HTTP proxy port (if there is a proxy)",
"proxy_username": "The HTTP proxy username (if there is a proxy)",
"proxy_password": "The HTTP proxy user password (if there is a proxy)",
"icon_url": "https://raw.githubusercontent.com/sensu/sensu-logo/master/sensu1_flat%20white%20bg_png.png",
"icon_emoji": ":snowman:",
"action_type": "The type of action - currently only OpenUri is supported",
"action_name": "The text that will be displayed on screen for the action"
}
}
```
## Usage for microsoft-teams.json
```
{
"microsoft-teams": {
"webhook_url": "https://outlook.office.com/webhook/AAAAAAA/IncomingWebhook/BBBBBBBB",
"dashboard": "https://sensu.domain.tld/#/client/Sensu/",
"action_type": "openuri",
"action_name": "View in Sensu"
}
}
```
## Installation[Installation and Setup](https://docs.sensu.io/plugins/latest/installation/)
To install the plugin, run `sensu-install -p microsoft-teams`.
## Notes
[Actionable message card reference](https://docs.microsoft.com/en-us/outlook/actionable-messages/card-reference)