用于cabot的rocketchat警报插件
cabot-alert-rocketchat的Python项目详细描述
基于cabot hipechat插件(https://github.com/cabotapp/cabot-alert-hipchat)。
这是cabot服务监视工具的警报插件。它允许您在rocketchat频道中提醒用户。
安装
点
pip install cabot-alert-rocketchat
开发环境
待办事项
配置
插件使用rocketchat webhooks(https://rocket.chat/docs/administrator-guides/integrations/)
在cabot上启用rocketchat插件:
# Plugins to be loaded at launch CABOT_PLUGINS_ENABLED=...,cabot_alert_rocketchat
可用配置:
Common:
# Channel used to publish messages ROCKETCHAT_CHANNEL=#support # Webhook URL with token ROCKETCHAT_WEBHOOK_URL=http://rocketchat.example.org/hooks/TOKEN # Username for messages. This username does not need to # exist on your Rocketchat, this is an alias. ROCKETCHAT_USERNAME=Cabot
Message format:
# Collapse Service part ROCKETCHAT_COLLAPSED_SERVICE=False # Collapse Checks part ROCKETCHAT_COLLAPSED_CHECKS=False # Collapse Alert part ROCKETCHAT_COLLAPSED_ALERT=False