📂 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.4 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: custom_expression_query_scaling_configuration.cpython-39.pyc
a ���fF � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�ScalingConfiguration� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sJ e Zd ZdZdd� Zedd� �Zejdd� �Zdd� Zd d � Z dd� Z d S )�)CustomExpressionQueryScalingConfigurationzJ The scaling configuration for the custom metric expression rule. c K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS ) a� Initializes a new CustomExpressionQueryScalingConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.data_science.models.CustomExpressionQueryScalingConfiguration.scaling_configuration_type` attribute of this class is ``QUERY`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param scaling_configuration_type: The value to assign to the scaling_configuration_type property of this CustomExpressionQueryScalingConfiguration. Allowed values for this property are: "THRESHOLD", "QUERY" :type scaling_configuration_type: str :param pending_duration: The value to assign to the pending_duration property of this CustomExpressionQueryScalingConfiguration. :type pending_duration: str :param instance_count_adjustment: The value to assign to the instance_count_adjustment property of this CustomExpressionQueryScalingConfiguration. :type instance_count_adjustment: int :param query: The value to assign to the query property of this CustomExpressionQueryScalingConfiguration. :type query: str �str�int)Zscaling_configuration_typeZpending_durationZinstance_count_adjustment�queryZscalingConfigurationTypeZpendingDurationZinstanceCountAdjustmentr NZQUERY)Z swagger_typesZ attribute_mapZ_scaling_configuration_typeZ_pending_durationZ_instance_count_adjustment�_query)�self�kwargs� r �i/usr/lib/python3.9/site-packages/oci/data_science/models/custom_expression_query_scaling_configuration.py�__init__ s ��z2CustomExpressionQueryScalingConfiguration.__init__c C s | j S )aA **[Required]** Gets the query of this CustomExpressionQueryScalingConfiguration. The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: `1m`-`60m` (also `1h`). You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. Example of threshold alarm: ----- CPUUtilization[1m]{resourceId = "MODEL_DEPLOYMENT_OCID"}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = "MODEL_DEPLOYMENT_OCID"}.grouping().mean() > 75 ----- :return: The query of this CustomExpressionQueryScalingConfiguration. :rtype: str �r �r r r r r >