|
@@ -69,22 +69,11 @@ def DingTalkSend(text1, text2):
|
|
|
|
|
|
# 钉钉推送
|
|
|
print(type(status_failed))
|
|
|
- dd_robot = DingtalkChatbot(read_config_yaml("dingding", "test_yunwin_webhook"))
|
|
|
+ dd_robot = DingtalkChatbot(read_config_yaml("dingding", "prod_webhook"))
|
|
|
if status_failed == "0":
|
|
|
dd_robot.send_markdown(title='星辰绘影服务巡检', text=text1, is_at_all=False)
|
|
|
else:
|
|
|
dd_robot.send_markdown(title='星辰绘影服务巡检', text=text2, is_at_all=False)
|
|
|
- # try:
|
|
|
- # if status_failed == "0":
|
|
|
- # print("我要发text1")
|
|
|
- # dd_robot = DingtalkChatbot(read_config_yaml("dingding", "test_yunwin_webhook"))
|
|
|
- # dd_robot.send_markdown(title='星辰绘影服务巡检', text=text1, is_at_all=False)
|
|
|
- # else:
|
|
|
- # print("我要发text2")
|
|
|
- # dd_robot = DingtalkChatbot(read_config_yaml("dingding", "test_yunwin_webhook"))
|
|
|
- # dd_robot.send_markdown(title='星辰绘影服务巡检', text=text2, is_at_all=False)
|
|
|
- # except Exception as e:
|
|
|
- # pass
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|