正文
平台地址
https://www.opsalert.cn/pricing.html
注册送1个月时间,余额2元体验
import requests import json url = 'https://www.opsalert.cn/alert/api/密钥' headers = { 'Content-type': 'application/json' } data = { "uuid": "001", "title": "msg test", "priority": 3, "type": "trigger", "hostname": "TestHost", "content": "msg content", } response = requests.post(url, headers=headers, data=json.dumps(data)) print(response.text)
猜你喜欢
- 2025-02-27Python电话告警短信告警通知API
- 2024-12-17【完美解决】Python报错:NotOpenSSLWarning_ urllib3 v2 only supports OpenSSL 1.1.1
- 2024-01-16linux设置python脚本开机启动
- 2024-01-08python脚本检测出现指定标题窗口并点击鼠标
- 2024-01-08python推送钉钉群消息
- 2024-01-03Ubuntu安装Python3.9
- 搜索