charlesbot pagerduty插件
charlesbot-pagerdut的Python项目详细描述
一个Charlesbot插件,它可以与pagerduty交互并做一些很酷的事情。
这是如何工作的
此插件添加以下!help目标:
!oncall - Find out who's on-call right now
这将查询pagerduty并打印出所有待命人员的列表(对于 所有的时间表)。
安装
pip install charlesbot-pagerduty
有关如何运行charlesbot的说明已在https://github.com/marvinpinto/charlesbot上完成。
配置
在charlesbotconfig.yaml中,通过添加以下内容启用此插件 main部分的条目:
main:enabled_plugins:-'charlesbot_pagerduty.pagerduty.Pagerduty'
然后添加一个pagerduty字典块,它看起来像:
pagerduty:token:'E7px6VVr3PVHZPJq51oa'subdomain:'acme'
注意,token的值需要一个有效的pagerduty api令牌,a read-only标记在这里就足够了。
示例配置文件
main:slackbot_token:'xoxb-1234'enabled_plugins:-'charlesbot_pagerduty.pagerduty.Pagerduty'pagerduty:token:'E7px6VVr3PVHZPJq51oa'subdomain:'acme'
许可证
有关许可证权限和限制(mit),请参阅LICENSE.txt文件。