docs
api
Global Dynamic Acceleration(PathX)
ModifyUPathTemplate

Modify UPath Monitoring Alert Items - ModifyUPathTemplate

Overview

Modify UPath Monitoring Alert Items

💡 Different alarm indicators have different parameter units; the 'n' after the parameter value can be replaced with different integers, and parameters with the same integer value form an alarm indicator.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ModifyUPathTemplate.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. Please refer to the GetProjectList interface.Yes
UPathIdstringAcceleration Line Instance IDYes
MetricName.NstringAlarm Metric Name, all 'n' counts must be consistent. Currently, only the following four items are allowed: UpathNetworkOut: Outbound Bandwidth, UpathNetworkIn: Inbound Bandwidth, UpathNetworkOutUsage: Outbound Bandwidth Usage, UpathNetworkInUsage: Inbound Bandwidth Usage.No
Threshold.NintAlarm threshold, the threshold range for bandwidth usage is an integer between [50,100], the bandwidth alarm threshold is a multiple of 1000000, for example, if it exceeds 2Mbps, the alarm threshold should be set to 2000000.No
AlarmFrequency.NintAlarm detection cycle, unit: secondsNo
ContactGroupId.NintAlert Group IDNo
Compare.NstringComparison strategy, optional ['GE','LE'] respectively represent not less than and not greater thanNo
AlarmStrategy.NstringConvergence Strategy, optional range ['Exponential','Continuous','Once'], corresponding to Exponential Increase, Continuous Alert, Single Alert respectively.No
TriggerCount.NintAlarm Trigger Cycle (Times)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

Example

Request Example

https://api.surfercloud.com/?Action=ModifyUPathTemplate
&ProjectId=org-xxxx
&AlarmStrategy.n=Continuous
&Threshold.n=10000000
&Compare.n=GE
&TriggerCount.n=3
&AlarmFrequency.n=60
&UPathId=upath-xxxx
&MetricName.n=UpathNetworkIn
&ContactGroupId.n=111

Response Example

{
  "Action": "ModifyUPathTemplateResponse",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved