Allow argus-server to send notifications to MS Teams
Project description
ALPHA-VERSION!
This is a plugin to send notifications to MSTeams from Argus
Different levels of incidents have hard-coded colors.
Version 0.5.1 and older can be used by argus-server version 1.9.x to 1.13.x.
Django settings
Add argus_notification_msteams.MSTeamsNotification to MEDIA_PLUGINS:
MEDIA_PLUGINS = [ .. "argus_notification_msteams.MSTeamsNotification", ]
The plugin uses the setting NOTIFICATION_SUBJECT_PREFIX.
Configuration
Create a webhook inside MS Teams, which results in a long url that needs to be stored in the settings-field.
You can test without invoking the frontend by adding the webhook manually in Django admin.
POST-ing to the API:
/api/v2/notificationprofiles/destinations/, POSTed body:
{ "media": "msteams", "label": "whatever", "settings": { "webhook": "https://msteams.domain/some-very-long-webhook-specific-path" } }
GET-ing from the API:
/api/v2/notificationprofiles/destinations/{id}/, received result:
{ "pk": 0, "media": { "slug": "msteams", "name": "MS Teams" }, "label": "whatever", "suggested_label": "whatever", "settings": { "webhook": "https://msteams.domain/some-very-long-webhook-specific-path" } }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for argus_notification_msteams-0.5.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39dac7b9a5b8717a3bc2150a34dea49419f2e6bd384b232692d3190ec2c134cf |
|
MD5 | 1abd3c09312a1ae861e07f7137a7b3c8 |
|
BLAKE2b-256 | 4b487f795dd8978d4b2b8207cb7807f85f767517b50e8d1d07dd56101bf9851b |
Hashes for argus_notification_msteams-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 856808283340dca6ac538d920aceb29917a454e80a8b61d7a2a43786320b64f1 |
|
MD5 | 1b86563fae1108f3f3405436b270f78c |
|
BLAKE2b-256 | 3512ec031b3f450fcd4741ce82dbd1771284d40e988be9436b44ae7efaf8d58b |