using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPASmartClient.CustomResource.Pages.Model
{
    [AttributeUsage(AttributeTargets.Property)]
    public class AlarmAttribute : Attribute
    {
        public AlarmAttribute(string Info, AlarmTriggerType alarmTriggerType = AlarmTriggerType.Rising, AlarmLevel alarmLevel = AlarmLevel.一般报警)
        {
            AlarmInfo = Info;
            AlarmType = alarmTriggerType;
            @AlarmLevel = alarmLevel;
        }

        /// <summary>
        /// 报警信息
        /// </summary>
        public string AlarmInfo { get; set; }

        /// <summary>
        /// 告警类型
        /// </summary>
        public AlarmTriggerType AlarmType { get; set; }

        /// <summary>
        /// 告警级别
        /// </summary>
        public AlarmLevel @AlarmLevel { get; set; }
    }
}
