Commit 19dfa8ff by zhaihuitao

update

parent 6d836133
...@@ -18,7 +18,6 @@ username = "rytestalarm" ...@@ -18,7 +18,6 @@ username = "rytestalarm"
# password = "reyun.123" # password = "reyun.123"
password = "rytestalarm234" password = "rytestalarm234"
db = "tkio_stream" db = "tkio_stream"
dt = datetime.datetime.now().strftime('%Y-%m-%d')
sql = "select num_click from tkio_rpt_source_analysis_day where appid ='b563860ef7f3400a5fe7c0a05f4523e6' and " \ sql = "select num_click from tkio_rpt_source_analysis_day where appid ='b563860ef7f3400a5fe7c0a05f4523e6' and " \
"dt=curdate(); " "dt=curdate(); "
...@@ -38,7 +37,7 @@ count = r[0] ...@@ -38,7 +37,7 @@ count = r[0]
p = requests.get(url=URL, params=param, timeout=30, verify=False) p = requests.get(url=URL, params=param, timeout=30, verify=False)
time.sleep(360) time.sleep(250)
mysqlCon = MysqlCon(host=host, username=username, password=password, db=db) mysqlCon = MysqlCon(host=host, username=username, password=password, db=db)
r = mysqlCon.get_one(sql=sql) r = mysqlCon.get_one(sql=sql)
...@@ -47,4 +46,5 @@ print(count, num) ...@@ -47,4 +46,5 @@ print(count, num)
if count + 1 == num: if count + 1 == num:
print("指标确认正常") print("指标确认正常")
else: else:
print("指标异常,请关注") # print("指标异常,请关注")
1/0
\ No newline at end of file
...@@ -11,3 +11,4 @@ sql = "select num_click from tkio_rpt_source_analysis_day where appid ='b563860e ...@@ -11,3 +11,4 @@ sql = "select num_click from tkio_rpt_source_analysis_day where appid ='b563860e
"dt=curdate(); " "dt=curdate(); "
print(sys.path) print(sys.path)
print(rootPath) print(rootPath)
print(1/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