Package com.exoscale.sdk.model
Class NodeDuressSettings
java.lang.Object
com.exoscale.sdk.model.NodeDuressSettings
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class NodeDuressSettings
extends Object
NodeDuressSettings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncpuThreshold
(BigDecimal cpuThreshold) boolean
Return true if this Node_duress_settings object is equal to o.The CPU usage threshold (as a percentage) required for a node to be considered to be under duress.The heap usage threshold (as a percentage) required for a node to be considered to be under duress.The number of successive limit breaches after which the node is considered to be under duress.int
hashCode()
heapThreshold
(BigDecimal heapThreshold) numSuccessiveBreaches
(Integer numSuccessiveBreaches) void
setCpuThreshold
(BigDecimal cpuThreshold) void
setHeapThreshold
(BigDecimal heapThreshold) void
setNumSuccessiveBreaches
(Integer numSuccessiveBreaches) toString()
Convert the instance into URL query string.toUrlQueryString
(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CPU_THRESHOLD
- See Also:
-
JSON_PROPERTY_HEAP_THRESHOLD
- See Also:
-
JSON_PROPERTY_NUM_SUCCESSIVE_BREACHES
- See Also:
-
-
Constructor Details
-
NodeDuressSettings
public NodeDuressSettings()
-
-
Method Details
-
cpuThreshold
-
getCpuThreshold
The CPU usage threshold (as a percentage) required for a node to be considered to be under duress. Default is 0.9 minimum: 0.0 maximum: 1.0- Returns:
- cpuThreshold
-
setCpuThreshold
-
heapThreshold
-
getHeapThreshold
The heap usage threshold (as a percentage) required for a node to be considered to be under duress. Default is 0.7 minimum: 0.0 maximum: 1.0- Returns:
- heapThreshold
-
setHeapThreshold
-
numSuccessiveBreaches
-
getNumSuccessiveBreaches
The number of successive limit breaches after which the node is considered to be under duress. Default is 3 minimum: 1- Returns:
- numSuccessiveBreaches
-
setNumSuccessiveBreaches
-
equals
Return true if this Node_duress_settings object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-