|
|
@@ -211,6 +211,9 @@ public class CockpitInfrastructureOperatingInformationResponse {
|
|
|
private final List<TrendPoint> trend;
|
|
|
private final boolean abnormal;
|
|
|
private final List<String> pointCodes;
|
|
|
+ private final String facilityId;
|
|
|
+ private final String facilityKind;
|
|
|
+ private final String facilityStatus;
|
|
|
/**
|
|
|
* 指标所属设施的片区(票 81):设施没有片区列,按**设施编码前缀**由
|
|
|
* {@code CockpitDistrictPrefix} 做后端唯一映射;推不出时为 {@code null}=未分区。
|
|
|
@@ -253,6 +256,15 @@ public class CockpitInfrastructureOperatingInformationResponse {
|
|
|
List<String> pointCodes,
|
|
|
Integer district,
|
|
|
String districtName) {
|
|
|
+ this(metricCode, metricName, category, unit, value, capacityValue, loadRatio, loadState, sampledAt, freshness,
|
|
|
+ trend, abnormal, pointCodes, district, districtName, null, null, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public OperatingMetric(
|
|
|
+ String metricCode, String metricName, String category, String unit, BigDecimal value,
|
|
|
+ BigDecimal capacityValue, BigDecimal loadRatio, String loadState, String sampledAt,
|
|
|
+ MetricFreshness freshness, List<TrendPoint> trend, boolean abnormal, List<String> pointCodes,
|
|
|
+ Integer district, String districtName, String facilityId, String facilityKind, String facilityStatus) {
|
|
|
this.metricCode = metricCode;
|
|
|
this.metricName = metricName;
|
|
|
this.category = category;
|
|
|
@@ -266,6 +278,9 @@ public class CockpitInfrastructureOperatingInformationResponse {
|
|
|
this.trend = trend;
|
|
|
this.abnormal = abnormal;
|
|
|
this.pointCodes = pointCodes;
|
|
|
+ this.facilityId = facilityId;
|
|
|
+ this.facilityKind = facilityKind;
|
|
|
+ this.facilityStatus = facilityStatus;
|
|
|
this.district = district;
|
|
|
this.districtName = districtName;
|
|
|
}
|
|
|
@@ -286,6 +301,9 @@ public class CockpitInfrastructureOperatingInformationResponse {
|
|
|
public List<TrendPoint> getTrend() { return trend; }
|
|
|
public boolean isAbnormal() { return abnormal; }
|
|
|
public List<String> getPointCodes() { return pointCodes; }
|
|
|
+ public String getFacilityId() { return facilityId; }
|
|
|
+ public String getFacilityKind() { return facilityKind; }
|
|
|
+ public String getFacilityStatus() { return facilityStatus; }
|
|
|
public Integer getDistrict() { return district; }
|
|
|
public String getDistrictName() { return districtName; }
|
|
|
}
|