Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tke-eos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
tke-eos
Commits
252d41e3
Commit
252d41e3
authored
Jun 13, 2019
by
kewei.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换钉钉的通知地址(qa-home)
parent
9ff519f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
schedule.js
app/schedule.js
+5
-5
service.js
kubeService/service.js
+3
-0
No files found.
app/schedule.js
View file @
252d41e3
...
...
@@ -30,12 +30,12 @@ const dingTalkPush = async function (item) {
msgtype
:
'
markdown
'
,
markdown
:
{
title
:
'
pipeline项目添加信息如下
'
,
text
:
'
> 描述信息
:
腾讯云服务异常提醒通知
\n\n
'
+
`> 项目名称 :
${
item
.
metadata
.
labels
[
'
qcloud-app
'
]}
\n\n`
+
`> 项目类型 :
${
item
.
metadata
.
labels
.
type
}
\n\n`
+
`> 命名空间 :
${
item
.
metadata
.
namespace
}
\n\n`
text
:
'
> 描述信息
:
腾讯云服务异常提醒通知
\n\n
'
+
`> 项目名称 :
${
item
.
metadata
.
labels
[
'
qcloud-app
'
]}
\n\n`
+
`> 项目类型 :
${
item
.
metadata
.
labels
.
type
}
\n\n`
+
`> 命名空间 :
${
item
.
metadata
.
namespace
}
\n\n`
+
`> 异常原因 :
${
message
}
\n\n`
+
`>
时间戳
:
${
moment
().
format
(
'
YYYY-MM-DD HH:mm:ss
'
)}
\n\n`
,
+
`>
异常时间
:
${
moment
().
format
(
'
YYYY-MM-DD HH:mm:ss
'
)}
\n\n`
,
},
}
const
res
=
await
awaitRequest
({
...
...
kubeService/service.js
View file @
252d41e3
...
...
@@ -147,6 +147,8 @@ const getPods = async (namespace) => {
return
podData
.
body
.
items
}
const
podGetstatus
=
async
()
=>
client
.
api
.
v1
.
pods
.
get
()
const
getServices
=
async
(
namespace
)
=>
{
const
ret
=
[]
const
service
=
{}
...
...
@@ -215,6 +217,7 @@ module.exports = {
getServiceDetail
,
getServices
,
getPods
,
podGetstatus
,
serviceCreate
,
serviceUpdate
,
serviceRestart
,
...
...
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