public class AlertHistoryRecord extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| AlertHistoryRecord() | 
| AlertHistoryRecord(AlertHistoryRecord source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAlarmId()Get 告警策略ID | 
| Long | getAlarmLevel()Get 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) | 
| String | getAlarmName()Get 告警策略名称 | 
| Long | getAlarmPeriod()Get 告警通知发送频率,单位为分钟(min) | 
| Long | getCreateTime()Get 告警发生时间,毫秒级Unix时间戳(ms) | 
| Long | getDuration()Get 告警持续时间,单位为分钟(min) | 
| GroupTriggerConditionInfo[] | getGroupTriggerCondition()Get 告警分组触发时对应的分组信息 | 
| Long | getMonitorObjectType()Get 监控对象类型。
0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 | 
| AlertHistoryNotice[] | getNotices()Get 通知渠道组 | 
| String | getRecordId()Get 告警历史ID | 
| String | getRegion()Get 监控对象所属地域 | 
| Long | getSendType()Get 通知渠道类型,0默认代表cls内部通知渠道,1代表云监控通知渠道 | 
| Long | getStatus()Get 告警状态,0代表未恢复,1代表已恢复,2代表已失效 | 
| String | getTopicId()Get 监控对象ID | 
| String | getTopicName()Get 监控对象名称 | 
| String | getTrigger()Get 触发条件 | 
| Long | getTriggerCount()Get 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警 | 
| void | setAlarmId(String AlarmId)Set 告警策略ID | 
| void | setAlarmLevel(Long AlarmLevel)Set 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) | 
| void | setAlarmName(String AlarmName)Set 告警策略名称 | 
| void | setAlarmPeriod(Long AlarmPeriod)Set 告警通知发送频率,单位为分钟(min) | 
| void | setCreateTime(Long CreateTime)Set 告警发生时间,毫秒级Unix时间戳(ms) | 
| void | setDuration(Long Duration)Set 告警持续时间,单位为分钟(min) | 
| void | setGroupTriggerCondition(GroupTriggerConditionInfo[] GroupTriggerCondition)Set 告警分组触发时对应的分组信息 | 
| void | setMonitorObjectType(Long MonitorObjectType)Set 监控对象类型。
0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 | 
| void | setNotices(AlertHistoryNotice[] Notices)Set 通知渠道组 | 
| void | setRecordId(String RecordId)Set 告警历史ID | 
| void | setRegion(String Region)Set 监控对象所属地域 | 
| void | setSendType(Long SendType)Set 通知渠道类型,0默认代表cls内部通知渠道,1代表云监控通知渠道 | 
| void | setStatus(Long Status)Set 告警状态,0代表未恢复,1代表已恢复,2代表已失效 | 
| void | setTopicId(String TopicId)Set 监控对象ID | 
| void | setTopicName(String TopicName)Set 监控对象名称 | 
| void | setTrigger(String Trigger)Set 触发条件 | 
| void | setTriggerCount(Long TriggerCount)Set 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic AlertHistoryRecord()
public AlertHistoryRecord(AlertHistoryRecord source)
public String getRecordId()
public void setRecordId(String RecordId)
RecordId - 告警历史IDpublic String getAlarmId()
public void setAlarmId(String AlarmId)
AlarmId - 告警策略IDpublic String getAlarmName()
public void setAlarmName(String AlarmName)
AlarmName - 告警策略名称public String getTopicId()
public void setTopicId(String TopicId)
TopicId - 监控对象IDpublic String getTopicName()
public void setTopicName(String TopicName)
TopicName - 监控对象名称public String getRegion()
public void setRegion(String Region)
Region - 监控对象所属地域public String getTrigger()
public void setTrigger(String Trigger)
Trigger - 触发条件public Long getTriggerCount()
public void setTriggerCount(Long TriggerCount)
TriggerCount - 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警public Long getAlarmPeriod()
public void setAlarmPeriod(Long AlarmPeriod)
AlarmPeriod - 告警通知发送频率,单位为分钟(min)public AlertHistoryNotice[] getNotices()
public void setNotices(AlertHistoryNotice[] Notices)
Notices - 通知渠道组public Long getDuration()
public void setDuration(Long Duration)
Duration - 告警持续时间,单位为分钟(min)public Long getStatus()
public void setStatus(Long Status)
Status - 告警状态,0代表未恢复,1代表已恢复,2代表已失效public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime - 告警发生时间,毫秒级Unix时间戳(ms)public GroupTriggerConditionInfo[] getGroupTriggerCondition()
public void setGroupTriggerCondition(GroupTriggerConditionInfo[] GroupTriggerCondition)
GroupTriggerCondition - 告警分组触发时对应的分组信息public Long getAlarmLevel()
public void setAlarmLevel(Long AlarmLevel)
AlarmLevel - 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical)public Long getMonitorObjectType()
public void setMonitorObjectType(Long MonitorObjectType)
MonitorObjectType - 监控对象类型。
0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。public Long getSendType()
public void setSendType(Long SendType)
SendType - 通知渠道类型,0默认代表cls内部通知渠道,1代表云监控通知渠道Copyright © 2025. All rights reserved.