Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
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
liyuan
byit-myth-job
Commits
28bab64b
Commit
28bab64b
authored
Mar 25, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不告警级别操作
parent
6aa0049f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
logback-spring.xml
byit-myth-admin/src/main/resources/logback-spring.xml
+2
-2
EndAndNotWarningThreadRunHelper.java
...m/byit/thread/helper/EndAndNotWarningThreadRunHelper.java
+4
-1
ResponseAdvice.java
...ore/src/main/java/com/byit/web/advice/ResponseAdvice.java
+5
-0
AddComplexPy1.java
...demo-client/src/main/java/com/byit/job/AddComplexPy1.java
+2
-2
No files found.
byit-myth-admin/src/main/resources/logback-spring.xml
View file @
28bab64b
...
...
@@ -58,13 +58,13 @@
</encoder>
</appender>
<logger
name=
"com.byit.thread.helper"
level=
"
info
"
additivity=
"false"
>
<logger
name=
"com.byit.thread.helper"
level=
"
debug
"
additivity=
"false"
>
<appender-ref
ref=
"console"
/>
</logger>
<logger
name=
"com.byit.selector"
level=
"info"
additivity=
"false"
>
<appender-ref
ref=
"console"
/>
</logger>
<logger
name=
"com.byit.task"
level=
"
info
"
additivity=
"false"
>
<logger
name=
"com.byit.task"
level=
"
debug
"
additivity=
"false"
>
<appender-ref
ref=
"console"
/>
</logger>
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/EndAndNotWarningThreadRunHelper.java
View file @
28bab64b
...
...
@@ -83,7 +83,10 @@ public class EndAndNotWarningThreadRunHelper extends BaseThreadRunHelper {
}
break
;
default
:
log
.
debug
(
"------工作流{},告警类别未知-----"
,
runRecording
);
log
.
debug
(
"------工作流{},告警类别不告警-----"
,
runRecording
);
//修改为已告警
runRecording
.
setIsAlarm
(
"0"
);
runRecordingService
.
updateRunRecordingById
(
runRecording
);
break
;
}
});
...
...
byit-myth-core/myth-web-core/src/main/java/com/byit/web/advice/ResponseAdvice.java
View file @
28bab64b
...
...
@@ -39,6 +39,11 @@ public class ResponseAdvice implements ResponseBodyAdvice<Object> {
return
ResponseResult
.
ok
(
body
);
}
public
static
void
main
(
String
[]
args
)
{
ResponseResult
<
Object
>
ok
=
ResponseResult
.
ok
(
true
);
System
.
out
.
println
(
JSON
.
toJSONString
(
ok
));
}
}
demo-client/byit-demo-client/src/main/java/com/byit/job/AddComplexPy1.java
View file @
28bab64b
...
...
@@ -16,7 +16,7 @@ public class AddComplexPy1 {
PluginPackage
pluginPackage
=
new
PluginPackage
();
pluginPackage
.
setWorkspaceName
(
"test"
);
pluginPackage
.
setFlow
(
createFlow
());
JobUtils
.
setRequestUrl
(
"http://127.0.0.1:8081"
);
JobUtils
.
setRequestUrl
(
"http://127.0.0.1:8081
/myth-job-admin
"
);
JobUtils
.
setTOKEN
(
"test"
);
JobUtils
.
publish
(
pluginPackage
);
}
...
...
@@ -90,7 +90,7 @@ public class AddComplexPy1 {
*/
private
static
void
nodeSet
(
PluginNode
pluginNode
,
boolean
flag
){
pluginNode
.
setAuthor
(
"皇甫"
);
pluginNode
.
setJobType
(
"
SCRIPT
"
);
pluginNode
.
setJobType
(
"
PYTHON
"
);
pluginNode
.
setType
(
"node"
);
pluginNode
.
setRunCommand
(
"python ${biz_file}"
);
...
...
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