def get_instances(matrix_api=None):
"""
?????matrix?API?????????
??????????????????
"""
try:
# response = yield httpclient.AsyncHTTPClient().fetch(MATRIX_API_GET_INSTANCES)
# handle matrix response here
# ????????????matrix??
conf = yaml.safe_load(open(ALERT_CONF))
instances = conf['instances']
except Exception as e:
logging.error(e, exc_info=True)
raise gen.Return([])
raise gen.Return(instances)
评论列表
文章目录