Commit fa729f6d by zhangwei

修改check_pay_falure.py的输出

parent db9e0aa3
......@@ -27,7 +27,7 @@ def action(failure_count):
unit = config_infos["unit"]
dimensions = config_infos["dimensions"]
fields = dimensions.replace("project","summer-hill")
print ali_uid,metric_name,unit,dimensions,fields,failure_count
#print ali_uid,metric_name,unit,dimensions,fields,failure_count
#cms_post.post(ali_uid, metric_name, failure_count, unit, fields)
if __name__ == '__main__':
......@@ -54,7 +54,7 @@ order by
d.close()
if len(rs)>0:
for line in rs:
print("[sum]:%s,[user_id]:%s,[truename]:%s") % (line[0], line[1], line[2])
action(line[0])
#print("[sum]:%s,[user_id]:%s,[truename]:%s") % (line[0], line[1], line[2])
print(line[0])
else:
action(0)
\ No newline at end of file
print(0)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment