Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_monitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4b6a85a0
authored
Sep 23, 2021
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加手机号码
parent
feb9a353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
utils/robots.py
utils/robots.py
View file @
4b6a85a0
...
...
@@ -50,7 +50,8 @@ def dd_send_msg(msg, robot=tom):
m
.
update
(
str
(
cur_time
)
.
encode
())
d
.
update
((
m
.
hexdigest
()
+
'fh6y5t4rr351d2c3bryi'
)
.
encode
())
data
=
{
'data'
:
"{
\"
content
\"
:
\"
%
s
\"
}"
%
(
content
),
'touser'
:
"[
\"
15113123231
\"
]"
,
'keyword'
:
'monitoring-py'
,
data
=
{
'data'
:
"{
\"
content
\"
:
\"
%
s
\"
}"
%
(
content
),
'touser'
:
"[
\"
18211280017
\"
,
\"
15113123231
\"
]"
,
'keyword'
:
'monitoring-py'
,
'fromuser'
:
''
,
'wechat_data'
:
''
,
'is_oversea'
:
''
,
'channel_type'
:
''
,
'is_ignore'
:
''
,
'ex_int'
:
''
,
'ex_str'
:
''
,
'k2'
:
d
.
hexdigest
(),
'k1'
:
str
(
cur_time
)}
requests
.
post
(
msgapi_url
,
data
=
data
)
...
...
@@ -58,6 +59,6 @@ def dd_send_msg(msg, robot=tom):
if
__name__
==
"__main__"
:
dd_send_msg
(
'''TAS任务监控预警 过去90分钟内:
任务:muguf 未知 平均错误率为
64
.30
%
任务:muguf 未知 平均错误率为
81
.30
%
任务:pc 平台比价 平均错误率为97.99
%
任务:bkc buerklin新品采集 平均错误率为72.97
%
'''
)
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