snews_cs.snews_bot

Attributes

log

slack_token

client

broker

alert_topic

slack_channel_id

alert_schema

Functions

get_image(is_test, alert_data, topic)

send_table(alert_data, alert, is_test, topic)

send warning on slack.

Module Contents

snews_cs.snews_bot.log[source]
snews_cs.snews_bot.slack_token[source]
snews_cs.snews_bot.client[source]
snews_cs.snews_bot.broker[source]
snews_cs.snews_bot.alert_topic[source]
snews_cs.snews_bot.slack_channel_id[source]
snews_cs.snews_bot.alert_schema[source]
snews_cs.snews_bot.get_image(is_test, alert_data, topic)[source]
snews_cs.snews_bot.send_table(alert_data, alert, is_test, topic)[source]

send warning on slack. Both alert_data (dictionary with info from each detector) and the alert (single dict with collected info) are required