public class BandwidthAlert extends AbstractModel
skipSign| Constructor and Description | 
|---|
| BandwidthAlert() | 
| BandwidthAlert(BandwidthAlert source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| Long | getAlertPercentage()Get Triggers alarms when the ratio of bandwidth or traffic usage to the usage upper limit reaches the specified value
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getAlertSwitch()Get Indicates whether to trigger alerts when the upper limit is reached
`on`: Enable
`off`: Disable
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| Long | getBpsThreshold()Get The upper limit of bandwidth usage (in bps) or traffic usage (in bytes). | 
| String | getCounterMeasure()Get Action taken when threshold is reached
`RETURN_404`: A 404 error will be returned for all requests. | 
| String | getLastTriggerTime()Get The last time when the usage upper limit in the Chinese mainland was reached
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getLastTriggerTimeOverseas()Get The last time when the usage outside the Chinese mainland reached the upper limit
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| String | getMetric()Get Dimension of the usage limit
`bandwidth`: Bandwidth
`flux`: Traffic
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| StatisticItem[] | getStatisticItems()Get Usage limit configuration
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| String | getSwitch()Get Specifies whether to enable the bandwidth cap
`on`: Enable
`off`: Disable | 
| void | setAlertPercentage(Long AlertPercentage)Set Triggers alarms when the ratio of bandwidth or traffic usage to the usage upper limit reaches the specified value
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setAlertSwitch(String AlertSwitch)Set Indicates whether to trigger alerts when the upper limit is reached
`on`: Enable
`off`: Disable
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setBpsThreshold(Long BpsThreshold)Set The upper limit of bandwidth usage (in bps) or traffic usage (in bytes). | 
| void | setCounterMeasure(String CounterMeasure)Set Action taken when threshold is reached
`RETURN_404`: A 404 error will be returned for all requests. | 
| void | setLastTriggerTime(String LastTriggerTime)Set The last time when the usage upper limit in the Chinese mainland was reached
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setLastTriggerTimeOverseas(String LastTriggerTimeOverseas)Set The last time when the usage outside the Chinese mainland reached the upper limit
Note: this field may return `null`, indicating that no valid values can be obtained. | 
| void | setMetric(String Metric)Set Dimension of the usage limit
`bandwidth`: Bandwidth
`flux`: Traffic
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| void | setStatisticItems(StatisticItem[] StatisticItems)Set Usage limit configuration
Note: This field may return `null`, indicating that no valid value can be obtained. | 
| void | setSwitch(String Switch)Set Specifies whether to enable the bandwidth cap
`on`: Enable
`off`: Disable | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic BandwidthAlert()
public BandwidthAlert(BandwidthAlert source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - Specifies whether to enable the bandwidth cap
`on`: Enable
`off`: Disablepublic Long getBpsThreshold()
public void setBpsThreshold(Long BpsThreshold)
BpsThreshold - The upper limit of bandwidth usage (in bps) or traffic usage (in bytes).
Note: this field may return `null`, indicating that no valid values can be obtained.public String getCounterMeasure()
public void setCounterMeasure(String CounterMeasure)
CounterMeasure - Action taken when threshold is reached
`RETURN_404`: A 404 error will be returned for all requests.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getLastTriggerTime()
public void setLastTriggerTime(String LastTriggerTime)
LastTriggerTime - The last time when the usage upper limit in the Chinese mainland was reached
Note: this field may return `null`, indicating that no valid values can be obtained.public String getAlertSwitch()
public void setAlertSwitch(String AlertSwitch)
AlertSwitch - Indicates whether to trigger alerts when the upper limit is reached
`on`: Enable
`off`: Disable
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getAlertPercentage()
public void setAlertPercentage(Long AlertPercentage)
AlertPercentage - Triggers alarms when the ratio of bandwidth or traffic usage to the usage upper limit reaches the specified value
Note: this field may return `null`, indicating that no valid values can be obtained.public String getLastTriggerTimeOverseas()
public void setLastTriggerTimeOverseas(String LastTriggerTimeOverseas)
LastTriggerTimeOverseas - The last time when the usage outside the Chinese mainland reached the upper limit
Note: this field may return `null`, indicating that no valid values can be obtained.public String getMetric()
public void setMetric(String Metric)
Metric - Dimension of the usage limit
`bandwidth`: Bandwidth
`flux`: Traffic
Note: This field may return `null`, indicating that no valid value can be obtained.public StatisticItem[] getStatisticItems()
public void setStatisticItems(StatisticItem[] StatisticItems)
StatisticItems - Usage limit configuration
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2023. All rights reserved.