PredefinedExpressionThresholdScalingConfiguration¶
-
class
oci.data_science.models.
PredefinedExpressionThresholdScalingConfiguration
(**kwargs)¶ Bases:
oci.data_science.models.scaling_configuration.ScalingConfiguration
The scaling configuration for the predefined metric expression rule.
Attributes
SCALING_CONFIGURATION_TYPE_QUERY
str(object=’’) -> str SCALING_CONFIGURATION_TYPE_THRESHOLD
str(object=’’) -> str instance_count_adjustment
Gets the instance_count_adjustment of this ScalingConfiguration. pending_duration
Gets the pending_duration of this ScalingConfiguration. scaling_configuration_type
[Required] Gets the scaling_configuration_type of this ScalingConfiguration. threshold
[Required] Gets the threshold of this PredefinedExpressionThresholdScalingConfiguration. Methods
__init__
(**kwargs)Initializes a new PredefinedExpressionThresholdScalingConfiguration object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
SCALING_CONFIGURATION_TYPE_QUERY
= 'QUERY'¶
-
SCALING_CONFIGURATION_TYPE_THRESHOLD
= 'THRESHOLD'¶
-
__init__
(**kwargs)¶ Initializes a new PredefinedExpressionThresholdScalingConfiguration object with values from keyword arguments. The default value of the
scaling_configuration_type
attribute of this class isTHRESHOLD
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - scaling_configuration_type (str) – The value to assign to the scaling_configuration_type property of this PredefinedExpressionThresholdScalingConfiguration. Allowed values for this property are: “THRESHOLD”, “QUERY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- pending_duration (str) – The value to assign to the pending_duration property of this PredefinedExpressionThresholdScalingConfiguration.
- instance_count_adjustment (int) – The value to assign to the instance_count_adjustment property of this PredefinedExpressionThresholdScalingConfiguration.
- threshold (int) – The value to assign to the threshold property of this PredefinedExpressionThresholdScalingConfiguration.
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
instance_count_adjustment
¶ Gets the instance_count_adjustment of this ScalingConfiguration. The value is used for adjusting the count of instances by.
Returns: The instance_count_adjustment of this ScalingConfiguration. Return type: int
-
pending_duration
¶ Gets the pending_duration of this ScalingConfiguration. 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 or PT1H for one hour). Minimum: PT3M. Maximum: PT1H. Default: PT3M.
Returns: The pending_duration of this ScalingConfiguration. Return type: str
-
scaling_configuration_type
¶ [Required] Gets the scaling_configuration_type of this ScalingConfiguration. The type of scaling configuration.
Allowed values for this property are: “THRESHOLD”, “QUERY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The scaling_configuration_type of this ScalingConfiguration. Return type: str
-
threshold
¶ [Required] Gets the threshold of this PredefinedExpressionThresholdScalingConfiguration. A metric value at which the scaling operation will be triggered.
Returns: The threshold of this PredefinedExpressionThresholdScalingConfiguration. Return type: int
-