Commit c0e6df3b authored by zhouzihao's avatar zhouzihao

conf 修改采样率

parent 59bdd6ad
...@@ -8,8 +8,9 @@ ...@@ -8,8 +8,9 @@
# Feature # Feature
- 正常接口请求一组的时间间隔为5秒钟(配置的),也就是一分钟请求了12次。 - 正常接口请求一组的时间间隔为30秒钟(配置的),也就是一分钟请求了2次。
- 可以设置接口在时间段内出错个数。可以设置一个阈值。(建议设置成6次)。 - 可以设置接口在时间段内出错个数。可以设置一个阈值。(设置成3次,即错误率30%)。
- 每5分钟生成了报告。使用10个采样点。
## Deploy ## Deploy
修改配置 修改配置
...@@ -37,6 +38,10 @@ checkmeta: ...@@ -37,6 +38,10 @@ checkmeta:
"[/car/my_car/list]": 6 "[/car/my_car/list]": 6
"[/carDynamic/api/status/car/state/get]": 6 "[/carDynamic/api/status/car/state/get]": 6
test: 2 test: 2
# 邮箱配置方法
emailList[0]: "1042181618@qq.com"
emailList[1]: "jiaxiantao@vandyo.com"
emailList[2]: " yuzhanyong@vandyo.com"
``` ```
# 项目结构 # 项目结构
...@@ -93,4 +98,3 @@ com.vandyo.sentry.core ...@@ -93,4 +98,3 @@ com.vandyo.sentry.core
- [ ] 数据收集器依赖解耦 - [ ] 数据收集器依赖解耦
# ChangeLog # ChangeLog
...@@ -37,7 +37,7 @@ public class Tmp { ...@@ -37,7 +37,7 @@ public class Tmp {
@Autowired @Autowired
private EmailDealer emailDealer; private EmailDealer emailDealer;
@Scheduled(fixedRate = 5000) @Scheduled(fixedRate = 1000*30)
public void test() { public void test() {
log.info("we run it {} times", ++times); log.info("we run it {} times", ++times);
Case case1 = null; Case case1 = null;
...@@ -80,7 +80,7 @@ public class Tmp { ...@@ -80,7 +80,7 @@ public class Tmp {
log.info("over!"); log.info("over!");
} }
@Scheduled(fixedRate = 1000*60) @Scheduled(fixedRate = 1000*60*5)
public void check() { public void check() {
Map<String, Map<ErrStatus, Long>> data = CollectionMachine.checkRule(5); Map<String, Map<ErrStatus, Long>> data = CollectionMachine.checkRule(5);
String info = JSONUtil.parseFromMap(data).toStringPretty(); String info = JSONUtil.parseFromMap(data).toStringPretty();
......
...@@ -23,22 +23,24 @@ checkmeta: ...@@ -23,22 +23,24 @@ checkmeta:
"[/msg/msg_get]": 获取消息接口 "[/msg/msg_get]": 获取消息接口
test: 测试接口 test: 测试接口
timeMap: timeMap:
"[/car/my_car/info]": 6 "[/car/my_car/info]": 3
"[/car/car_detect]": 6 "[/car/car_detect]": 3
"[/car/my_car/list]": 6 "[/car/my_car/list]": 3
"[/carDynamic/api/status/car/state/get]": 6 "[/carDynamic/api/status/car/state/get]": 3
"[/user/banner/list]": 6 "[/user/banner/list]": 3
"[/user/info/get]": 6 "[/user/info/get]": 3
"[/car/api/reprt/reportDay/get]": 6 "[/car/api/reprt/reportDay/get]": 3
"[/car/api/locus/list/page]": 6 "[/car/api/locus/list/page]": 3
"[/car/api/locus/points/list]": 6 "[/car/api/locus/points/list]": 3
"[/car/api/locus/statistics/get]": 6 "[/car/api/locus/statistics/get]": 3
"[/car/api/locus/event/v111]": 6 "[/car/api/locus/event/v111]": 3
"[/user/mall/goods/list]": 6 "[/user/mall/goods/list]": 3
"[/user/authorize/logout]": 6 "[/user/authorize/logout]": 3
"[/msg/msg_get]": 6 "[/msg/msg_get]": 3
test: 2 test: 2
emailList[0]: "1042181618@qq.com" emailList[0]: "1042181618@qq.com"
emailList[1]: "jiaxiantao@vandyo.com"
emailList[2]: "yuzhanyong@vandyo.com"
spring: spring:
mail: mail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment