public class DescribeAlarmHistoriesRequest extends AbstractModel
Constructor and Description |
---|
DescribeAlarmHistoriesRequest() |
DescribeAlarmHistoriesRequest(DescribeAlarmHistoriesRequest 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 |
getAlarmObject()
Get 根据告警对象过滤 字符串模糊搜索
|
String[] |
getAlarmStatus()
Get 根据告警状态过滤 ALARM=未恢复 OK=已恢复 NO_CONF=已失效 NO_DATA=数据不足,不选默认查所有
|
String |
getContent()
Get 根据告警内容模糊搜索
|
Long |
getEndTime()
Get 结束时间,默认当前时间戳。对应 `FirstOccurTime` 告警首次出现时间,告警历史的 `FirstOccurTime` 早于 `EndTime` 才可能被搜索到。
|
Long[] |
getInstanceGroupIds()
Get 根据实例组ID过滤
|
String[] |
getMetricNames()
Get 根据指标名过滤
|
String |
getModule()
Get 固定值,为"monitor"
|
String[] |
getMonitorTypes()
Get 根据监控类型过滤 不选默认查所有类型 "MT_QCE"=云产品监控
|
MonitorTypeNamespace[] |
getNamespaces()
Get 根据策略类型过滤,策略类型是监控类型之下的概念,在这里两者都需要传入,例如 `[{"MonitorType": "MT_QCE", "Namespace": "cvm_device"}]`
可使用 [查询所有名字空间 DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 接口查询
|
String |
getOrder()
Get 默认按首次出现时间倒序排列 "ASC"=正序 "DESC"=逆序
|
Long |
getPageNumber()
Get 页数,从 1 开始计数,默认 1
|
Long |
getPageSize()
Get 每页的数量,取值1~100,默认20
|
String[] |
getPolicyIds()
Get 根据告警策略 Id 列表搜索
|
String |
getPolicyName()
Get 根据策略名称模糊搜索
|
Long[] |
getProjectIds()
Get 根据项目ID过滤,-1=无项目 0=默认项目
可在此页面查询 [项目管理](https://console.cloud.tencent.com/project)
|
Long[] |
getReceiverGroups()
Get 根据接收组搜索,可以使用“访问管理”的 [查询用户组列表 ListGroups](https://cloud.tencent.com/document/product/598/34589) 接口获取用户组列表 或 [列出用户关联的用户组 ListGroupsForUser](https://cloud.tencent.com/document/product/598/34588) 查询某个子用户所在的用户组列表 ,此处填入返回结果中的 `GroupId ` 字段
|
Long[] |
getReceiverUids()
Get 根据接收人搜索,可以使用“访问管理”的 [拉取子用户 ListUsers](https://cloud.tencent.com/document/product/598/34587) 接口获取用户列表 或 [查询子用户 GetUser](https://cloud.tencent.com/document/product/598/34590) 接口查询子用户详情,此处填入返回结果中的 `Uid` 字段
|
Long |
getStartTime()
Get 起始时间,默认一天前的时间戳。对应 `FirstOccurTime` 告警首次出现时间,告警历史的 `FirstOccurTime` 晚于 `StartTime` 才可能被搜索到。
|
void |
setAlarmObject(String AlarmObject)
Set 根据告警对象过滤 字符串模糊搜索
|
void |
setAlarmStatus(String[] AlarmStatus)
Set 根据告警状态过滤 ALARM=未恢复 OK=已恢复 NO_CONF=已失效 NO_DATA=数据不足,不选默认查所有
|
void |
setContent(String Content)
Set 根据告警内容模糊搜索
|
void |
setEndTime(Long EndTime)
Set 结束时间,默认当前时间戳。对应 `FirstOccurTime` 告警首次出现时间,告警历史的 `FirstOccurTime` 早于 `EndTime` 才可能被搜索到。
|
void |
setInstanceGroupIds(Long[] InstanceGroupIds)
Set 根据实例组ID过滤
|
void |
setMetricNames(String[] MetricNames)
Set 根据指标名过滤
|
void |
setModule(String Module)
Set 固定值,为"monitor"
|
void |
setMonitorTypes(String[] MonitorTypes)
Set 根据监控类型过滤 不选默认查所有类型 "MT_QCE"=云产品监控
|
void |
setNamespaces(MonitorTypeNamespace[] Namespaces)
Set 根据策略类型过滤,策略类型是监控类型之下的概念,在这里两者都需要传入,例如 `[{"MonitorType": "MT_QCE", "Namespace": "cvm_device"}]`
可使用 [查询所有名字空间 DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 接口查询
|
void |
setOrder(String Order)
Set 默认按首次出现时间倒序排列 "ASC"=正序 "DESC"=逆序
|
void |
setPageNumber(Long PageNumber)
Set 页数,从 1 开始计数,默认 1
|
void |
setPageSize(Long PageSize)
Set 每页的数量,取值1~100,默认20
|
void |
setPolicyIds(String[] PolicyIds)
Set 根据告警策略 Id 列表搜索
|
void |
setPolicyName(String PolicyName)
Set 根据策略名称模糊搜索
|
void |
setProjectIds(Long[] ProjectIds)
Set 根据项目ID过滤,-1=无项目 0=默认项目
可在此页面查询 [项目管理](https://console.cloud.tencent.com/project)
|
void |
setReceiverGroups(Long[] ReceiverGroups)
Set 根据接收组搜索,可以使用“访问管理”的 [查询用户组列表 ListGroups](https://cloud.tencent.com/document/product/598/34589) 接口获取用户组列表 或 [列出用户关联的用户组 ListGroupsForUser](https://cloud.tencent.com/document/product/598/34588) 查询某个子用户所在的用户组列表 ,此处填入返回结果中的 `GroupId ` 字段
|
void |
setReceiverUids(Long[] ReceiverUids)
Set 根据接收人搜索,可以使用“访问管理”的 [拉取子用户 ListUsers](https://cloud.tencent.com/document/product/598/34587) 接口获取用户列表 或 [查询子用户 GetUser](https://cloud.tencent.com/document/product/598/34590) 接口查询子用户详情,此处填入返回结果中的 `Uid` 字段
|
void |
setStartTime(Long StartTime)
Set 起始时间,默认一天前的时间戳。对应 `FirstOccurTime` 告警首次出现时间,告警历史的 `FirstOccurTime` 晚于 `StartTime` 才可能被搜索到。
|
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 DescribeAlarmHistoriesRequest()
public DescribeAlarmHistoriesRequest(DescribeAlarmHistoriesRequest source)
public String getModule()
public void setModule(String Module)
Module
- 固定值,为"monitor"public Long getPageNumber()
public void setPageNumber(Long PageNumber)
PageNumber
- 页数,从 1 开始计数,默认 1public Long getPageSize()
public void setPageSize(Long PageSize)
PageSize
- 每页的数量,取值1~100,默认20public String getOrder()
public void setOrder(String Order)
Order
- 默认按首次出现时间倒序排列 "ASC"=正序 "DESC"=逆序public Long getStartTime()
public void setStartTime(Long StartTime)
StartTime
- 起始时间,默认一天前的时间戳。对应 `FirstOccurTime` 告警首次出现时间,告警历史的 `FirstOccurTime` 晚于 `StartTime` 才可能被搜索到。public Long getEndTime()
public void setEndTime(Long EndTime)
EndTime
- 结束时间,默认当前时间戳。对应 `FirstOccurTime` 告警首次出现时间,告警历史的 `FirstOccurTime` 早于 `EndTime` 才可能被搜索到。public String[] getMonitorTypes()
public void setMonitorTypes(String[] MonitorTypes)
MonitorTypes
- 根据监控类型过滤 不选默认查所有类型 "MT_QCE"=云产品监控public String getAlarmObject()
public void setAlarmObject(String AlarmObject)
AlarmObject
- 根据告警对象过滤 字符串模糊搜索public String[] getAlarmStatus()
public void setAlarmStatus(String[] AlarmStatus)
AlarmStatus
- 根据告警状态过滤 ALARM=未恢复 OK=已恢复 NO_CONF=已失效 NO_DATA=数据不足,不选默认查所有public Long[] getProjectIds()
public void setProjectIds(Long[] ProjectIds)
ProjectIds
- 根据项目ID过滤,-1=无项目 0=默认项目
可在此页面查询 [项目管理](https://console.cloud.tencent.com/project)public Long[] getInstanceGroupIds()
public void setInstanceGroupIds(Long[] InstanceGroupIds)
InstanceGroupIds
- 根据实例组ID过滤public MonitorTypeNamespace[] getNamespaces()
public void setNamespaces(MonitorTypeNamespace[] Namespaces)
Namespaces
- 根据策略类型过滤,策略类型是监控类型之下的概念,在这里两者都需要传入,例如 `[{"MonitorType": "MT_QCE", "Namespace": "cvm_device"}]`
可使用 [查询所有名字空间 DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 接口查询public String[] getMetricNames()
public void setMetricNames(String[] MetricNames)
MetricNames
- 根据指标名过滤public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName
- 根据策略名称模糊搜索public String getContent()
public void setContent(String Content)
Content
- 根据告警内容模糊搜索public Long[] getReceiverUids()
public void setReceiverUids(Long[] ReceiverUids)
ReceiverUids
- 根据接收人搜索,可以使用“访问管理”的 [拉取子用户 ListUsers](https://cloud.tencent.com/document/product/598/34587) 接口获取用户列表 或 [查询子用户 GetUser](https://cloud.tencent.com/document/product/598/34590) 接口查询子用户详情,此处填入返回结果中的 `Uid` 字段public Long[] getReceiverGroups()
public void setReceiverGroups(Long[] ReceiverGroups)
ReceiverGroups
- 根据接收组搜索,可以使用“访问管理”的 [查询用户组列表 ListGroups](https://cloud.tencent.com/document/product/598/34589) 接口获取用户组列表 或 [列出用户关联的用户组 ListGroupsForUser](https://cloud.tencent.com/document/product/598/34588) 查询某个子用户所在的用户组列表 ,此处填入返回结果中的 `GroupId ` 字段public String[] getPolicyIds()
public void setPolicyIds(String[] PolicyIds)
PolicyIds
- 根据告警策略 Id 列表搜索Copyright © 2021. All rights reserved.