获取告警记录列表-GetAlarmRecordList
获取告警记录列表
Request Parameters
Parameter name | Type | Description | Required |
ProjectId | string | 项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口 | No |
BeginTime | int | 开始时间,时间戳 | No |
EndTime | int | 结束时间,时间戳(当前仅支持获取时间间隔在31天内的告警记录) | No |
Response Elements
Parameter name | Type | Description | Required |
RetCode | int | 操作返回码 | Yes |
Action | string | 操作名称 | Yes |
DataSet | array | 告警记录列表 | Yes |
AlarmRecord
Parameter name | Type | Description | Required |
ResourceId | string | 资源id | Yes |
Region | string | 地域编号 | No |
Zone | string | 可用区编号 | No |
ResourceType | string | 资源类型 | Yes |
Name | string | 资源名称 | Yes |
MetricName | string | 指标名称 | Yes |
OccurrenceTime | int | 告警发生时间 | Yes |
RecoveryTime | int | 告警恢复时间 | Yes |
Recovered | string | 是否恢复 | Yes |
Threshold | float | 阈值 | Yes |
Value | float | 告警值 | Yes |
Request Example
https://api.ucloud.cn/?Action=GetAlarmRecordList &ProjectId=ResDQFGv &BeginTime=923344 &EndTime=5333333
Response Example
{ "DataSet": [ { "ResourceId": "fmLxFLkZ", "ResourceType": "KAInbahB", "Name": "BXNzRSnO", "MetricName": "TaRgQmTH", "OccurrenceTime": 8, "RecoveryTime": 8, "Recovered": "Yes", "Threshold": 7.97572, "Value": 9.51639 }, { "ResourceId": "bisLTIWp", "ResourceType": "WrmwejhS", "Name": "osdailmY", "MetricName": "ASPlEaZc", "OccurrenceTime": 5, "RecoveryTime": 9, "Recovered": "Yes", "Threshold": 6.53413, "Value": 5.54988 }, { "ResourceId": "wCfkteuo", "ResourceType": "UTROAYRI", "Name": "VAFbFRxD", "MetricName": "KgGCfbqp", "OccurrenceTime": 2, "RecoveryTime": 8, "Recovered": "Yes", "Threshold": 8.72818, "Value": 2.27913 }, { "ResourceId": "QVQMVclb", "ResourceType": "mdedMlZD", "Name": "XaHhdZLW", "MetricName": "mWQZYFzM", "OccurrenceTime": 1, "RecoveryTime": 3, "Recovered": "Yes", "Threshold": 9.22554, "Value": 2.43968 }, { "ResourceId": "JeHDBIwa", "ResourceType": "JgCsxfqS", "Name": "PvSNXQpZ", "MetricName": "uqQHIXVE", "OccurrenceTime": 1, "RecoveryTime": 3, "Recovered": "Yes", "Threshold": 7.17721, "Value": 4.74256 }, { "ResourceId": "eUISGdGS", "ResourceType": "WJOMSayg", "Name": "CMzuWovm", "MetricName": "uSWEzuJi", "OccurrenceTime": 8, "RecoveryTime": 1, "Recovered": "Yes", "Threshold": 6.57864, "Value": 1.73251 }, { "ResourceId": "WdXpvtrI", "ResourceType": "gEYdhrGf", "Name": "oEeBdwco", "MetricName": "zSIYVqgD", "OccurrenceTime": 6, "RecoveryTime": 5, "Recovered": "Yes", "Threshold": 1.52272, "Value": 9.83791 }, { "ResourceId": "dZfxKNkY", "ResourceType": "JXrsqQwP", "Name": "XvyLDfzY", "MetricName": "QVYNTUed", "OccurrenceTime": 8, "RecoveryTime": 2, "Recovered": "Yes", "Threshold": 4.31349, "Value": 3.97248 }, { "ResourceId": "ojuzjqkF", "ResourceType": "LEfmyHmQ", "Name": "ZaEOZbgh", "MetricName": "sndStIsR", "OccurrenceTime": 6, "RecoveryTime": 8, "Recovered": "Yes", "Threshold": 1.35466, "Value": 4.54875 }, { "ResourceId": "WjPSUvSp", "ResourceType": "xTnHtABc", "Name": "tNpywJsP", "MetricName": "RKOTCDPi", "OccurrenceTime": 5, "RecoveryTime": 8, "Recovered": "Yes", "Threshold": 1.33729, "Value": 3.37471 } ], "RetCode": 0, "Action": "GetAlarmRecordListResponse" }