Overview页面,后端增加排序信息

This commit is contained in:
zengqiao
2022-09-22 11:24:13 +08:00
parent 833c360698
commit 2b76358c8f
3 changed files with 23 additions and 33 deletions

View File

@@ -15,20 +15,20 @@ public class UserMetricConfig {
private boolean set;
private int rank;
private Integer rank;
public UserMetricConfig(int type, String metric, boolean set, Integer rank) {
this.type = type;
this.metric = metric;
this.set = set;
this.rank = rank == null ? Constant.DEFAULT_METRIC_RANK : rank;
this.rank = rank;
}
public UserMetricConfig(int type, String metric, boolean set) {
this.type = type;
this.metric = metric;
this.set = set;
this.rank = Constant.DEFAULT_METRIC_RANK;
this.rank = null;
}
@Override

View File

@@ -42,7 +42,6 @@ public class Constant {
*/
public static final Integer DEFAULT_CLUSTER_HEALTH_SCORE = 90;
public static final Integer DEFAULT_METRIC_RANK = 10000;
public static final String DEFAULT_USER_NAME = "know-streaming-app";