Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uninett/argus_notification_msteams
Notification plugin for msteams for argus server
https://github.com/uninett/argus_notification_msteams
Last synced: about 1 month ago
JSON representation
Notification plugin for msteams for argus server
- Host: GitHub
- URL: https://github.com/uninett/argus_notification_msteams
- Owner: Uninett
- Created: 2022-04-21T13:00:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T09:38:35.000Z (11 months ago)
- Last Synced: 2024-03-15T10:11:52.574Z (10 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
argus_notification_msteams
==========================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"
}
}