docs
api
Cloud Monitor(CloudWatch)
ListAlertStrategy

Get the list of alarm strategies - ListAlertStrategy

Overview

Get the list of alarm strategies

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListAlertStrategy.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 IDYes
FuzzystringFuzzy query (supports fuzzy search of alarm strategy names)No
ProductTypes.NintProduct type, accurately search for corresponding alarm strategies based on product typeNo
Status.NintAlarm strategy status, accurately search for the corresponding alarm strategy based on the alarm strategy statusNo
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[AlertStrategy]alarm strategy setNo
TotalCountintTotal number of alarm strategyNo
TraceIdstringtrace IDNo

Data Model

AlertStrategy

Field NameTypeDescription InformationRequired
RuleSetarray[AlertRule]Alarm Rule SetNo
AlertStrategyIDintAlert Strategy IdNo
NamestringAlarm Strategy NameNo
ProductTypeintResource TypeNo
ProductKeystringResource Type NameNo
ConfigModeintAlarm rule configuration type (based on template configuration, based on manual configuration)No
TemplateIdintTemplate IdNo
NotifyTypestringNotification Method (Notification Group: group, Notified Person: user)No
NotifyUserIDsarray[int]Notifier User ID CollectionNo
NotifyGroupIDsarray[int]Notification group ID collectionNo
NotifyChannelDsarray[string]Notification Channels ('email', 'sms', 'webhook')No
CallbackLanguagestringCallback Language (cn, en)No
CallbackUrlsarray[string]Callback URLNo
StatusintAlarm Strategy StatusNo
RemarkstringAlarm Strategy RemarksNo
CreatedBystringCreatorNo
UpdatedBystringUpdaterNo
CreatedAtintCreation TimeNo
UpdatedAtintUpdate TimeNo

AlertRule

Field NameTypeDescription InformationRequired
RuleIDintRule IDNo
MetricIDintMetric IDNo
MetricNamestringMetric NameNo
ThresholdCompareintThreshold Comparison MethodNo
ThresholdValuefloatThresholdNo
TriggerCountintTrigger CountNo
SendPeriodTypestringTrigger CycleNo
SendIntervalintSend IntervalNo
LevelstringAlarm LevelNo
StatusintAlarm StatusNo

Example

Request Example

https://api.surfercloud.com/?Action=ListAlertStrategy
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=tDITIKFv
&Fuzzy=lDkAENja
&Filter.ProductTypes.N=9
&Filter.Status.N=5
&Limit=7
&Offset=3

Response Example

{
  "Action": "ListAlertStrategyResponse",
  "Data": [
    {
      "AlertStrategyID": 2,
      "Name": "WrrLsCAx",
      "ProductKey": "LItkrkrT",
      "Remark": "fahqZEBZ",
      "Status": 5
    }
  ],
  "Message": "CqypVzgP",
  "RetCode": 0,
  "TotalCount": 1,
  "TraceId": "GpMNsXck"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved