public class DescribeAlarmPoliciesRequest extends AbstractModel
Constructor and Description |
---|
DescribeAlarmPoliciesRequest() |
DescribeAlarmPoliciesRequest(DescribeAlarmPoliciesRequest 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 |
getDimensions()
Get The alarm object list, which is a JSON string.
|
Long[] |
getEnable()
Get Filter by alarm status.
|
String |
getField()
Get Sort by field.
|
String |
getModule()
Get Value fixed at "monitor"
|
String[] |
getMonitorTypes()
Get Filter by monitor type.
|
String[] |
getNamespaces()
Get Filter by namespace.
|
Long |
getNotBindingNoticeRule()
Get If `1` is passed in, alarm policies with no notification rules configured are queried.
|
String[] |
getNoticeIds()
Get ID list of the notification template, which can be obtained by querying the notification template list.
|
String |
getOrder()
Get Sort order.
|
Long |
getPageNumber()
Get Page number starting from 1.
|
Long |
getPageSize()
Get Number of entries per page.
|
String |
getPolicyName()
Get Fuzzy search by policy name
|
String[] |
getPolicyType()
Get Filter by default policy.
|
Long[] |
getProjectIds()
Get ID array of the policy project, which can be viewed on the following page:
[Project Management](https://console.cloud.tencent.com/project)
|
Long[] |
getReceiverGroups()
Get Search by recipient group.
|
Long[] |
getReceiverUids()
Get Search by recipient.
|
String[] |
getRuleTypes()
Get Filter by trigger condition.
|
void |
setDimensions(String Dimensions)
Set The alarm object list, which is a JSON string.
|
void |
setEnable(Long[] Enable)
Set Filter by alarm status.
|
void |
setField(String Field)
Set Sort by field.
|
void |
setModule(String Module)
Set Value fixed at "monitor"
|
void |
setMonitorTypes(String[] MonitorTypes)
Set Filter by monitor type.
|
void |
setNamespaces(String[] Namespaces)
Set Filter by namespace.
|
void |
setNotBindingNoticeRule(Long NotBindingNoticeRule)
Set If `1` is passed in, alarm policies with no notification rules configured are queried.
|
void |
setNoticeIds(String[] NoticeIds)
Set ID list of the notification template, which can be obtained by querying the notification template list.
|
void |
setOrder(String Order)
Set Sort order.
|
void |
setPageNumber(Long PageNumber)
Set Page number starting from 1.
|
void |
setPageSize(Long PageSize)
Set Number of entries per page.
|
void |
setPolicyName(String PolicyName)
Set Fuzzy search by policy name
|
void |
setPolicyType(String[] PolicyType)
Set Filter by default policy.
|
void |
setProjectIds(Long[] ProjectIds)
Set ID array of the policy project, which can be viewed on the following page:
[Project Management](https://console.cloud.tencent.com/project)
|
void |
setReceiverGroups(Long[] ReceiverGroups)
Set Search by recipient group.
|
void |
setReceiverUids(Long[] ReceiverUids)
Set Search by recipient.
|
void |
setRuleTypes(String[] RuleTypes)
Set Filter by trigger condition.
|
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 DescribeAlarmPoliciesRequest()
public DescribeAlarmPoliciesRequest(DescribeAlarmPoliciesRequest source)
public String getModule()
public void setModule(String Module)
Module
- Value fixed at "monitor"public Long getPageNumber()
public void setPageNumber(Long PageNumber)
PageNumber
- Page number starting from 1. Default value: 1public Long getPageSize()
public void setPageSize(Long PageSize)
PageSize
- Number of entries per page. Value range: 1–100. Default value: 20public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName
- Fuzzy search by policy namepublic String[] getMonitorTypes()
public void setMonitorTypes(String[] MonitorTypes)
MonitorTypes
- Filter by monitor type. Valid values: MT_QCE (Tencent Cloud service monitoring). If this parameter is left empty, all will be queried by defaultpublic String[] getNamespaces()
public void setNamespaces(String[] Namespaces)
Namespaces
- Filter by namespace. For the values of different policy types, please see:
[Policy Type List](https://intl.cloud.tencent.com/document/product/248/50397?from_cn_redirect=1)public String getDimensions()
public void setDimensions(String Dimensions)
Dimensions
- The alarm object list, which is a JSON string. The outer array corresponds to multiple instances, and the inner array is the dimension of an object. For example, “CVM - Basic Monitor” can be written as:
`[ {"Dimensions": {"unInstanceId": "ins-qr8d555g"}}, {"Dimensions": {"unInstanceId": "ins-qr8d555h"}} ]`
You can also refer to the “Example 2” below.
For more information on the parameter samples of different Tencent Cloud services, see [Product Policy Type and Dimension Information](https://intl.cloud.tencent.com/document/product/248/50397?from_cn_redirect=1).public Long[] getReceiverUids()
public void setReceiverUids(Long[] ReceiverUids)
ReceiverUids
- Search by recipient. You can get the user list with the API [ListUsers](https://intl.cloud.tencent.com/document/product/598/34587?from_cn_redirect=1) in “Cloud Access Management” or query the sub-user information with the API [GetUser](https://intl.cloud.tencent.com/document/product/598/34590?from_cn_redirect=1). The `Uid` field in the returned result should be entered here.public Long[] getReceiverGroups()
public void setReceiverGroups(Long[] ReceiverGroups)
ReceiverGroups
- Search by recipient group. You can get the user group list with the API [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) in “Cloud Access Management” or query the user group list where a sub-user is in with the API [ListGroupsForUser](https://intl.cloud.tencent.com/document/product/598/34588?from_cn_redirect=1). The `GroupId` field in the returned result should be entered here.public String[] getPolicyType()
public void setPolicyType(String[] PolicyType)
PolicyType
- Filter by default policy. Valid values: DEFAULT (display default policy), NOT_DEFAULT (display non-default policies). If this parameter is left empty, all policies will be displayedpublic String getField()
public void setField(String Field)
Field
- Sort by field. For example, to sort by the last modification time, use Field: "UpdateTime".public String getOrder()
public void setOrder(String Order)
Order
- Sort order. Valid values: ASC (ascending), DESC (descending)public Long[] getProjectIds()
public void setProjectIds(Long[] ProjectIds)
ProjectIds
- ID array of the policy project, which can be viewed on the following page:
[Project Management](https://console.cloud.tencent.com/project)public String[] getNoticeIds()
public void setNoticeIds(String[] NoticeIds)
NoticeIds
- ID list of the notification template, which can be obtained by querying the notification template list.
It can be queried with the API [DescribeAlarmNotices](https://intl.cloud.tencent.com/document/product/248/51280?from_cn_redirect=1).public String[] getRuleTypes()
public void setRuleTypes(String[] RuleTypes)
RuleTypes
- Filter by trigger condition. Valid values: STATIC (display policies with static threshold), DYNAMIC (display policies with dynamic threshold). If this parameter is left empty, all policies will be displayedpublic Long[] getEnable()
public void setEnable(Long[] Enable)
Enable
- Filter by alarm status. Valid values: [1]: enabled; [0]: disabled; [0, 1]: allpublic Long getNotBindingNoticeRule()
public void setNotBindingNoticeRule(Long NotBindingNoticeRule)
NotBindingNoticeRule
- If `1` is passed in, alarm policies with no notification rules configured are queried. If it is left empty or other values are passed in, all alarm policies are queried.Copyright © 2021. All rights reserved.