|
@@ -62,9 +62,9 @@ handler = WebhookHandler('5b05fed81cd9f6f1e75dbf7dda388479')
|
|
|
def get_aws():
|
|
|
result=''
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/hhh?charset=utf8mb4')
|
|
|
- cursor=db.query('SELECT from_unixtime(eventtime) as dt,area FROM hhh.aws_monitor order by eventtime desc limit 3;')
|
|
|
+ cursor=db.query('SELECT from_unixtime(eventtime) as dt,area FROM hhh.aws_monitor order by eventtime desc limit 4;')
|
|
|
for c in cursor:
|
|
|
- result+=str(c['dt'])+"/"+c['area']+","
|
|
|
+ result+=str(c['dt'])+"/"+c['area']+"\n"
|
|
|
return result
|
|
|
|
|
|
@app.get("/msg/{item_id}")
|