Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
java-devop-sentry
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
zhouzihao
java-devop-sentry
Commits
3e0b690d
Commit
3e0b690d
authored
Mar 19, 2020
by
zhouzihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmp
parent
3d0034cd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
4 deletions
+23
-4
README.md
README.md
+1
-1
src/main/java/com/vandyo/sentry/core/Tmp.java
src/main/java/com/vandyo/sentry/core/Tmp.java
+3
-0
src/main/java/com/vandyo/sentry/core/cases/EmptyCase.java
src/main/java/com/vandyo/sentry/core/cases/EmptyCase.java
+0
-2
src/main/java/com/vandyo/sentry/core/collectionMachine/DataClearDealer.java
...vandyo/sentry/core/collectionMachine/DataClearDealer.java
+2
-1
src/main/java/com/vandyo/sentry/core/collectionMachine/WeChatDealer.java
...om/vandyo/sentry/core/collectionMachine/WeChatDealer.java
+17
-0
No files found.
README.md
View file @
3e0b690d
...
...
@@ -88,7 +88,7 @@ com.vandyo.sentry.core
-
[
]
更多接口支持
-
[
]
相同接口依赖并发支持
-
[
]
接口调用插件配置化
-
[
]
更通用化的空案例
-
[
x
]
更通用化的空案例
-
[
]
统一接口出参验证封装
-
[
]
数据收集器依赖解耦
...
...
src/main/java/com/vandyo/sentry/core/Tmp.java
View file @
3e0b690d
...
...
@@ -41,6 +41,8 @@ public class Tmp {
public
void
test
()
{
log
.
info
(
"we run it {} times"
,
++
times
);
Case
case1
=
null
;
// 上线前使用这段代码
// case1 = new EmptyCase(sId,uid);
case1
=
new
LoginCase
(
mobile
,
pwd
);
case1
=
new
CarListDecorator
(
case1
);
case1
=
new
CarInfoDecorator
(
case1
);
...
...
@@ -48,6 +50,7 @@ public class Tmp {
case1
=
new
CarStatusDecorator
(
case1
);
case1
.
check
();
// 注释掉这段代码
Case
case2
=
null
;
case2
=
new
TestCase
();
case2
.
check
();
...
...
src/main/java/com/vandyo/sentry/core/cases/EmptyCase.java
View file @
3e0b690d
...
...
@@ -41,8 +41,6 @@ public class EmptyCase extends Case {
return
this
;
}
// FIXME: 更灵活的初始调用
@Override
public
Res
<
Map
<
String
,
String
>>
check
()
{
Res
<
Map
<
String
,
String
>>
res
=
new
Res
<>();
...
...
src/main/java/com/vandyo/sentry/core/collectionMachine/DataClearDealer.java
View file @
3e0b690d
package
com
.
vandyo
.
sentry
.
core
.
collectionMachine
;
import
com.vandyo.sentry.core.dto.ErrStatus
;
import
org.jetbrains.annotations.NotNull
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
...
...
@@ -15,7 +16,7 @@ public abstract class DataClearDealer implements CollectionDealer {
}
@Override
public
String
formatData
(
Map
<
String
,
Map
<
ErrStatus
,
Long
>>
data
,
Map
<
String
,
String
>
names
)
{
public
String
formatData
(
@NotNull
Map
<
String
,
Map
<
ErrStatus
,
Long
>>
data
,
Map
<
String
,
String
>
names
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
append
(
"接口报错:\n"
);
...
...
src/main/java/com/vandyo/sentry/core/collectionMachine/WeChatDealer.java
0 → 100644
View file @
3e0b690d
package
com
.
vandyo
.
sentry
.
core
.
collectionMachine
;
import
com.vandyo.sentry.core.dto.ErrStatus
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Component
;
import
java.util.Map
;
@Component
@Slf4j
public
class
WeChatDealer
extends
DataClearDealer
{
@Override
public
void
deal
(
Map
<
String
,
Map
<
ErrStatus
,
Long
>>
data
)
{
// todo using wechat send msg
}
}
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