public class CreateAlarmPolicyRequest extends AbstractModel
Constructor and Description |
---|
CreateAlarmPolicyRequest() |
CreateAlarmPolicyRequest(CreateAlarmPolicyRequest 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 |
---|---|
AlarmPolicyCondition |
getCondition()
Get 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
|
Long |
getConditionTemplateId()
Get 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。
|
Long |
getEnable()
Get 是否启用 0=停用 1=启用,可不传 默认为1
|
AlarmPolicyEventCondition |
getEventCondition()
Get 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。
|
AlarmPolicyFilter |
getFilter()
Get 全局过滤条件
|
String[] |
getGroupBy()
Get 聚合维度列表,指定按哪些维度 key 来做 group by
|
String |
getModule()
Get 固定值,为"monitor"
|
String |
getMonitorType()
Get 监控类型 MT_QCE=云产品监控
|
String |
getNamespace()
Get 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
|
String[] |
getNoticeIds()
Get 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得
|
String |
getPolicyName()
Get 策略名称,不超过20字符
|
Long |
getProjectId()
Get 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。
|
String |
getRemark()
Get 备注,不超过100字符,仅支持中英文、数字、下划线、-
|
AlarmPolicyTriggerTask[] |
getTriggerTasks()
Get 触发任务列表
|
void |
setCondition(AlarmPolicyCondition Condition)
Set 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。
|
void |
setConditionTemplateId(Long ConditionTemplateId)
Set 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。
|
void |
setEnable(Long Enable)
Set 是否启用 0=停用 1=启用,可不传 默认为1
|
void |
setEventCondition(AlarmPolicyEventCondition EventCondition)
Set 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。
|
void |
setFilter(AlarmPolicyFilter Filter)
Set 全局过滤条件
|
void |
setGroupBy(String[] GroupBy)
Set 聚合维度列表,指定按哪些维度 key 来做 group by
|
void |
setModule(String Module)
Set 固定值,为"monitor"
|
void |
setMonitorType(String MonitorType)
Set 监控类型 MT_QCE=云产品监控
|
void |
setNamespace(String Namespace)
Set 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
|
void |
setNoticeIds(String[] NoticeIds)
Set 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得
|
void |
setPolicyName(String PolicyName)
Set 策略名称,不超过20字符
|
void |
setProjectId(Long ProjectId)
Set 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。
|
void |
setRemark(String Remark)
Set 备注,不超过100字符,仅支持中英文、数字、下划线、-
|
void |
setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)
Set 触发任务列表
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateAlarmPolicyRequest()
public CreateAlarmPolicyRequest(CreateAlarmPolicyRequest source)
public String getModule()
public void setModule(String Module)
Module
- 固定值,为"monitor"public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName
- 策略名称,不超过20字符public String getMonitorType()
public void setMonitorType(String MonitorType)
MonitorType
- 监控类型 MT_QCE=云产品监控public String getNamespace()
public void setNamespace(String Namespace)
Namespace
- 告警策略类型,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_devicepublic String getRemark()
public void setRemark(String Remark)
Remark
- 备注,不超过100字符,仅支持中英文、数字、下划线、-public Long getEnable()
public void setEnable(Long Enable)
Enable
- 是否启用 0=停用 1=启用,可不传 默认为1public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- 项目 Id,对于区分项目的产品必须传入非 -1 的值。 -1=无项目 0=默认项目,如不传 默认为 -1。支持的项目 Id 可以在控制台 [账号中心-项目管理](https://console.cloud.tencent.com/project) 中查看。public Long getConditionTemplateId()
public void setConditionTemplateId(Long ConditionTemplateId)
ConditionTemplateId
- 触发条件模板 Id,该参数与 Condition 参数二选一。如果策略绑定触发条件模板,则传该参数;否则不传该参数,而是传 Condition 参数。触发条件模板 Id 可以从 [DescribeConditionsTemplateList](https://cloud.tencent.com/document/api/248/70250) 接口获取。public AlarmPolicyCondition getCondition()
public void setCondition(AlarmPolicyCondition Condition)
Condition
- 指标触发条件,支持的指标可以从 [DescribeAlarmMetrics](https://cloud.tencent.com/document/product/248/51283) 查询。public AlarmPolicyEventCondition getEventCondition()
public void setEventCondition(AlarmPolicyEventCondition EventCondition)
EventCondition
- 事件触发条件,支持的事件可以从 [DescribeAlarmEvents](https://cloud.tencent.com/document/product/248/51284) 查询。public String[] getNoticeIds()
public void setNoticeIds(String[] NoticeIds)
NoticeIds
- 通知规则 Id 列表,由 [DescribeAlarmNotices](https://cloud.tencent.com/document/product/248/51280) 获得public AlarmPolicyTriggerTask[] getTriggerTasks()
public void setTriggerTasks(AlarmPolicyTriggerTask[] TriggerTasks)
TriggerTasks
- 触发任务列表public AlarmPolicyFilter getFilter()
public void setFilter(AlarmPolicyFilter Filter)
Filter
- 全局过滤条件public String[] getGroupBy()
public void setGroupBy(String[] GroupBy)
GroupBy
- 聚合维度列表,指定按哪些维度 key 来做 group byCopyright © 2022. All rights reserved.