-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/yinghua_20211022'
# Conflicts: # takin-web-biz-service/src/main/java/io/shulie/takin/web/biz/service/ApplicationService.java # takin-web-biz-service/src/main/java/io/shulie/takin/web/biz/service/impl/ApplicationServiceImpl.java # takin-web-entrypoint/src/main/java/io/shulie/takin/web/entrypoint/controller/confcenter/ApplicationController.java
- Loading branch information
Showing
24 changed files
with
991 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...a/io/shulie/takin/web/biz/pojo/request/application/ApplicationVisualInfoQueryRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package io.shulie.takin.web.biz.pojo.request.application; | ||
|
||
import io.shulie.takin.common.beans.page.PagingDevice; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.format.DateTimeFormatter; | ||
import java.util.List; | ||
|
||
@Data | ||
@ApiModel("应用监控查询对象") | ||
public class ApplicationVisualInfoQueryRequest extends PagingDevice { | ||
/** | ||
* 应用名称 | ||
*/ | ||
@ApiModelProperty("应用名称") | ||
private String appName; | ||
|
||
@ApiModelProperty("流量类型(BLEND混合-1、PRESSURE_MEASUREMENT压测1、BUSINESS业务0)") | ||
private int clusterTest; | ||
|
||
@ApiModelProperty("开始时间") | ||
private LocalDateTime startTimeDate = LocalDateTime.now().minusMinutes(5); | ||
|
||
@ApiModelProperty("结束时间") | ||
private LocalDateTime endTimeDate = LocalDateTime.now(); | ||
|
||
@ApiModelProperty("开始时间") | ||
private String startTime = startTimeDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); | ||
|
||
@ApiModelProperty("结束时间") | ||
private String endTime = endTimeDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); | ||
|
||
/** | ||
* 服务名称 | ||
* 如果服务名称为空则查询全部服务,否则查询指定服务名称服务 | ||
*/ | ||
@ApiModelProperty("服务名称") | ||
private String label; | ||
|
||
/** | ||
* 业务活动 | ||
*/ | ||
@ApiModelProperty("业务活动名称") | ||
private String activityName; | ||
|
||
/** | ||
* 排序字段 | ||
* eg:TPS desc | ||
*/ | ||
@ApiModelProperty("排序字段") | ||
private String orderBy = "TPS desc"; | ||
|
||
/** | ||
* 关注列表 | ||
*/ | ||
@ApiModelProperty("关注列表") | ||
private List<String> attentionList; | ||
|
||
/** | ||
* 是否关注 | ||
*/ | ||
@ApiModelProperty("是否关注") | ||
private Boolean attend; | ||
} |
25 changes: 25 additions & 0 deletions
25
.../main/java/io/shulie/takin/web/biz/pojo/response/activity/ActivityBottleneckResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.shulie.takin.web.biz.pojo.response.activity; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class ActivityBottleneckResponse { | ||
|
||
// 总Rt 瓶颈类型(-1 没有瓶颈 | 1 一般卡慢 | 2 严重卡慢) | ||
private int allTotalRtBottleneckType; | ||
// 总Rt 瓶颈详情 id | ||
private Long rtBottleneckId; | ||
|
||
|
||
// 总成功率 瓶颈类型(-1 没有瓶颈 | 1 一般瓶颈 | 2 严重瓶颈) | ||
private int allSuccessRateBottleneckType; | ||
// 总成功率 瓶颈详情 id | ||
private Long successRateBottleneckId; | ||
|
||
|
||
// 总Rt 慢sql 瓶颈类型(-1 没有瓶颈 | 1 一般卡慢 | 2 严重卡慢) | ||
private int allSqlTotalRtBottleneckType; | ||
// 总Rt 慢sql 瓶颈详情 id | ||
private Long rtSqlBottleneckId; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...java/io/shulie/takin/web/biz/pojo/response/application/ApplicationVisualInfoResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package io.shulie.takin.web.biz.pojo.response.application; | ||
|
||
import io.shulie.takin.web.biz.pojo.response.activity.ActivityBottleneckResponse; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.text.DecimalFormat; | ||
import java.util.Map; | ||
|
||
@Data | ||
public class ApplicationVisualInfoResponse implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* 应用名称 | ||
*/ | ||
private String appName; | ||
/** | ||
* 服务名称 | ||
*/ | ||
private String serviceAndMethod; | ||
/** | ||
* 请求量 | ||
*/ | ||
private int requestCount; | ||
/** | ||
* TPS | ||
*/ | ||
private double tps; | ||
/** | ||
* 响应时间 | ||
*/ | ||
private double responseConsuming; | ||
/** | ||
* 成功率 | ||
*/ | ||
private double successRatio; | ||
/** | ||
* 中间件类型 | ||
*/ | ||
private String middlewareName; | ||
/** | ||
* 关联业务活动名称 | ||
*/ | ||
private String[] activeList; | ||
/** | ||
* 关联业务活动名称 | ||
*/ | ||
private Map activeIdAndName; | ||
/** | ||
* 是否关注 | ||
*/ | ||
private boolean isAttend; | ||
/** | ||
* 健康检查结果 | ||
*/ | ||
private ActivityBottleneckResponse response; | ||
|
||
private static final DecimalFormat df = new DecimalFormat("#.##"); | ||
|
||
public double getTps() { | ||
return Double.parseDouble(df.format(tps)); | ||
} | ||
|
||
public double getResponseConsuming() { | ||
return Double.parseDouble(df.format(responseConsuming)); | ||
} | ||
|
||
public double getSuccessRatio() { | ||
return Double.parseDouble(df.format(successRatio)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.