TargetPredefinedExpressionThresholdScalingConfiguration¶
-
class
oci.data_science.models.TargetPredefinedExpressionThresholdScalingConfiguration(**kwargs)¶ Bases:
oci.data_science.models.target_scaling_configuration.TargetScalingConfigurationThe scaling configuration for the predefined metric expression rule for the workload.
Attributes
TARGET_SCALING_CONFIGURATION_TYPE_QUERYstr(object=’’) -> str TARGET_SCALING_CONFIGURATION_TYPE_THRESHOLDstr(object=’’) -> str target_scaling_configuration_type[Required] Gets the target_scaling_configuration_type of this TargetScalingConfiguration. threshold[Required] Gets the threshold of this TargetPredefinedExpressionThresholdScalingConfiguration. Methods
__init__(**kwargs)Initializes a new TargetPredefinedExpressionThresholdScalingConfiguration 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. -
TARGET_SCALING_CONFIGURATION_TYPE_QUERY= 'QUERY'¶
-
TARGET_SCALING_CONFIGURATION_TYPE_THRESHOLD= 'THRESHOLD'¶
-
__init__(**kwargs)¶ Initializes a new TargetPredefinedExpressionThresholdScalingConfiguration object with values from keyword arguments. The default value of the
target_scaling_configuration_typeattribute of this class isTHRESHOLDand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - target_scaling_configuration_type (str) – The value to assign to the target_scaling_configuration_type property of this TargetPredefinedExpressionThresholdScalingConfiguration. 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’.
- threshold (float) – The value to assign to the threshold property of this TargetPredefinedExpressionThresholdScalingConfiguration.
-
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.
-
target_scaling_configuration_type¶ [Required] Gets the target_scaling_configuration_type of this TargetScalingConfiguration. The metric at which the alarm used to trigger autoscaling actions for workload.
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 target_scaling_configuration_type of this TargetScalingConfiguration. Return type: str
-
threshold¶ [Required] Gets the threshold of this TargetPredefinedExpressionThresholdScalingConfiguration. A metric value at which the scaling operation will be triggered.
Returns: The threshold of this TargetPredefinedExpressionThresholdScalingConfiguration. Return type: float
-