修改告警策略,绑定监测点
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
package com.njcn.process.constant;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import com.njcn.device.pq.pojo.po.DataV;
|
||||
import org.springframework.cglib.beans.BeanMap;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
* Date: 2022/12/7 15:18【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
|
||||
Map<String, Object> map = Maps.newHashMap ( );
|
||||
DataV d = new DataV ( );
|
||||
BeanMap beanMap = BeanMap.create (d);
|
||||
for (Object key : beanMap.keySet ( )) {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
//package com.njcn.process.constant;
|
||||
//
|
||||
//import com.google.common.collect.Maps;
|
||||
//import com.njcn.device.pq.pojo.po.DataV;
|
||||
//import org.springframework.cglib.beans.BeanMap;
|
||||
//
|
||||
//import java.util.Map;
|
||||
//
|
||||
///**
|
||||
// * Description:
|
||||
// * 接口文档访问地址:http://serverIP:port/swagger-ui.html
|
||||
// * Date: 2022/12/7 15:18【需求编号】
|
||||
// *
|
||||
// * @author clam
|
||||
// * @version V1.0.0
|
||||
// */
|
||||
//public class Test {
|
||||
// public static void main(String[] args) {
|
||||
//
|
||||
// Map<String, Object> map = Maps.newHashMap ( );
|
||||
// DataV d = new DataV ( );
|
||||
// BeanMap beanMap = BeanMap.create (d);
|
||||
// for (Object key : beanMap.keySet ( )) {
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
||||
@@ -25,6 +25,10 @@ public class MonitorParam {
|
||||
@NotEmpty(message = "类型不能为空")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "等级 0.自动策略 1.手动策略 2.排他策略")
|
||||
@NotEmpty(message = "等级不能为空")
|
||||
private Integer grade;
|
||||
|
||||
@ApiModelProperty(value = "预警策略/告警策略id")
|
||||
@NotEmpty(message = "策略id集合不能为空")
|
||||
private List<String> alarmId;
|
||||
|
||||
@@ -37,6 +37,10 @@ public class ThsDeptAlarm implements Serializable {
|
||||
@TableField("Alarm_Id")
|
||||
private String alarmId;
|
||||
|
||||
@ApiModelProperty(value = "等级(0:自动策略;1:手动策略;2:排他策略)")
|
||||
@TableField("Grade")
|
||||
private Integer Grade;
|
||||
|
||||
@ApiModelProperty(value = "监测点id")
|
||||
@TableField("Monitor_Id")
|
||||
private String monitorId;
|
||||
|
||||
Reference in New Issue
Block a user