Sign inSign up

beetaone/slack-alert

By beetaone

Updated almost 2 years ago

Image
0

186

beetaone/slack-alert repository overview

Slack Alert

nameSlack Alert
versionv2.0.0
GitHubbeetaone-modules/slack-alert
DockerHubbeetaone/slack-alert
authorsJakub Grzelak, Paul Gaiduk

Table of Content


Description

Slack Alert is an alerting module responsible for sending notifications to Slack channels when triggered. It works best with messages provided by the Message Composer module.

Environment Variables

Module Specific

The following module configurations can be provided in a data service designer section on beetaone platform:

Environment VariablestypeDescription
MESSAGE_LABELstringJSON label which contains the message text (as created by message composer module)
SLACK_WEBHOOK_URLstringWebhook to the slack channel to put alerts on, format: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'
Set by the beetaone Agent on the edge-node

Other features required for establishing the inter-container communication between modules in a data service are set by beetaone agent.

Environment VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (Input, Processing, Output)
LOG_LEVELstringAllowed log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL. Refer to logging package documentation.
INGRESS_HOSTstringHost to which data will be received
INGRESS_PORTstringPort to which data will be received

Dependencies

The following are module dependencies:

  • bottle
  • requests

Input

Input to this module is JSON body single object:

Example:

{
  "message": "Measured temperature at node Floor 1 South reached 25 Celsius"
}

Output

This module does not produce any output except Slack notifications.

Tag summary

Content type

Image

Digest

sha256:a4b4f0475

Size

49.1 MB

Last updated

almost 2 years ago

docker pull beetaone/slack-alert:v2.0.0