Class AlertHistoryRecord
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cls.v20201016.models.AlertHistoryRecord
-
public class AlertHistoryRecord extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlarmId()Get 告警策略IDLonggetAlarmLevel()Get 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) 注意:此字段可能返回 null,表示取不到有效值。StringgetAlarmName()Get 告警策略名称LonggetAlarmPeriod()Get 告警通知发送频率,单位为分钟LonggetCreateTime()Get 告警发生时间,毫秒级Unix时间戳LonggetDuration()Get 告警持续时间,单位为分钟GroupTriggerConditionInfo[]getGroupTriggerCondition()Get 告警分组触发时对应的分组信息 注意:此字段可能返回 null,表示取不到有效值。LonggetMonitorObjectType()Get 监控对象类型。 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 注意:此字段可能返回 null,表示取不到有效值。AlertHistoryNotice[]getNotices()Get 通知渠道组StringgetRecordId()Get 告警历史IDStringgetRegion()Get 监控对象所属地域LonggetStatus()Get 告警状态,0代表未恢复,1代表已恢复,2代表已失效StringgetTopicId()Get 监控对象IDStringgetTopicName()Get 监控对象名称StringgetTrigger()Get 触发条件LonggetTriggerCount()Get 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警voidsetAlarmId(String AlarmId)Set 告警策略IDvoidsetAlarmLevel(Long AlarmLevel)Set 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) 注意:此字段可能返回 null,表示取不到有效值。voidsetAlarmName(String AlarmName)Set 告警策略名称voidsetAlarmPeriod(Long AlarmPeriod)Set 告警通知发送频率,单位为分钟voidsetCreateTime(Long CreateTime)Set 告警发生时间,毫秒级Unix时间戳voidsetDuration(Long Duration)Set 告警持续时间,单位为分钟voidsetGroupTriggerCondition(GroupTriggerConditionInfo[] GroupTriggerCondition)Set 告警分组触发时对应的分组信息 注意:此字段可能返回 null,表示取不到有效值。voidsetMonitorObjectType(Long MonitorObjectType)Set 监控对象类型。 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 注意:此字段可能返回 null,表示取不到有效值。voidsetNotices(AlertHistoryNotice[] Notices)Set 通知渠道组voidsetRecordId(String RecordId)Set 告警历史IDvoidsetRegion(String Region)Set 监控对象所属地域voidsetStatus(Long Status)Set 告警状态,0代表未恢复,1代表已恢复,2代表已失效voidsetTopicId(String TopicId)Set 监控对象IDvoidsetTopicName(String TopicName)Set 监控对象名称voidsetTrigger(String Trigger)Set 触发条件voidsetTriggerCount(Long TriggerCount)Set 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
AlertHistoryRecord
public AlertHistoryRecord()
-
AlertHistoryRecord
public 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.
-
-
Method Detail
-
getRecordId
public String getRecordId()
Get 告警历史ID- Returns:
- RecordId 告警历史ID
-
setRecordId
public void setRecordId(String RecordId)
Set 告警历史ID- Parameters:
RecordId- 告警历史ID
-
getAlarmId
public String getAlarmId()
Get 告警策略ID- Returns:
- AlarmId 告警策略ID
-
setAlarmId
public void setAlarmId(String AlarmId)
Set 告警策略ID- Parameters:
AlarmId- 告警策略ID
-
getAlarmName
public String getAlarmName()
Get 告警策略名称- Returns:
- AlarmName 告警策略名称
-
setAlarmName
public void setAlarmName(String AlarmName)
Set 告警策略名称- Parameters:
AlarmName- 告警策略名称
-
getTopicId
public String getTopicId()
Get 监控对象ID- Returns:
- TopicId 监控对象ID
-
setTopicId
public void setTopicId(String TopicId)
Set 监控对象ID- Parameters:
TopicId- 监控对象ID
-
getTopicName
public String getTopicName()
Get 监控对象名称- Returns:
- TopicName 监控对象名称
-
setTopicName
public void setTopicName(String TopicName)
Set 监控对象名称- Parameters:
TopicName- 监控对象名称
-
getRegion
public String getRegion()
Get 监控对象所属地域- Returns:
- Region 监控对象所属地域
-
setRegion
public void setRegion(String Region)
Set 监控对象所属地域- Parameters:
Region- 监控对象所属地域
-
getTrigger
public String getTrigger()
Get 触发条件- Returns:
- Trigger 触发条件
-
setTrigger
public void setTrigger(String Trigger)
Set 触发条件- Parameters:
Trigger- 触发条件
-
getTriggerCount
public Long getTriggerCount()
Get 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警- Returns:
- TriggerCount 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警
-
setTriggerCount
public void setTriggerCount(Long TriggerCount)
Set 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警- Parameters:
TriggerCount- 持续周期,持续满足触发条件TriggerCount个周期后,再进行告警
-
getAlarmPeriod
public Long getAlarmPeriod()
Get 告警通知发送频率,单位为分钟- Returns:
- AlarmPeriod 告警通知发送频率,单位为分钟
-
setAlarmPeriod
public void setAlarmPeriod(Long AlarmPeriod)
Set 告警通知发送频率,单位为分钟- Parameters:
AlarmPeriod- 告警通知发送频率,单位为分钟
-
getNotices
public AlertHistoryNotice[] getNotices()
Get 通知渠道组- Returns:
- Notices 通知渠道组
-
setNotices
public void setNotices(AlertHistoryNotice[] Notices)
Set 通知渠道组- Parameters:
Notices- 通知渠道组
-
getDuration
public Long getDuration()
Get 告警持续时间,单位为分钟- Returns:
- Duration 告警持续时间,单位为分钟
-
setDuration
public void setDuration(Long Duration)
Set 告警持续时间,单位为分钟- Parameters:
Duration- 告警持续时间,单位为分钟
-
getStatus
public Long getStatus()
Get 告警状态,0代表未恢复,1代表已恢复,2代表已失效- Returns:
- Status 告警状态,0代表未恢复,1代表已恢复,2代表已失效
-
setStatus
public void setStatus(Long Status)
Set 告警状态,0代表未恢复,1代表已恢复,2代表已失效- Parameters:
Status- 告警状态,0代表未恢复,1代表已恢复,2代表已失效
-
getCreateTime
public Long getCreateTime()
Get 告警发生时间,毫秒级Unix时间戳- Returns:
- CreateTime 告警发生时间,毫秒级Unix时间戳
-
setCreateTime
public void setCreateTime(Long CreateTime)
Set 告警发生时间,毫秒级Unix时间戳- Parameters:
CreateTime- 告警发生时间,毫秒级Unix时间戳
-
getGroupTriggerCondition
public GroupTriggerConditionInfo[] getGroupTriggerCondition()
Get 告警分组触发时对应的分组信息 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- GroupTriggerCondition 告警分组触发时对应的分组信息 注意:此字段可能返回 null,表示取不到有效值。
-
setGroupTriggerCondition
public void setGroupTriggerCondition(GroupTriggerConditionInfo[] GroupTriggerCondition)
Set 告警分组触发时对应的分组信息 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
GroupTriggerCondition- 告警分组触发时对应的分组信息 注意:此字段可能返回 null,表示取不到有效值。
-
getAlarmLevel
public Long getAlarmLevel()
Get 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- AlarmLevel 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) 注意:此字段可能返回 null,表示取不到有效值。
-
setAlarmLevel
public void setAlarmLevel(Long AlarmLevel)
Set 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
AlarmLevel- 告警级别,0代表警告(Warn),1代表提醒(Info),2代表紧急 (Critical) 注意:此字段可能返回 null,表示取不到有效值。
-
getMonitorObjectType
public Long getMonitorObjectType()
Get 监控对象类型。 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- MonitorObjectType 监控对象类型。 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 注意:此字段可能返回 null,表示取不到有效值。
-
setMonitorObjectType
public void setMonitorObjectType(Long MonitorObjectType)
Set 监控对象类型。 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
MonitorObjectType- 监控对象类型。 0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。 注意:此字段可能返回 null,表示取不到有效值。
-
-