/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.homecare.alarmjob.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 告警工单实体类
 *
 * @author BladeX
 * @since 2020-10-17
 */
@Data
@TableName("yc_alarm_job")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AlarmJob对象", description = "告警工单")
public class AlarmJob extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 告警ID
	*/
		@ApiModelProperty(value = "告警ID")
		private String alarmId;
	/**
	* 告警原因
	*/
		@ApiModelProperty(value = "告警原因")
		private String name;
	/**
	* 设备编号
	*/
		@ApiModelProperty(value = "设备编号")
		private String deviceId;
	/**
	* 设备名称
	*/
		@ApiModelProperty(value = "设备名称")
		private String deviceName;
	/**
	* 告警时间
	*/
		@ApiModelProperty(value = "告警时间")
		private LocalDateTime recordTime;
	/**
	* 设备类型
	*/
		@ApiModelProperty(value = "设备类型")
		private Integer deviceType;
	/**
	* 设备类型名称
	*/
		@ApiModelProperty(value = "设备类型名称")
		private String typeName;
	/**
	* 工单id
	*/
		@ApiModelProperty(value = "工单id")
		private String orderId;
	/**
	* 告警次数
	*/
		@ApiModelProperty(value = "告警次数")
		private String alarmTimes;
	/**
	* 告警类型, 0-业务告警；1-设备告警
	*/
		@ApiModelProperty(value = "告警类型, 0-业务告警；1-设备告警")
		private Integer alarmType;
	/**
	* 告警地址
	*/
		@ApiModelProperty(value = "告警地址")
		private String alarmPosition;
	/**
	* 处理人
	*/
		@ApiModelProperty(value = "处理人")
		private String handler;
	/**
	* 联系电话
	*/
		@ApiModelProperty(value = "联系电话")
		private Integer phone;
	/**
	* 工单状态
	*/
		@ApiModelProperty(value = "工单状态")
		private Integer jobStatus;
	/**
	* 告警数据字段，见附录
	*/
		@ApiModelProperty(value = "告警数据字段，见附录")
		private String metric;
	/**
	* 告警等级 1:严重告警,2:警告告警,3:提示告警
	*/
		@ApiModelProperty(value = "告警等级 1:严重告警,2:警告告警,3:提示告警")
		private String level;


}
