CustomMetricExpressionRule¶
-
class
oci.data_science.models.
CustomMetricExpressionRule
(**kwargs)¶ Bases:
oci.data_science.models.metric_expression_rule.MetricExpressionRule
A custom Monitoring Query Language (MQL) expression for triggering an autoscaling action on the model deployment.
Attributes
METRIC_EXPRESSION_RULE_TYPE_CUSTOM_EXPRESSION
str(object=’’) -> str METRIC_EXPRESSION_RULE_TYPE_PREDEFINED_EXPRESSION
str(object=’’) -> str metric_expression_rule_type
[Required] Gets the metric_expression_rule_type of this MetricExpressionRule. scale_in_configuration
[Required] Gets the scale_in_configuration of this CustomMetricExpressionRule. scale_out_configuration
[Required] Gets the scale_out_configuration of this CustomMetricExpressionRule. Methods
__init__
(**kwargs)Initializes a new CustomMetricExpressionRule 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'¶
-
METRIC_EXPRESSION_RULE_TYPE_PREDEFINED_EXPRESSION
= 'PREDEFINED_EXPRESSION'¶
-
__init__
(**kwargs)¶ Initializes a new CustomMetricExpressionRule object with values from keyword arguments. The default value of the
metric_expression_rule_type
attribute of this class isCUSTOM_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 CustomMetricExpressionRule. Allowed values for this property are: “PREDEFINED_EXPRESSION”, “CUSTOM_EXPRESSION”
- scale_in_configuration (oci.data_science.models.CustomExpressionQueryScalingConfiguration) – The value to assign to the scale_in_configuration property of this CustomMetricExpressionRule.
- scale_out_configuration (oci.data_science.models.CustomExpressionQueryScalingConfiguration) – The value to assign to the scale_out_configuration property of this CustomMetricExpressionRule.
-
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 MetricExpressionRule. The metric expression for creating the alarm used to trigger autoscaling actions on the model deployment.
The following values are supported:
- PREDEFINED_EXPRESSION: An expression built using CPU or Memory metrics emitted by the Model Deployment Monitoring.
- CUSTOM_EXPRESSION: A custom Monitoring Query Language (MQL) expression.
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 MetricExpressionRule. Return type: str
-
scale_in_configuration
¶ [Required] Gets the scale_in_configuration of this CustomMetricExpressionRule.
Returns: The scale_in_configuration of this CustomMetricExpressionRule. Return type: oci.data_science.models.CustomExpressionQueryScalingConfiguration
-
scale_out_configuration
¶ [Required] Gets the scale_out_configuration of this CustomMetricExpressionRule.
Returns: The scale_out_configuration of this CustomMetricExpressionRule. Return type: oci.data_science.models.CustomExpressionQueryScalingConfiguration
-