Skip to Content
Cloud Monitor(CloudWatch)UpdateAlertStrategy

UpdateAlertStrategy - UpdateAlertStrategy

Overview

UpdateAlertStrategy

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateAlertStrategy.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-account must fill in. Please refer to the GetProjectList APIYes
AlertStrategyIDstringAlertStrategyIdYes
NamestringAlert Strategy NameYes
ProductKeystringProduct type. Refer to ListMonitorProduct to get the list of monitored product types.Yes
ObjectTypeintObjectTypeYes
ConfigModeintConfigModeYes
Resources.NstringResourcesNo
ResourceGroupIDs.NintResourceGroupIDs.N.0No
Tags.N.Keystringtag keyNo
Tags.N.Operatorstringtag operatorNo
Values.Nstringtag valueNo
TemplateIdintTemplateIdNo
RuleSet.N.MetricIDintRule Metric ID. Refer to the list of metrics returned under this type of product GetProductMetricsNo
RuleSet.N.ThresholdCompareintThreshold comparison method. Enumeration value comparison method: 1->= 2-<= 3-> 4-< 5-== 6-!=No
RuleSet.N.ThresholdValueintAlert Rule ThresholdValueNo
RuleSet.N.TriggerCountintAlert Rule TriggerCount
No
RuleSet.N.SendPeriodTypestringTrigger cycle. Enumeration values: continuous Continuous, exponent Exponential, single Non-repeatingNo
RuleSet.N.LevelstringAlert level. Enumeration value: P0, P1, P2, P3No
RuleSet.N.StatusintAlert Rule StatusNo
RuleSet.N.SendIntervalintSilent period (required when the alarm period is set to Continuous)No
NotifyTypestringNotification Type Notification Group group Notifier userNo
NotifyUserIDs.NintNotifyUserIDsNo
NotifyGroupIDs.NintNotifyGroupIDsNo
NotifyChannelDs.NstringNotifyChannelDsNo
CallbackLanguagestringCallbackLanguageNo
CallbackUrls.NstringCallbackUrlsNo

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
DataAlertStrategyIdUpdate Alert Strategy Return ObjectNo

Data Model

AlertStrategyId

Field NameTypeDescription InformationRequired
AlertStrategyIDintAlertStrategyIdNo

Example

Request Example

https://api.genesissai.com/?Action=UpdateAlertStrategy &Region=cn-zj &Zone=cn-zj-01 &ProjectId=hEDzCADE &AlertStrategyID=wzBiMDOY &Name=opVpXTvF &ProductKey=guTjyfVD &ObjectType=1 &Resources.N.0=DtMqyNEA &ResourceGroupIDs.N.0=5 &Tags.N.key=MRpLGNPu &Tags.N.Operator=fdgdIBeM &Tags.N.Values.N.0=LPpcjdkb &ConfigMode=7 &TemplateId=9 &RuleSet.N.MetricID=3 &RuleSet.N.ThresholdCompare=6 &RuleSet.N.ThresholdValue=6 &RuleSet.N.TriggerCount=3 &RuleSet.N.SendPeriodType=dISAjraT &RuleSet.N.Level=DsGBHRkE &RuleSet.N.Status=6 &RuleSet.N.SendInterval=1 &NotifyType=zlffquPL &NotifyUserIDs.N.0=2 &NotifyGroupIDs.N.0=6 &NotifyChannelDs.N.0=RWRucvvn &CallbackLanguage=NUHEQECZ &CallbackUrls.N.0=hkLnxfjh

Response Example

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