docs
api
Cloud Monitor(CloudWatch)
ListAlertRecord

ListAlertRecord - ListAlertRecord

Overview

Get alarm records within a time period

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListAlertRecord.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID.Yes
StartAtintStartAt,Query the alarm record start time (does not support querying data one year before the current time)Yes
EndAtintEndAt,Query the end time of the alarm record (the interval between the end time and the start time cannot exceed one month)Yes
FuzzystringFuzzy query (supports fuzzy search of resourceID and alarm content)No
ProductTypes.NintProductTypes, accurately search for corresponding alarm records based on product typeNo
Levels.NstringAlarm level, accurately search for corresponding alarm records according to the alarm levelNo
Status.NstringAlarm status, accurately search for corresponding alarm records based on the alarm statusNo
OrderTypestringSorting (by default, in reverse order of alarm occurrence time)No
LimitintThe query returns the number of items,default value is 300, maximum value: 300.No
OffsetintData Offset (Default 0)
No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
Dataarray[AlertRecord]Alarm data setNo
TotalCountintAlarm total countNo

Data Model

AlertRecord

Field NameTypeDescription InformationRequired
RecordIDintAlert Record RecordIDNo
ProjectIDintProjectIDNo
StrategyNamestringAlarm Record Trigger Alarm Strategy NameNo
ProductTypeintProduct TypeNo
ProductNamestringProduct Type NameNo
ResourceIDstringResource IDNo
MetricIDintMetric IDNo
MetricNamestringMetric NameNo
StrategyIDintAlarm Record Triggered Alarm Strategy IdNo
RuleIDintAlarm Record Triggered Alarm Rule IdNo
ShieldRuleIDintAlarm shielding rule id (if a shielding rule is configured and conditions are met)No
ContentstringAlarm ContentNo
LevelstringAlarm LevelNo
StatusstringAlarm StatusNo
StartAtintAlarm Trigger TimeNo
EndAtintAlarm Recovery TimeNo

Example

Request Example

https://api.surfercloud.com/?Action=ListAlertRecord
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=lHbpbCJv
&RecordID=1
&StartAt=4
&EndAt=7
&Fuzzy=hAVEfaDE
&RecordID=6
&StartAt=5
&EndAt=8
&Fuzzy=jVymouaW
&Fuzzy=WYjEKfyo
&Filter.ProductTypes.N=6
&Filter.Levels.N=lxexxlZh
&Filter.Status.N=wakzNxlZ
&OrderType=JXKKXtZY
&Limit=3
&Offset=3

Response Example

{
  "Action": "ListAlertRecordResponse",
  "Data": [
    "pnYwysIe"
  ],
  "RetCode": 0,
  "TotalCount": 6
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved