From 5a18d863778ffabcc45da185f7f77e7462289bb9 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期四, 27 八月 2026 20:45:31 +0800
Subject: [PATCH] feat(test): implement test configuration and channel binding
---
ruoyi-system/src/main/java/com/ruoyi/system/domain/TTestWarningThreshold.java | 32 ++++++++++++++++++--------------
1 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TTestWarningThreshold.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TTestWarningThreshold.java
index 46ff296..a312bb7 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/TTestWarningThreshold.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/TTestWarningThreshold.java
@@ -3,35 +3,39 @@
import java.io.Serializable;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotBlank;
-import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
-/** 测试预警阈值对象 t_test_warning_threshold。 */
+/** 使用 SI 业务单位保存的测试告警阈值。 */
public class TTestWarningThreshold implements Serializable
{
private static final long serialVersionUID = 1L;
private Long thresholdId;
private Long testId;
- @NotBlank(message = "阈值类型不能为空")
- @Size(max = 100, message = "阈值类型长度不能超过100个字符")
- private String thresholdType;
- @NotNull(message = "阈值最小值不能为空")
+ @NotBlank(message = "指标编码不能为空")
+ @Size(max = 100, message = "指标编码长度不能超过100个字符")
+ private String metricCode;
private BigDecimal minValue;
- @NotNull(message = "阈值最大值不能为空")
private BigDecimal maxValue;
+ @NotBlank(message = "阈值单位不能为空")
+ private String unit;
+ private String severity;
private String delFlag;
public Long getThresholdId() { return thresholdId; }
- public void setThresholdId(Long thresholdId) { this.thresholdId = thresholdId; }
+ public void setThresholdId(Long value) { thresholdId = value; }
public Long getTestId() { return testId; }
- public void setTestId(Long testId) { this.testId = testId; }
- public String getThresholdType() { return thresholdType; }
- public void setThresholdType(String thresholdType) { this.thresholdType = thresholdType; }
+ public void setTestId(Long value) { testId = value; }
+ public String getMetricCode() { return metricCode; }
+ public void setMetricCode(String value) { metricCode = value; }
public BigDecimal getMinValue() { return minValue; }
- public void setMinValue(BigDecimal minValue) { this.minValue = minValue; }
+ public void setMinValue(BigDecimal value) { minValue = value; }
public BigDecimal getMaxValue() { return maxValue; }
- public void setMaxValue(BigDecimal maxValue) { this.maxValue = maxValue; }
+ public void setMaxValue(BigDecimal value) { maxValue = value; }
+ public String getUnit() { return unit; }
+ public void setUnit(String value) { unit = value; }
+ public String getSeverity() { return severity; }
+ public void setSeverity(String value) { severity = value; }
public String getDelFlag() { return delFlag; }
- public void setDelFlag(String delFlag) { this.delFlag = delFlag; }
+ public void setDelFlag(String value) { delFlag = value; }
}
--
Gitblit v1.7.1