public class AutoStrategy extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| AutoStrategy() | 
| AutoStrategy(AutoStrategy 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 | getExpandPeriod()Deprecated.   | 
| Long | getExpandSecondPeriod()Get 弹性扩容观测周期(秒级),可取值为:15,30,45,60,180,300,600,900,1800。 | 
| Long | getExpandThreshold()Get 自动扩容阈值,可选值40、50、60、70、80、90,代表 CPU 利用率达到40%、50%、60%、70%、80%、90%时后台进行自动扩容。 | 
| Long | getShrinkPeriod()Deprecated.   | 
| Long | getShrinkSecondPeriod()Get 缩容观测周期(秒级),可取值为:300、600、900、1800。 | 
| Long | getShrinkThreshold()Get 自动缩容阈值,可选值10、20、30,代表CPU利用率达到10%、20%、30%时后台进行自动缩容 | 
| void | setExpandPeriod(Long ExpandPeriod)Deprecated.   | 
| void | setExpandSecondPeriod(Long ExpandSecondPeriod)Set 弹性扩容观测周期(秒级),可取值为:15,30,45,60,180,300,600,900,1800。 | 
| void | setExpandThreshold(Long ExpandThreshold)Set 自动扩容阈值,可选值40、50、60、70、80、90,代表 CPU 利用率达到40%、50%、60%、70%、80%、90%时后台进行自动扩容。 | 
| void | setShrinkPeriod(Long ShrinkPeriod)Deprecated.   | 
| void | setShrinkSecondPeriod(Long ShrinkSecondPeriod)Set 缩容观测周期(秒级),可取值为:300、600、900、1800。 | 
| void | setShrinkThreshold(Long ShrinkThreshold)Set 自动缩容阈值,可选值10、20、30,代表CPU利用率达到10%、20%、30%时后台进行自动缩容 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic AutoStrategy()
public AutoStrategy(AutoStrategy source)
public Long getExpandThreshold()
public void setExpandThreshold(Long ExpandThreshold)
ExpandThreshold - 自动扩容阈值,可选值40、50、60、70、80、90,代表 CPU 利用率达到40%、50%、60%、70%、80%、90%时后台进行自动扩容。public Long getShrinkThreshold()
public void setShrinkThreshold(Long ShrinkThreshold)
ShrinkThreshold - 自动缩容阈值,可选值10、20、30,代表CPU利用率达到10%、20%、30%时后台进行自动缩容@Deprecated public Long getExpandPeriod()
@Deprecated public void setExpandPeriod(Long ExpandPeriod)
ExpandPeriod - 自动扩容观测周期,单位是分钟,可选值1、3、5、10、15、30。后台会按照配置的周期进行扩容判断。
注意:此字段可能返回 null,表示取不到有效值。@Deprecated public Long getShrinkPeriod()
@Deprecated public void setShrinkPeriod(Long ShrinkPeriod)
ShrinkPeriod - 自动缩容观测周期,单位是分钟,可选值5、10、15、30。后台会按照配置的周期进行缩容判断。
注意:此字段可能返回 null,表示取不到有效值。public Long getExpandSecondPeriod()
public void setExpandSecondPeriod(Long ExpandSecondPeriod)
ExpandSecondPeriod - 弹性扩容观测周期(秒级),可取值为:15,30,45,60,180,300,600,900,1800。public Long getShrinkSecondPeriod()
public void setShrinkSecondPeriod(Long ShrinkSecondPeriod)
ShrinkSecondPeriod - 缩容观测周期(秒级),可取值为:300、600、900、1800。Copyright © 2025. All rights reserved.