TargetScalingConfiguration

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

Bases: object

The target scaling configuration for the workload scaling.

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.

Methods:

__init__(**kwargs)

Initializes a new TargetScalingConfiguration 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 TargetScalingConfiguration object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 TargetScalingConfiguration. 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’.

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