Skip to main content

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

argus_notification_msteams-0.6.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file argus_notification_msteams-0.6.0.tar.gz.

File metadata

File hashes

Hashes for argus_notification_msteams-0.6.0.tar.gz
Algorithm Hash digest
SHA256 97e9e53ac82769eaf321464ec38c8d81737ce8ed9a293406035b62097b382a80
MD5 a48242aaf54c05b05cf66bfb9a9cec5d
BLAKE2b-256 18afb36a94125dff82d55c2d4ac94386e52f8eece92141a116e6f42e7652e050

See more details on using hashes here.

File details

Details for the file argus_notification_msteams-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for argus_notification_msteams-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4de798704dd5fbf6aa0ffa2a17000de87fd7b3e067151b2f498223c5e8d05025
MD5 047dc3a4849a5bc610b512dd5035e1d9
BLAKE2b-256 30c84ee209780ff006c2a7d00f11bb5bc109010832c8ca3a99db10d1eea21871

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page