获取告警记录列表-GetAlarmRecordList

获取告警记录列表

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
BeginTimeint开始时间,时间戳No
EndTimeint结束时间,时间戳(当前仅支持获取时间间隔在31天内的告警记录)No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
DataSetarray告警记录列表Yes

AlarmRecord

Parameter nameTypeDescriptionRequired
ResourceIdstring资源idYes
Regionstring地域编号No
Zonestring可用区编号No
ResourceTypestring资源类型Yes
Namestring资源名称Yes
MetricNamestring指标名称Yes
OccurrenceTimeint告警发生时间Yes
RecoveryTimeint告警恢复时间Yes
Recoveredstring是否恢复Yes
Thresholdfloat阈值Yes
Valuefloat告警值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"
}