Package com.oracle.bmc.datascience.model
Class ManagedComputeClusterWorkloadScalePolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ManagedComputeClusterWorkloadScalePolicy.Builder
-
- Enclosing class:
- ManagedComputeClusterWorkloadScalePolicy
public static class ManagedComputeClusterWorkloadScalePolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedComputeClusterWorkloadScalePolicybuild()ManagedComputeClusterWorkloadScalePolicy.BuildercoolDownInSeconds(Integer coolDownInSeconds)This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating.ManagedComputeClusterWorkloadScalePolicy.Buildercopy(ManagedComputeClusterWorkloadScalePolicy model)ManagedComputeClusterWorkloadScalePolicy.BuilderinstanceCountAdjustment(Integer instanceCountAdjustment)The value is used for adjusting the count of instances by.ManagedComputeClusterWorkloadScalePolicy.BuilderpendingDuration(String pendingDuration)The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING” or vice versa.
-
-
-
Method Detail
-
pendingDuration
public ManagedComputeClusterWorkloadScalePolicy.Builder pendingDuration(String pendingDuration)
The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING” or vice versa.For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to “FIRING”; likewise, the alarm must persist in not breaching the condition for five minutes before the alarm updates its state to “OK.” The duration is specified as a string in ISO 8601 format (PT10M for ten minutes). Minimum: PT1M. Maximum: PT30M. Default: PT3M.
- Parameters:
pendingDuration- the value to set- Returns:
- this builder
-
instanceCountAdjustment
public ManagedComputeClusterWorkloadScalePolicy.Builder instanceCountAdjustment(Integer instanceCountAdjustment)
The value is used for adjusting the count of instances by.- Parameters:
instanceCountAdjustment- the value to set- Returns:
- this builder
-
coolDownInSeconds
public ManagedComputeClusterWorkloadScalePolicy.Builder coolDownInSeconds(Integer coolDownInSeconds)
This value is the duration of time window used to restrict the flapping of instance count when the metrics used for scaling keep fluctuating.This window is used to infer a previous desired state and avoid unwanted changes to workload scale. Default value is 300 seconds.
- Parameters:
coolDownInSeconds- the value to set- Returns:
- this builder
-
build
public ManagedComputeClusterWorkloadScalePolicy build()
-
copy
public ManagedComputeClusterWorkloadScalePolicy.Builder copy(ManagedComputeClusterWorkloadScalePolicy model)
-
-