TargetPredefinedExpressionThresholdScalingConfiguration

class oci.data_science.models.TargetPredefinedExpressionThresholdScalingConfiguration(**kwargs)

Bases: TargetScalingConfiguration

The scaling configuration for the predefined metric expression rule for the workload.

Attributes:

TARGET_SCALING_CONFIGURATION_TYPE_QUERY

A constant which can be used with the target_scaling_configuration_type property of a TargetScalingConfiguration.

TARGET_SCALING_CONFIGURATION_TYPE_THRESHOLD

A constant which can be used with the target_scaling_configuration_type property of a TargetScalingConfiguration.

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'

A constant which can be used with the target_scaling_configuration_type property of a TargetScalingConfiguration. This constant has a value of “QUERY”

TARGET_SCALING_CONFIGURATION_TYPE_THRESHOLD = 'THRESHOLD'

A constant which can be used with the target_scaling_configuration_type property of a TargetScalingConfiguration. This constant has a value of “THRESHOLD”

__init__(**kwargs)

Initializes a new TargetPredefinedExpressionThresholdScalingConfiguration object with values from keyword arguments. The default value of the target_scaling_configuration_type attribute of this class is THRESHOLD and 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.

property 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

property 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