public class CreateAlarmRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateAlarmRequest() |
CreateAlarmRequest(CreateAlarmRequest 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 |
---|---|
Long |
getAlarmLevel()
Get Alarm Level0: Warning (Warn); 1: Reminder (Info); 2: Urgent (Critical).
|
String[] |
getAlarmNoticeIds()
Get List of associated alarm notification templates
|
Long |
getAlarmPeriod()
Get Alarm repeat interval in minutes.
|
AlarmTarget[] |
getAlarmTargets()
Get Monitoring object list
|
AnalysisDimensional[] |
getAnalysis()
Get Multi-Dimensional analysis
|
CallBackInfo |
getCallBack()
Get Custom callback
|
AlarmClassification[] |
getClassifications()
Get Alarms additional classification information listThe number of Classifications elements cannot exceed 20.The Key of Classifications element must not be empty and duplicated, and its length cannot exceed 50 characters, complying with the regular expression ^[a-z]([a-z0-9_]{0,49})$.The Value length of Classifications element cannot exceed 200 characters.
|
String |
getCondition()
Get Trigger ConditionNote:- Condition and AlarmLevel are one set of configurations, MultiConditions is another set of configurations.
|
Boolean |
getEnable()
Get This parameter has been deprecated, please use the Status parameter to control whether to enable the alarm policy.
|
String[] |
getGroupTriggerCondition()
Get Grouping Trigger Conditions.
|
Boolean |
getGroupTriggerStatus()
Get Group trigger status.
|
String |
getMessageTemplate()
Get Custom alarm content
|
Long |
getMonitorObjectType()
Get Monitored Object Type.
|
MonitorTime |
getMonitorTime()
Get Monitoring task running time point
|
MultiCondition[] |
getMultiConditions()
Get Multiple trigger conditions
Note:- Condition and AlarmLevel form one set of configurations, while MultiConditions form another set of configurations, and the two sets are mutually exclusive.
|
String |
getName()
Get Alarm policy name
|
Boolean |
getStatus()
Get Whether to enable the alarm policyThe default value is true
|
Tag[] |
getTags()
Get Tag description list, by specifying this parameter, you can simultaneously bind Tag to the corresponding alarm policy.Supports up to 10 Tag key-value pairs, and the pairs must be unique.
|
Long |
getTriggerCount()
Get Alarm persistence cycle.
|
void |
setAlarmLevel(Long AlarmLevel)
Set Alarm Level0: Warning (Warn); 1: Reminder (Info); 2: Urgent (Critical).
|
void |
setAlarmNoticeIds(String[] AlarmNoticeIds)
Set List of associated alarm notification templates
|
void |
setAlarmPeriod(Long AlarmPeriod)
Set Alarm repeat interval in minutes.
|
void |
setAlarmTargets(AlarmTarget[] AlarmTargets)
Set Monitoring object list
|
void |
setAnalysis(AnalysisDimensional[] Analysis)
Set Multi-Dimensional analysis
|
void |
setCallBack(CallBackInfo CallBack)
Set Custom callback
|
void |
setClassifications(AlarmClassification[] Classifications)
Set Alarms additional classification information listThe number of Classifications elements cannot exceed 20.The Key of Classifications element must not be empty and duplicated, and its length cannot exceed 50 characters, complying with the regular expression ^[a-z]([a-z0-9_]{0,49})$.The Value length of Classifications element cannot exceed 200 characters.
|
void |
setCondition(String Condition)
Set Trigger ConditionNote:- Condition and AlarmLevel are one set of configurations, MultiConditions is another set of configurations.
|
void |
setEnable(Boolean Enable)
Set This parameter has been deprecated, please use the Status parameter to control whether to enable the alarm policy.
|
void |
setGroupTriggerCondition(String[] GroupTriggerCondition)
Set Grouping Trigger Conditions.
|
void |
setGroupTriggerStatus(Boolean GroupTriggerStatus)
Set Group trigger status.
|
void |
setMessageTemplate(String MessageTemplate)
Set Custom alarm content
|
void |
setMonitorObjectType(Long MonitorObjectType)
Set Monitored Object Type.
|
void |
setMonitorTime(MonitorTime MonitorTime)
Set Monitoring task running time point
|
void |
setMultiConditions(MultiCondition[] MultiConditions)
Set Multiple trigger conditions
Note:- Condition and AlarmLevel form one set of configurations, while MultiConditions form another set of configurations, and the two sets are mutually exclusive.
|
void |
setName(String Name)
Set Alarm policy name
|
void |
setStatus(Boolean Status)
Set Whether to enable the alarm policyThe default value is true
|
void |
setTags(Tag[] Tags)
Set Tag description list, by specifying this parameter, you can simultaneously bind Tag to the corresponding alarm policy.Supports up to 10 Tag key-value pairs, and the pairs must be unique.
|
void |
setTriggerCount(Long TriggerCount)
Set Alarm persistence cycle.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateAlarmRequest()
public CreateAlarmRequest(CreateAlarmRequest source)
public String getName()
public void setName(String Name)
Name
- Alarm policy namepublic AlarmTarget[] getAlarmTargets()
public void setAlarmTargets(AlarmTarget[] AlarmTargets)
AlarmTargets
- Monitoring object listpublic MonitorTime getMonitorTime()
public void setMonitorTime(MonitorTime MonitorTime)
MonitorTime
- Monitoring task running time pointpublic Long getTriggerCount()
public void setTriggerCount(Long TriggerCount)
TriggerCount
- Alarm persistence cycle. An alarm will be triggered only after the corresponding trigger condition is met for the number of times specified by `TriggerCount`. Value range: 1–10.public Long getAlarmPeriod()
public void setAlarmPeriod(Long AlarmPeriod)
AlarmPeriod
- Alarm repeat interval in minutes. The value range is 0~1440.public String[] getAlarmNoticeIds()
public void setAlarmNoticeIds(String[] AlarmNoticeIds)
AlarmNoticeIds
- List of associated alarm notification templatespublic String getCondition()
public void setCondition(String Condition)
Condition
- Trigger ConditionNote:- Condition and AlarmLevel are one set of configurations, MultiConditions is another set of configurations. The two sets of configurations are mutually exclusive.public Long getAlarmLevel()
public void setAlarmLevel(Long AlarmLevel)
AlarmLevel
- Alarm Level0: Warning (Warn); 1: Reminder (Info); 2: Urgent (Critical).
Note:- If not specified, the default is 0.
- Condition and AlarmLevel are one set of configurations, MultiConditions is another set of configurations. The two sets of configurations are mutually exclusive.public MultiCondition[] getMultiConditions()
public void setMultiConditions(MultiCondition[] MultiConditions)
MultiConditions
- Multiple trigger conditions
Note:- Condition and AlarmLevel form one set of configurations, while MultiConditions form another set of configurations, and the two sets are mutually exclusive.public Boolean getStatus()
public void setStatus(Boolean Status)
Status
- Whether to enable the alarm policyThe default value is truepublic Boolean getEnable()
public void setEnable(Boolean Enable)
Enable
- This parameter has been deprecated, please use the Status parameter to control whether to enable the alarm policy.public String getMessageTemplate()
public void setMessageTemplate(String MessageTemplate)
MessageTemplate
- Custom alarm contentpublic CallBackInfo getCallBack()
public void setCallBack(CallBackInfo CallBack)
CallBack
- Custom callbackpublic AnalysisDimensional[] getAnalysis()
public void setAnalysis(AnalysisDimensional[] Analysis)
Analysis
- Multi-Dimensional analysispublic Boolean getGroupTriggerStatus()
public void setGroupTriggerStatus(Boolean GroupTriggerStatus)
GroupTriggerStatus
- Group trigger status.
Default value is falsepublic String[] getGroupTriggerCondition()
public void setGroupTriggerCondition(String[] GroupTriggerCondition)
GroupTriggerCondition
- Grouping Trigger Conditions.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Tag description list, by specifying this parameter, you can simultaneously bind Tag to the corresponding alarm policy.Supports up to 10 Tag key-value pairs, and the pairs must be unique.public Long getMonitorObjectType()
public void setMonitorObjectType(Long MonitorObjectType)
MonitorObjectType
- Monitored Object Type. 0: common monitoring objects for execution statements; 1: separately selected monitoring objects for each execution statement.If not specified, the default value is 0.When the value is 1, the number of AlarmTargets Elements (XML) cannot exceed 10, and the Numbers in AlarmTargets must be continuous positive integers starting from 1, without duplication.public AlarmClassification[] getClassifications()
public void setClassifications(AlarmClassification[] Classifications)
Classifications
- Alarms additional classification information listThe number of Classifications elements cannot exceed 20.The Key of Classifications element must not be empty and duplicated, and its length cannot exceed 50 characters, complying with the regular expression ^[a-z]([a-z0-9_]{0,49})$.The Value length of Classifications element cannot exceed 200 characters.Copyright © 2024. All rights reserved.