📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
data_science
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/data_science/models/__pycache__
💾
Free:
45.9 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: predefined_metric_expression_rule.cpython-39.opt-1.pyc
a ���f � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�MetricExpressionRule� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zdd� Zdd� Z dd� ZdS )�PredefinedMetricExpressionRulezw An expression built using CPU or Memory metrics for triggering an autoscaling action on the model deployment. �CPU_UTILIZATION�MEMORY_UTILIZATIONc K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS ) a� Initializes a new PredefinedMetricExpressionRule object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.PredefinedMetricExpressionRule.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): :param metric_expression_rule_type: The value to assign to the metric_expression_rule_type property of this PredefinedMetricExpressionRule. 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'. :type metric_expression_rule_type: str :param metric_type: The value to assign to the metric_type property of this PredefinedMetricExpressionRule. 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'. :type metric_type: str :param scale_in_configuration: The value to assign to the scale_in_configuration property of this PredefinedMetricExpressionRule. :type scale_in_configuration: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration :param scale_out_configuration: The value to assign to the scale_out_configuration property of this PredefinedMetricExpressionRule. :type scale_out_configuration: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration �strZ1PredefinedExpressionThresholdScalingConfiguration)Zmetric_expression_rule_type�metric_type�scale_in_configuration�scale_out_configurationZmetricExpressionRuleTypeZ metricTypeZscaleInConfigurationZscaleOutConfigurationNZPREDEFINED_EXPRESSION)Z swagger_typesZ attribute_mapZ_metric_expression_rule_type�_metric_type�_scale_in_configuration�_scale_out_configuration)�self�kwargs� r �]/usr/lib/python3.9/site-packages/oci/data_science/models/predefined_metric_expression_rule.py�__init__ s ��z'PredefinedMetricExpressionRule.__init__c C s | j S )a� **[Required]** Gets the metric_type of this PredefinedMetricExpressionRule. 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'. :return: The metric_type of this PredefinedMetricExpressionRule. :rtype: str )r �r r r r r I s z*PredefinedMetricExpressionRule.metric_typec C s ddg}t ||�sd}|| _dS )z� Sets the metric_type of this PredefinedMetricExpressionRule. Metric type :param metric_type: The metric_type of this PredefinedMetricExpressionRule. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r X s c C s | j S )a **[Required]** Gets the scale_in_configuration of this PredefinedMetricExpressionRule. :return: The scale_in_configuration of this PredefinedMetricExpressionRule. :rtype: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration �r r r r r r g s z5PredefinedMetricExpressionRule.scale_in_configurationc C s || _ dS )a Sets the scale_in_configuration of this PredefinedMetricExpressionRule. :param scale_in_configuration: The scale_in_configuration of this PredefinedMetricExpressionRule. :type: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration Nr )r r r r r r q s c C s | j S )a **[Required]** Gets the scale_out_configuration of this PredefinedMetricExpressionRule. :return: The scale_out_configuration of this PredefinedMetricExpressionRule. :rtype: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration �r r r r r r { s z6PredefinedMetricExpressionRule.scale_out_configurationc C s || _ dS )a Sets the scale_out_configuration of this PredefinedMetricExpressionRule. :param scale_out_configuration: The scale_out_configuration of this PredefinedMetricExpressionRule. :type: oci.data_science.models.PredefinedExpressionThresholdScalingConfiguration Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z'PredefinedMetricExpressionRule.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z%PredefinedMetricExpressionRule.__eq__c C s | |k S r r r r r r �__ne__� s z%PredefinedMetricExpressionRule.__ne__N)�__name__� __module__�__qualname__�__doc__ZMETRIC_TYPE_CPU_UTILIZATIONZMETRIC_TYPE_MEMORY_UTILIZATIONr �propertyr �setterr r r r r r r r r r s&