ManagedComputeClusterPredefinedMetricExpressionRule

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

Bases: ManagedComputeClusterMetricExpressionRule

An expression built using CPU or Memory metrics for triggering an autoscaling action on the managed compute cluster type compute target .

Attributes:

METRIC_EXPRESSION_RULE_TYPE_CUSTOM_EXPRESSION

A constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterMetricExpressionRule.

METRIC_EXPRESSION_RULE_TYPE_PREDEFINED_EXPRESSION

A constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterMetricExpressionRule.

METRIC_TYPE_CPU_UTILIZATION

A constant which can be used with the metric_type property of a ManagedComputeClusterPredefinedMetricExpressionRule.

METRIC_TYPE_MEMORY_UTILIZATION

A constant which can be used with the metric_type property of a ManagedComputeClusterPredefinedMetricExpressionRule.

metric_expression_rule_type

[Required] Gets the metric_expression_rule_type of this ManagedComputeClusterMetricExpressionRule.

metric_type

[Required] Gets the metric_type of this ManagedComputeClusterPredefinedMetricExpressionRule.

scale_in_configuration

[Required] Gets the scale_in_configuration of this ManagedComputeClusterPredefinedMetricExpressionRule.

scale_out_configuration

[Required] Gets the scale_out_configuration of this ManagedComputeClusterPredefinedMetricExpressionRule.

Methods:

__init__(**kwargs)

Initializes a new ManagedComputeClusterPredefinedMetricExpressionRule 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_CUSTOM_EXPRESSION = 'CUSTOM_EXPRESSION'

A constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterMetricExpressionRule. This constant has a value of “CUSTOM_EXPRESSION”

METRIC_EXPRESSION_RULE_TYPE_PREDEFINED_EXPRESSION = 'PREDEFINED_EXPRESSION'

A constant which can be used with the metric_expression_rule_type property of a ManagedComputeClusterMetricExpressionRule. This constant has a value of “PREDEFINED_EXPRESSION”

METRIC_TYPE_CPU_UTILIZATION = 'CPU_UTILIZATION'

A constant which can be used with the metric_type property of a ManagedComputeClusterPredefinedMetricExpressionRule. 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 ManagedComputeClusterPredefinedMetricExpressionRule. This constant has a value of “MEMORY_UTILIZATION”

__init__(**kwargs)

Initializes a new ManagedComputeClusterPredefinedMetricExpressionRule object with values from keyword arguments. The default value of the metric_expression_rule_type attribute of this class is PREDEFINED_EXPRESSION and 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 ManagedComputeClusterPredefinedMetricExpressionRule. Allowed values for this property are: “PREDEFINED_EXPRESSION”, “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 ManagedComputeClusterPredefinedMetricExpressionRule. 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_in_configuration (oci.data_science.models.ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration) – The value to assign to the scale_in_configuration property of this ManagedComputeClusterPredefinedMetricExpressionRule.

  • scale_out_configuration (oci.data_science.models.ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration) – The value to assign to the scale_out_configuration property of this ManagedComputeClusterPredefinedMetricExpressionRule.

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 metric_expression_rule_type

[Required] Gets the metric_expression_rule_type of this ManagedComputeClusterMetricExpressionRule. The metric expression for creating the alarm used to trigger autoscaling actions on the managed compute cluster type compute target .

Allowed values for this property are: “PREDEFINED_EXPRESSION”, “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 ManagedComputeClusterMetricExpressionRule.

Return type

str

property metric_type

[Required] Gets the metric_type of this ManagedComputeClusterPredefinedMetricExpressionRule. 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 ManagedComputeClusterPredefinedMetricExpressionRule.

Return type

str

property scale_in_configuration

[Required] Gets the scale_in_configuration of this ManagedComputeClusterPredefinedMetricExpressionRule.

Returns

The scale_in_configuration of this ManagedComputeClusterPredefinedMetricExpressionRule.

Return type

oci.data_science.models.ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration

property scale_out_configuration

[Required] Gets the scale_out_configuration of this ManagedComputeClusterPredefinedMetricExpressionRule.

Returns

The scale_out_configuration of this ManagedComputeClusterPredefinedMetricExpressionRule.

Return type

oci.data_science.models.ManagedComputeClusterPredefinedExpressionThresholdScalingConfiguration