ManagedComputeClusterWorkloadMetricExpressionRule¶
-
class
oci.data_science.models.ManagedComputeClusterWorkloadMetricExpressionRule(**kwargs)¶ Bases:
objectThe metric expression rule base for workload scaling.
Attributes
METRIC_EXPRESSION_RULE_TYPE_TARGET_CUSTOM_EXPRESSIONA constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterWorkloadMetricExpressionRule. METRIC_EXPRESSION_RULE_TYPE_TARGET_PREDEFINED_EXPRESSIONA constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterWorkloadMetricExpressionRule. metric_expression_rule_type[Required] Gets the metric_expression_rule_type of this ManagedComputeClusterWorkloadMetricExpressionRule. Methods
__init__(**kwargs)Initializes a new ManagedComputeClusterWorkloadMetricExpressionRule 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. -
METRIC_EXPRESSION_RULE_TYPE_TARGET_CUSTOM_EXPRESSION= 'TARGET_CUSTOM_EXPRESSION'¶ A constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterWorkloadMetricExpressionRule. This constant has a value of “TARGET_CUSTOM_EXPRESSION”
-
METRIC_EXPRESSION_RULE_TYPE_TARGET_PREDEFINED_EXPRESSION= 'TARGET_PREDEFINED_EXPRESSION'¶ A constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterWorkloadMetricExpressionRule. This constant has a value of “TARGET_PREDEFINED_EXPRESSION”
-
__init__(**kwargs)¶ Initializes a new ManagedComputeClusterWorkloadMetricExpressionRule 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: metric_expression_rule_type (str) – The value to assign to the metric_expression_rule_type property of this ManagedComputeClusterWorkloadMetricExpressionRule. Allowed values for this property are: “TARGET_PREDEFINED_EXPRESSION”, “TARGET_CUSTOM_EXPRESSION”, ‘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.
-
metric_expression_rule_type¶ [Required] Gets the metric_expression_rule_type of this ManagedComputeClusterWorkloadMetricExpressionRule. The metric expression for creating the alarm used to trigger autoscaling actions for workload.
Allowed values for this property are: “TARGET_PREDEFINED_EXPRESSION”, “TARGET_CUSTOM_EXPRESSION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The metric_expression_rule_type of this ManagedComputeClusterWorkloadMetricExpressionRule. Return type: str
-