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 to MEDIA_PLUGINS:
MEDIA_PLUGINS = [ "argus_notification_msteams", ]
The plugin uses the setting NOTIFICATION_SUBJECT_PREFIX.
Configuration
Create a webhook inside MS Teams, which results in an url that is 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/:
{ "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}/:
{ "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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for argus_notification_msteams-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011c3c0100939792172dc73dd0708889116907e1da03b304bdc13ab175aec13d |
|
MD5 | e3e0bfe64f41c7099157ab4af0d15e60 |
|
BLAKE2b-256 | ac7184b6db79592cd5b4ae5be805c72e26344cc050d7268a3b429eac929f3b41 |