[monitor]服务端编译打包脚本

This commit is contained in:
tomsun28
2021-12-26 15:08:54 +08:00
parent 7e41f64491
commit faf5bc7b87
17 changed files with 309 additions and 66 deletions

View File

@@ -33,6 +33,8 @@ import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
@Api(tags = "监控指标数据API")
public class MetricsDataController {
private static final Integer METRIC_FULL_LENGTH = 3;
@Autowired
private RedisDataStorage redisDataStorage;
@@ -77,7 +79,7 @@ public class MetricsDataController {
@RequestParam(required = false) String history
) {
String[] names = metricFull.split(".");
if (names.length != 3) {
if (names.length != METRIC_FULL_LENGTH) {
throw new IllegalArgumentException("metrics full name: " + metricFull + " is illegal.");
}
String app = names[0];