mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-05-18 11:27:02 +08:00
Overview页面,后端增加排序信息
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user