TargetPredefinedMetricExpressionRule¶
-
class
oci.data_science.models.TargetPredefinedMetricExpressionRule(**kwargs)¶ Bases:
oci.data_science.models.managed_compute_cluster_workload_metric_expression_rule.ManagedComputeClusterWorkloadMetricExpressionRuleAn expression built using CPU or Memory metrics for triggering an autoscaling action for workload.
Attributes
METRIC_EXPRESSION_RULE_TYPE_TARGET_CUSTOM_EXPRESSIONstr(object=’’) -> str METRIC_EXPRESSION_RULE_TYPE_TARGET_PREDEFINED_EXPRESSIONstr(object=’’) -> str METRIC_TYPE_CPU_UTILIZATIONA constant which can be used with the metric_type property of a TargetPredefinedMetricExpressionRule. METRIC_TYPE_MEMORY_UTILIZATIONA constant which can be used with the metric_type property of a TargetPredefinedMetricExpressionRule. metric_expression_rule_type[Required] Gets the metric_expression_rule_type of this ManagedComputeClusterWorkloadMetricExpressionRule. metric_type[Required] Gets the metric_type of this TargetPredefinedMetricExpressionRule. scale_configuration[Required] Gets the scale_configuration of this TargetPredefinedMetricExpressionRule. Methods
__init__(**kwargs)Initializes a new TargetPredefinedMetricExpressionRule 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'¶
-
METRIC_EXPRESSION_RULE_TYPE_TARGET_PREDEFINED_EXPRESSION= 'TARGET_PREDEFINED_EXPRESSION'¶
-
METRIC_TYPE_CPU_UTILIZATION= 'CPU_UTILIZATION'¶ A constant which can be used with the metric_type property of a TargetPredefinedMetricExpressionRule. This constant has a value of “CPU_UTILIZATION”
-
METRIC_TYPE_MEMORY_UTILIZATION= 'MEMORY_UTILIZATION'¶ A constant which can be used with the metric_type property of a TargetPredefinedMetricExpressionRule. This constant has a value of “MEMORY_UTILIZATION”
-
__init__(**kwargs)¶ Initializes a new TargetPredefinedMetricExpressionRule object with values from keyword arguments. The default value of the
metric_expression_rule_typeattribute of this class isTARGET_PREDEFINED_EXPRESSIONand it should not be changed. 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 TargetPredefinedMetricExpressionRule. 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’.
- metric_type (str) – The value to assign to the metric_type property of this TargetPredefinedMetricExpressionRule. Allowed values for this property are: “CPU_UTILIZATION”, “MEMORY_UTILIZATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- scale_configuration (oci.data_science.models.TargetPredefinedExpressionThresholdScalingConfiguration) – The value to assign to the scale_configuration property of this TargetPredefinedMetricExpressionRule.
-
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
-
metric_type¶ [Required] Gets the metric_type of this TargetPredefinedMetricExpressionRule. Metric type
Allowed values for this property are: “CPU_UTILIZATION”, “MEMORY_UTILIZATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The metric_type of this TargetPredefinedMetricExpressionRule. Return type: str
-
scale_configuration¶ [Required] Gets the scale_configuration of this TargetPredefinedMetricExpressionRule.
Returns: The scale_configuration of this TargetPredefinedMetricExpressionRule. Return type: oci.data_science.models.TargetPredefinedExpressionThresholdScalingConfiguration
-