Skip to Content
Cloud Monitor(CloudWatch)ListAlertStrategyTemplate

ListAlertStrategyTemplate - ListAlertStrategyTemplate

Overview

ListAlertStrategyTemplate

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListAlertStrategyTemplate.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. Leave empty for the default project; sub-accounts must fill this in. Please refer to the GetProjectList interface.Yes
TemplateIDs.NintTemplate id collection, get the alert template list according to the template idNo
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[ListAlertTemplate]Alert Template ListNo
TotalCountintTotalCountNo

Data Model

ListAlertTemplate

Field NameTypeDescription InformationRequired
CompanyIDintcompany idNo
TemplateIDinttemplate idNo
NamestringTemplate NameNo
ProductTypeintProductTypeNo
ProductKeystringProductKeyNo
RuleSetarray[AlertRule]RuleSetNo
RemarkstringRemarkNo

AlertRule

Field NameTypeDescription InformationRequired
RuleIDintRule IDNo
MetricIDintRule Metric ID. Refer to the list of metrics returned under this type of product GetProductMetricsNo
MetricNamestringMetric NameNo
ThresholdCompareintThreshold comparison method.
Enumeration value comparison method:
1->=
2-<=
3->
4-<
5-==
6-!=
No
ThresholdValuefloatAlert Rule ThresholdValueNo
TriggerCountintTrigger CountNo
SendPeriodTypestringTrigger Cycle. Enum values: continuous Continuous, exponent Exponential, single Non-repetitiveNo
SendIntervalintSend IntervalNo
LevelstringAlarm LevelNo
StatusintAlarm Status(0:off 1on)No
UnitIDintUnit IDNo
UnitNamestringUnit NameNo

Example

Request Example

https://api.genesissai.com/?Action=ListAlertStrategyTemplate &Region=cn-zj &Zone=cn-zj-01 &ProjectId=WlvKlnLL &ProjectId=kaGOEwqa &Filter.TemplateIDs.N=8 &Limit=9 &Offset=7

Response Example

{ "Action": "ListAlertStrategyTemplateResponse", "Data": [ { "CompanyID": 4, "Name": "dnJZlrWA", "ProductKey": "RwmwuAAp", "ProductType": 9, "Remark": "tNWQKTXr", "RuleSet": [ { "Level": "cQBWjaRy", "MetricID": 3, "MetricName": "HbmMUMkx", "RuleID": 7, "SendInterval": 2, "SendPeriodType": "rUXdydLC", "Status": 3, "ThresholdCompare": 1, "ThresholdValue": 1.86358, "TriggerCount": 8 } ], "TemplateID": 9 } ], "Message": "uIxKeOnd", "RetCode": 0, "TotalCount": 6 }