mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
补充多集群健康状态概览信息
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package com.xiaojukeji.know.streaming.km.common.bean.entity.cluster;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
|
||||
/**
|
||||
* 集群状态信息
|
||||
* @author zengqiao
|
||||
* @date 22/02/24
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ClusterPhysHealthState {
|
||||
private Integer unknownCount;
|
||||
|
||||
private Integer goodCount;
|
||||
|
||||
private Integer mediumCount;
|
||||
|
||||
private Integer poorCount;
|
||||
|
||||
private Integer deadCount;
|
||||
|
||||
private Integer total;
|
||||
|
||||
public ClusterPhysHealthState(Integer total) {
|
||||
this.unknownCount = 0;
|
||||
this.goodCount = 0;
|
||||
this.mediumCount = 0;
|
||||
this.poorCount = 0;
|
||||
this.deadCount = 0;
|
||||
this.total = total;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.xiaojukeji.know.streaming.km.common.bean.vo.cluster;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @author zengqiao
|
||||
* @date 22/02/24
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(description = "集群健康状态信息")
|
||||
public class ClusterPhysHealthStateVO {
|
||||
@ApiModelProperty(value = "未知", example = "30")
|
||||
private Integer unknownCount;
|
||||
|
||||
@ApiModelProperty(value = "好", example = "30")
|
||||
private Integer goodCount;
|
||||
|
||||
@ApiModelProperty(value = "中", example = "30")
|
||||
private Integer mediumCount;
|
||||
|
||||
@ApiModelProperty(value = "差", example = "30")
|
||||
private Integer poorCount;
|
||||
|
||||
@ApiModelProperty(value = "down", example = "30")
|
||||
private Integer deadCount;
|
||||
|
||||
@ApiModelProperty(value = "总数", example = "150")
|
||||
private Integer total;
|
||||
}
|
||||
Reference in New Issue
Block a user