project8 / dripline

Slow controls for medium scale physics experiments based on AMQP centralized messaging
http://www.project8.org/dripline
1 stars 0 forks source link

slack integration #93

Closed laroque closed 9 years ago

laroque commented 9 years ago

Three parts: 1) identical to twitter, dripline should be able to send alerts on "critical" messages 2) dripline should expand to be able to post "notice" level messages to the notices channel (also notices are level 25, the default for the handlers should be moved to 21 from 30 so those show up without info) 3) a service should be written to relay messages received to slack posts. Payload will be a string, routing key will be status_message.. where the slack_channel is obviously a channel to post to and is who should be used as "name" in the post (if the authentications file has a valid slack token for that name, it should be used rather than the dripline token, which can be used by default)

laroque commented 9 years ago

Items 1 and 3 are complete. Item 2 doesn't exactly make sense because there is not a NOTICE level in python's logging and adding it across modules in a consistent way is possibly a pain and makes it harder to use dripline as a library if someone wants to do that. We can resurrect that in a new feature request if we decide it is actually valuable.