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.
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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 969342a4d168d16db3a87b2e53ad2db2382c6cb89b00e9d73dddf0a5be82c776 |
|
MD5 | b81d2a73203736d90868d60363001e86 |
|
BLAKE2b-256 | 24d949d677e549529148b880d86e99314fbb9c4e4e9c21869749593a83c5af47 |
Hashes for argus_notification_msteams-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5768f1e0207ebe413ff3f47095a2a32f87420f68d7661d7e91dbe27ae5cb5a53 |
|
MD5 | 45deb611111f5f82be79f47667e4c45c |
|
BLAKE2b-256 | 0ebc8c5d7a954082d865e2f58c18a3d6d4bc8190fc32458761e372ed1647e285 |