问题描述
我正在尝试通过使用 https://github.com/sensu/sensu-go-python 创建 Sense 客户端来与 sensu API 通信。
我能够创建一个客户端并列出检查并查看信息。
list(client.events.list())
但是当我尝试使用客户端列出事件时,我收到了 404 错误。
Traceback (most recent call last):
File "<stdin>",line 1,in <module>
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/sensu_go/clients/resource/base.py",line 43,in __iter__
raise ResponseError(
sensu_go.errors.ResponseError: Expected 200 when listing resources:
URL: <sensu_api_url>
status: 404
text: {"code":2,"message":"not found"}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)