public class HorizontalAutoscaler extends AbstractModel
| Constructor and Description | 
|---|
| HorizontalAutoscaler() | 
| HorizontalAutoscaler(HorizontalAutoscaler 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 | 
|---|---|
| Float | getDoubleThreshold()Get The value of threshold (demical)
Note: This field may return null, indicating that no valid values can be obtained. | 
| Boolean | getEnabled()Get Whether it is enabled | 
| Long | getMaxReplicas()Get (Optional) Maximum number of instances | 
| String | getMetrics()Get Metric measurement
`CPU`: CPU utilization (%)
`MEMORY`: Memory utilization (%)
`CPU_CORE_USED`: CPU usage (core)
`MEMORY_SIZE_USED`: Memory usage (MiB)
`NETWORK_BANDWIDTH_RECEIVE`: Network bandwidth in (Mbps)
`NETWORK_BANDWIDTH_TRANSMIT`: Network bandwidth out (Mbps)
`NETWORK_TRAFFIC_RECEIVE`: Network traffic in (MiB/s)
`NETWORK_TRAFFIC_TRANSMIT`: Network traffic  out (MiB/s)
`NETWORK_PACKETS_RECEIVE`: Network packets in (packets/sec)
`NETWORK_PACKETS_TRANSMIT`: Network packets out (packets/sec)
`FS_IOPS_WRITE`: Disk writes (count/sec)
`FS_IOPS_READ`: Disk reads (count/sec)
`FS_SIZE_WRITE`: Disk write size (MiB/s)
`FS_SIZE_READ`: Disk read size (MiB/s) | 
| Long | getMinReplicas()Get (Optional) Minimum number of instances | 
| Long | getThreshold()Get The value of threshold (integer) | 
| void | setDoubleThreshold(Float DoubleThreshold)Set The value of threshold (demical)
Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setEnabled(Boolean Enabled)Set Whether it is enabled | 
| void | setMaxReplicas(Long MaxReplicas)Set (Optional) Maximum number of instances | 
| void | setMetrics(String Metrics)Set Metric measurement
`CPU`: CPU utilization (%)
`MEMORY`: Memory utilization (%)
`CPU_CORE_USED`: CPU usage (core)
`MEMORY_SIZE_USED`: Memory usage (MiB)
`NETWORK_BANDWIDTH_RECEIVE`: Network bandwidth in (Mbps)
`NETWORK_BANDWIDTH_TRANSMIT`: Network bandwidth out (Mbps)
`NETWORK_TRAFFIC_RECEIVE`: Network traffic in (MiB/s)
`NETWORK_TRAFFIC_TRANSMIT`: Network traffic  out (MiB/s)
`NETWORK_PACKETS_RECEIVE`: Network packets in (packets/sec)
`NETWORK_PACKETS_TRANSMIT`: Network packets out (packets/sec)
`FS_IOPS_WRITE`: Disk writes (count/sec)
`FS_IOPS_READ`: Disk reads (count/sec)
`FS_SIZE_WRITE`: Disk write size (MiB/s)
`FS_SIZE_READ`: Disk read size (MiB/s) | 
| void | setMinReplicas(Long MinReplicas)Set (Optional) Minimum number of instances | 
| void | setThreshold(Long Threshold)Set The value of threshold (integer) | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic HorizontalAutoscaler()
public HorizontalAutoscaler(HorizontalAutoscaler source)
public Long getMinReplicas()
public void setMinReplicas(Long MinReplicas)
MinReplicas - (Optional) Minimum number of instancespublic Long getMaxReplicas()
public void setMaxReplicas(Long MaxReplicas)
MaxReplicas - (Optional) Maximum number of instancespublic String getMetrics()
public void setMetrics(String Metrics)
Metrics - Metric measurement
`CPU`: CPU utilization (%)
`MEMORY`: Memory utilization (%)
`CPU_CORE_USED`: CPU usage (core)
`MEMORY_SIZE_USED`: Memory usage (MiB)
`NETWORK_BANDWIDTH_RECEIVE`: Network bandwidth in (Mbps)
`NETWORK_BANDWIDTH_TRANSMIT`: Network bandwidth out (Mbps)
`NETWORK_TRAFFIC_RECEIVE`: Network traffic in (MiB/s)
`NETWORK_TRAFFIC_TRANSMIT`: Network traffic  out (MiB/s)
`NETWORK_PACKETS_RECEIVE`: Network packets in (packets/sec)
`NETWORK_PACKETS_TRANSMIT`: Network packets out (packets/sec)
`FS_IOPS_WRITE`: Disk writes (count/sec)
`FS_IOPS_READ`: Disk reads (count/sec)
`FS_SIZE_WRITE`: Disk write size (MiB/s)
`FS_SIZE_READ`: Disk read size (MiB/s)public Long getThreshold()
public void setThreshold(Long Threshold)
Threshold - The value of threshold (integer)public Boolean getEnabled()
public void setEnabled(Boolean Enabled)
Enabled - Whether it is enabledpublic Float getDoubleThreshold()
public void setDoubleThreshold(Float DoubleThreshold)
DoubleThreshold - The value of threshold (demical)
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.