Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
monitor
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaihuitao
monitor
Commits
f6112e2b
Commit
f6112e2b
authored
Jan 15, 2021
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
19dfa8ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
getData.py
dbConfig/getData.py
+3
-3
No files found.
dbConfig/getData.py
View file @
f6112e2b
...
...
@@ -6,6 +6,7 @@ import time
import
os
,
sys
import
socket
,
struct
import
datetime
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
sys
.
path
.
append
(
rootPath
)
...
...
@@ -37,7 +38,7 @@ count = r[0]
p
=
requests
.
get
(
url
=
URL
,
params
=
param
,
timeout
=
30
,
verify
=
False
)
time
.
sleep
(
25
0
)
time
.
sleep
(
30
0
)
mysqlCon
=
MysqlCon
(
host
=
host
,
username
=
username
,
password
=
password
,
db
=
db
)
r
=
mysqlCon
.
get_one
(
sql
=
sql
)
...
...
@@ -47,4 +48,4 @@ if count + 1 == num:
print
(
"指标确认正常"
)
else
:
# print("指标异常,请关注")
1
/
0
\ No newline at end of file
1
/
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment