Slack Alert is an alerting module sending notifications to Slack channels when triggered.
1.5K
| name | Slack Alert |
| GitHub | weeve-modules/slack-alert |
| authors | Jakub Grzelak, Paul Gaiduk |
Slack Alert is an alerting module responsible for sending notifications to Slack channels when triggered. This module is containerized using Docker.
| Type | Text |
|---|---|
| warning | WARNING for MachineName! Temperature reading shows 41.19 Celsius. |
| alarming | ALARM from MachineName! Detected an alarming reading of Temperature: 100 Celsius. |
| caution | CAUTION for MachineName! Temperature is 100 Celsius. |
| broken | BROKEN device MachineName! Detected Temperature reading is -1.1 Celsius. |
The following module configurations can be provided in a data service designer section on weeve platform:
| Environment Variables | type | Description |
|---|---|---|
| INPUT_LABEL | string | The field to apply alert on, i.e: "temperature" |
| INPUT_UNIT | string | I.e: "Celsius" |
| ALERT_SEVERITY | string | Alert type: warning, alarming, caution, broken |
| ALERT_MESSAGE | string | Use string interpolation format to get required field in the alert message -> {{label}}, {{value}}, {{unit}}, {{alert_severity}}, {{device_name}} and {{time}} |
| SLACK_WEBHOOK_URL | string | Webhook to the slack channel to put alerts on, format: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX' |
| MODULE_NAME | string | Name of the module |
| MODULE_TYPE | string | Type of the module (Input, Processing, Output) |
| LOG_LEVEL | string | Allowed log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL. Refer to logging package documentation. |
| INGRESS_HOST | string | Host to which data will be received |
| INGRESS_PORT | string | Port to which data will be received |
The following are module dependencies:
Input to this module is JSON body single object:
Example:
{
temperature: 15
}
This module does not produce any output except Slack notifications.
Content type
Image
Digest
sha256:d7f22e7ee…
Size
48.5 MB
Last updated
over 3 years ago
docker pull weevenetwork/slack-alert:v2.0.0