public class LoadAutoScaleStrategy extends AbstractModel
header, skipSign
Constructor and Description |
---|
LoadAutoScaleStrategy() |
LoadAutoScaleStrategy(LoadAutoScaleStrategy 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 |
getCalmDownTime()
Get Cooling time for a rule to take effect.
|
String |
getConfigGroupAssigned()
Get Preset configuration group.
|
Boolean |
getGraceDownFlag()
Get Graceful scale-in switch
|
Long |
getGraceDownTime()
Get Graceful scale-in wait time
|
Long |
getGroupId()
Get Scaling group ID.
|
LoadMetricsConditions |
getLoadMetricsConditions()
Get Multi-metric trigger condition.
|
String |
getMeasureMethod()
Get Calculation method of scale-out resources:"DEFAULT","INSTANCE", "CPU", "MEMORYGB".
|
String |
getPeriodValid()
Get Effective time of the rule
|
Long |
getPriority()
Get Rule priority, which is not applicable during adding.
|
Long |
getProcessMethod()
Get Metric processing method.
|
Long |
getScaleAction()
Get Scaling action.
|
Long |
getScaleNum()
Get Scaling amount each time the rule takes effect.
|
String |
getServiceNodeDesc()
Get Startup process list, such as ["NodeManager"].
|
Long[] |
getServiceNodeInfo()
Get Startup process list.
|
String |
getSoft()
Get Soft (for example, YARN).
|
String[] |
getSoftDeployDesc()
Get Node deployment service list, such as ["HDFS-3.1.2","YARN-3.1.2"].
|
Long[] |
getSoftDeployInfo()
Get Node deployment service list.
|
Long |
getStrategyId()
Get Rule ID.
|
String |
getStrategyName()
Get Rule name.
|
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 |
getYarnNodeLabel()
Get Specified Yarn Node Label for rule scale-out.
|
void |
setCalmDownTime(Long CalmDownTime)
Set Cooling time for a rule to take effect.
|
void |
setConfigGroupAssigned(String ConfigGroupAssigned)
Set Preset configuration group.
|
void |
setGraceDownFlag(Boolean GraceDownFlag)
Set Graceful scale-in switch
|
void |
setGraceDownTime(Long GraceDownTime)
Set Graceful scale-in wait time
|
void |
setGroupId(Long GroupId)
Set Scaling group ID.
|
void |
setLoadMetricsConditions(LoadMetricsConditions LoadMetricsConditions)
Set Multi-metric trigger condition.
|
void |
setMeasureMethod(String MeasureMethod)
Set Calculation method of scale-out resources:"DEFAULT","INSTANCE", "CPU", "MEMORYGB".
|
void |
setPeriodValid(String PeriodValid)
Set Effective time of the rule
|
void |
setPriority(Long Priority)
Set Rule priority, which is not applicable during adding.
|
void |
setProcessMethod(Long ProcessMethod)
Set Metric processing method.
|
void |
setScaleAction(Long ScaleAction)
Set Scaling action.
|
void |
setScaleNum(Long ScaleNum)
Set Scaling amount each time the rule takes effect.
|
void |
setServiceNodeDesc(String ServiceNodeDesc)
Set Startup process list, such as ["NodeManager"].
|
void |
setServiceNodeInfo(Long[] ServiceNodeInfo)
Set Startup process list.
|
void |
setSoft(String Soft)
Set Soft (for example, YARN).
|
void |
setSoftDeployDesc(String[] SoftDeployDesc)
Set Node deployment service list, such as ["HDFS-3.1.2","YARN-3.1.2"].
|
void |
setSoftDeployInfo(Long[] SoftDeployInfo)
Set Node deployment service list.
|
void |
setStrategyId(Long StrategyId)
Set Rule ID.
|
void |
setStrategyName(String StrategyName)
Set Rule name.
|
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 |
setYarnNodeLabel(String YarnNodeLabel)
Set Specified Yarn Node Label for rule scale-out.
|
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 LoadAutoScaleStrategy()
public LoadAutoScaleStrategy(LoadAutoScaleStrategy source)
public Long getStrategyId()
public void setStrategyId(Long StrategyId)
StrategyId
- Rule ID.public String getStrategyName()
public void setStrategyName(String StrategyName)
StrategyName
- Rule name.public Long getCalmDownTime()
public void setCalmDownTime(Long CalmDownTime)
CalmDownTime
- Cooling time for a rule to take effect.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 each time the rule takes effect.public Long getProcessMethod()
public void setProcessMethod(Long ProcessMethod)
ProcessMethod
- Metric processing method. 1: MAX, 2: MIN, 3: AVG.public Long getPriority()
public void setPriority(Long Priority)
Priority
- Rule priority, which is not applicable during adding. The default is auto-increment.public Long getStrategyStatus()
public void setStrategyStatus(Long StrategyStatus)
StrategyStatus
- Rule status. 1: enabled, 3: disabled.public String getYarnNodeLabel()
public void setYarnNodeLabel(String YarnNodeLabel)
YarnNodeLabel
- Specified Yarn Node Label for rule scale-out.public String getPeriodValid()
public void setPeriodValid(String PeriodValid)
PeriodValid
- Effective time of the rulepublic Boolean getGraceDownFlag()
public void setGraceDownFlag(Boolean GraceDownFlag)
GraceDownFlag
- Graceful scale-in switchpublic Long getGraceDownTime()
public void setGraceDownTime(Long GraceDownTime)
GraceDownTime
- Graceful scale-in wait timepublic 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:"DEFAULT","INSTANCE", "CPU", "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[] getSoftDeployDesc()
public void setSoftDeployDesc(String[] SoftDeployDesc)
SoftDeployDesc
- Node deployment service list, such as ["HDFS-3.1.2","YARN-3.1.2"].
Note: This field may return null, indicating that no valid values can be obtained.public String getServiceNodeDesc()
public void setServiceNodeDesc(String ServiceNodeDesc)
ServiceNodeDesc
- Startup process list, such as ["NodeManager"].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[] getSoftDeployInfo()
public void setSoftDeployInfo(Long[] SoftDeployInfo)
SoftDeployInfo
- Node deployment service list. Only HDFS and YARN should be specified in the deployment service list. For details, see [Mapping Table for Component Names](https://www.tencentcloud.comom/document/product/589/98760?from_cn_redirect=1).
Note: This field may return null, indicating that no valid values can be obtained.public LoadMetricsConditions getLoadMetricsConditions()
public void setLoadMetricsConditions(LoadMetricsConditions LoadMetricsConditions)
LoadMetricsConditions
- Multi-metric trigger condition.
Note: This field may return null, indicating that no valid values can be obtained.public Long getGroupId()
public void setGroupId(Long GroupId)
GroupId
- Scaling group ID.public String getSoft()
public void setSoft(String Soft)
Soft
- Soft (for example, YARN).Copyright © 2025. All rights reserved.