public class TimeAutoScaleStrategy extends AbstractModel
header, skipSign
Constructor and Description |
---|
TimeAutoScaleStrategy() |
TimeAutoScaleStrategy(TimeAutoScaleStrategy 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 |
getCompensateFlag()
Get Compensatory scale-out.
|
String |
getConfigGroupAssigned()
Get Preset configuration group.
|
Boolean |
getGraceDownFlag()
Get Graceful scale-in switch.
|
TkeLabel[] |
getGraceDownLabel()
Get Graceful scale-in business pod tag.
|
Long |
getGraceDownTime()
Get Graceful scale-in wait time.
|
Long |
getGroupId()
Get Scaling group ID.
|
Long |
getIntervalTime()
Get Cooling time after policy trigger, during which auto scaling cannot be triggered.
|
Long |
getMaxUse()
Get Maximum use time in seconds.
|
String |
getMeasureMethod()
Get Calculation method of scale-out resources.
|
Long |
getPriority()
Get Rule priority.
|
RepeatStrategy |
getRepeatStrategy()
Get Time scaling repetition policy
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getRetryValidTime()
Get When multiple rules are triggered at the same time and some are not really executed, retries will be performed within this time range.
|
Long |
getScaleAction()
Get Scaling action.
|
Long |
getScaleNum()
Get Scaling amount.
|
Long[] |
getServiceNodeInfo()
Get Startup process list
Note: This field may return null, indicating that no valid values can be obtained.
|
Long[] |
getSoftDeployInfo()
Get Node deployment service list.
|
Long |
getStrategyId()
Get Unique policy ID.
|
String |
getStrategyName()
Get Policy name, which is unique within one cluster.
|
Long |
getStrategyStatus()
Get Rule status.
|
Tag[] |
getTags()
Get Bound tag list
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getTerminatePolicy()
Get Termination policy.
|
void |
setCompensateFlag(Long CompensateFlag)
Set Compensatory scale-out.
|
void |
setConfigGroupAssigned(String ConfigGroupAssigned)
Set Preset configuration group.
|
void |
setGraceDownFlag(Boolean GraceDownFlag)
Set Graceful scale-in switch.
|
void |
setGraceDownLabel(TkeLabel[] GraceDownLabel)
Set Graceful scale-in business pod tag.
|
void |
setGraceDownTime(Long GraceDownTime)
Set Graceful scale-in wait time.
|
void |
setGroupId(Long GroupId)
Set Scaling group ID.
|
void |
setIntervalTime(Long IntervalTime)
Set Cooling time after policy trigger, during which auto scaling cannot be triggered.
|
void |
setMaxUse(Long MaxUse)
Set Maximum use time in seconds.
|
void |
setMeasureMethod(String MeasureMethod)
Set Calculation method of scale-out resources.
|
void |
setPriority(Long Priority)
Set Rule priority.
|
void |
setRepeatStrategy(RepeatStrategy RepeatStrategy)
Set Time scaling repetition policy
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRetryValidTime(Long RetryValidTime)
Set When multiple rules are triggered at the same time and some are not really executed, retries will be performed within this time range.
|
void |
setScaleAction(Long ScaleAction)
Set Scaling action.
|
void |
setScaleNum(Long ScaleNum)
Set Scaling amount.
|
void |
setServiceNodeInfo(Long[] ServiceNodeInfo)
Set Startup process list
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setSoftDeployInfo(Long[] SoftDeployInfo)
Set Node deployment service list.
|
void |
setStrategyId(Long StrategyId)
Set Unique policy ID.
|
void |
setStrategyName(String StrategyName)
Set Policy name, which is unique within one cluster.
|
void |
setStrategyStatus(Long StrategyStatus)
Set Rule status.
|
void |
setTags(Tag[] Tags)
Set Bound tag list
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTerminatePolicy(String TerminatePolicy)
Set Termination policy.
|
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, toJsonString
public TimeAutoScaleStrategy()
public TimeAutoScaleStrategy(TimeAutoScaleStrategy source)
public String getStrategyName()
public void setStrategyName(String StrategyName)
StrategyName
- Policy name, which is unique within one cluster.public Long getIntervalTime()
public void setIntervalTime(Long IntervalTime)
IntervalTime
- Cooling time after policy trigger, during which auto scaling cannot be triggered.public Long getScaleAction()
public void setScaleAction(Long ScaleAction)
ScaleAction
- Scaling action. 1: scale-out, 2: scale-in.public Long getScaleNum()
public void setScaleNum(Long ScaleNum)
ScaleNum
- Scaling amount.public Long getStrategyStatus()
public void setStrategyStatus(Long StrategyStatus)
StrategyStatus
- Rule status. 1: valid; 2: invalid; 3: suspended. This field is required.public Long getPriority()
public void setPriority(Long Priority)
Priority
- Rule priority. The smaller value indicates the higher priority.public Long getRetryValidTime()
public void setRetryValidTime(Long RetryValidTime)
RetryValidTime
- When multiple rules are triggered at the same time and some are not really executed, retries will be performed within this time range.public RepeatStrategy getRepeatStrategy()
public void setRepeatStrategy(RepeatStrategy RepeatStrategy)
RepeatStrategy
- Time scaling repetition policy
Note: This field may return null, indicating that no valid values can be obtained.public Long getStrategyId()
public void setStrategyId(Long StrategyId)
StrategyId
- Unique policy ID.public Boolean getGraceDownFlag()
public void setGraceDownFlag(Boolean GraceDownFlag)
GraceDownFlag
- Graceful scale-in switch.public Long getGraceDownTime()
public void setGraceDownTime(Long GraceDownTime)
GraceDownTime
- Graceful scale-in wait time.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- Bound tag list
Note: This field may return null, indicating that no valid values can be obtained.public String getConfigGroupAssigned()
public void setConfigGroupAssigned(String ConfigGroupAssigned)
ConfigGroupAssigned
- Preset configuration group.public String getMeasureMethod()
public void setMeasureMethod(String MeasureMethod)
MeasureMethod
- Calculation method of scale-out resources. Valid values: "DEFAULT","INSTANCE", "CPU" and "MEMORYGB".
"DEFAULT" indicates the default method, which is the same as "INSTANCE".
"INSTANCE" indicates calculation based on nodes (default mode).
"CPU" indicates calculation based on the quantity of cores of the machine.
"MEMORYGB" indicates calculation based on the memory size of the machine.public String getTerminatePolicy()
public void setTerminatePolicy(String TerminatePolicy)
TerminatePolicy
- Termination policy. "DEFAULT" denotes the default policy, which indicates that scale-in is triggered by scale-in rules. "TIMING" denotes timed destruction.public Long getMaxUse()
public void setMaxUse(Long MaxUse)
MaxUse
- Maximum use time in seconds. The minimum value is 1 hour, and the maximum is 24 hours.public Long[] getSoftDeployInfo()
public void setSoftDeployInfo(Long[] SoftDeployInfo)
SoftDeployInfo
- Node deployment service list. Fill in only HDFS and YARN. For details, see [Mapping Table for Component Names](https://intl.cloud.tencent.com/document/product/589/98760?from_cn_redirect=1).
Note: This field may return null, indicating that no valid values can be obtained.public Long[] getServiceNodeInfo()
public void setServiceNodeInfo(Long[] ServiceNodeInfo)
ServiceNodeInfo
- Startup process list
Note: This field may return null, indicating that no valid values can be obtained.public Long getCompensateFlag()
public void setCompensateFlag(Long CompensateFlag)
CompensateFlag
- Compensatory scale-out. 0: disable, 1: enable.public Long getGroupId()
public void setGroupId(Long GroupId)
GroupId
- Scaling group ID.public TkeLabel[] getGraceDownLabel()
public void setGraceDownLabel(TkeLabel[] GraceDownLabel)
GraceDownLabel
- Graceful scale-in business pod tag. Nodes are scaled in when the pod mentioned above is not found on the node or the graceful scale-in time is passed.Copyright © 2025. All rights reserved.