Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
a79a6d4c
Commit
a79a6d4c
authored
Nov 13, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监控
parent
c0ced63e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
spark_streaming_monitor.py
eda/smart_rank/spark_streaming_monitor.py
+1
-1
No files found.
eda/smart_rank/spark_streaming_monitor.py
View file @
a79a6d4c
...
@@ -19,7 +19,7 @@ while True:
...
@@ -19,7 +19,7 @@ while True:
batch_time
=
batch
[
'batchTime'
]
batch_time
=
batch
[
'batchTime'
]
GMT_FORMAT
=
'
%
Y-
%
m-
%
dT
%
H:
%
M:
%
S.000GMT'
GMT_FORMAT
=
'
%
Y-
%
m-
%
dT
%
H:
%
M:
%
S.000GMT'
batch_time_beijing
=
datetime
.
datetime
.
strptime
(
batch_time
,
GMT_FORMAT
)
+
datetime
.
timedelta
(
hours
=
8
)
batch_time_beijing
=
datetime
.
datetime
.
strptime
(
batch_time
,
GMT_FORMAT
)
+
datetime
.
timedelta
(
hours
=
8
)
send_email
(
"画像增量更新堆积时间"
,
"堆积时刻:"
+
str
(
batch_time_beijing
)
+
"堆积时长:"
+
str
(
batch
[
'totalDelay'
]))
send_email
(
"画像增量更新堆积时间"
,
"堆积时刻:"
+
str
(
batch_time_beijing
)
+
"堆积时长:"
+
str
(
batch
[
'totalDelay'
])
,
""
)
is_email
=
1
is_email
=
1
f
.
write
(
'
%
s
\n
'
%
batch
)
f
.
write
(
'
%
s
\n
'
%
batch
)
time
.
sleep
(
1800
)
time
.
sleep
(
1800
)
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