Skip to Content
Cloud Monitor(CloudWatch)UpdateAlertStrategyTemplate

UpdateAlertStrategyTemplate - UpdateAlertStrategyTemplate

Overview

UpdateAlertStrategyTemplate

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateAlertStrategyTemplate.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 blank for the default project, sub-accounts must fill in. Please refer to GetProjectList APIYes
TemplateIDintTemplateIDYes
NamestringTemplate NameYes
ProductKeystringProduct type. Refer to ListMonitorProduct to get the list of monitored product types.Yes
RuleSet.N.MetricIDintRule Metric ID. Refer to the metric list returned under this type of product GetProductMetricsYes
RuleSet.N.ThresholdCompareintThreshold comparison method.
Enumeration value comparison method:
1->=
2-<=
3->
4-<
5-==
6-!=
Yes
RuleSet.N.ThresholdValueintAlert Rule ThresholdValueYes
RuleSet.N.TriggerCountintAlert Rule TriggerCountYes
RuleSet.N.SendPeriodTypestringTrigger SendPeriodType. Enumeration value:
continuous
exponent
single
Yes
RuleSet.N.LevelstringAlert level. Enumeration value: P0, P1, P2, P3Yes
RuleSet.N.StatusintAlert Rule StatusYes
RuleSet.N.SendIntervalintSilent period (required when the alarm period is set to Continuous)No
RemarkstringRemarkNo

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
DataAlertTemplateUpdate Alert Template Return ObjectNo

Data Model

AlertTemplate

Field NameTypeDescription InformationRequired
TemplateIDintAlert Template IDYes

Example

Request Example

https://api.genesissai.com/?Action=UpdateAlertStrategyTemplate &Region=cn-zj &Zone=cn-zj-01 &ProjectId=cAZsbmqT &TemplateID=3 &TemplateID=4 &Name=CNeRHdFx &ProductKey=ppYYTKTv &RuleSet.N.MetricID=1 &RuleSet.N.ThresholdCompare=3 &RuleSet.N.ThresholdValue=4 &RuleSet.N.TriggerCount=5 &RuleSet.N.SendPeriodType=ZalBbMqu &RuleSet.N.Level=ZRRqqzYt &RuleSet.N.Status=5 &RuleSet.N.SendInterval=3 &Remark=SgubaXNC

Response Example

{ "Action": "UpdateAlertStrategyTemplateResponse", "Data": {}, "RetCode": 0 }