o
    ɶd:                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s   e Zd ZdZdd Zedd Zejdd Zedd Zejd	d Zed
d Z	e	jdd Z	edd Z
e
jdd Z
dd Zdd Zdd ZdS )EvaluatedMetriczY
    One of the metrics that will be evaluated by profiles using this profile level.
    c                 K   s<   ddddd| _ ddddd| _d| _d| _d| _d| _dS )	a  
        Initializes a new EvaluatedMetric object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this EvaluatedMetric.
        :type name: str

        :param statistic:
            The value to assign to the statistic property of this EvaluatedMetric.
        :type statistic: str

        :param threshold:
            The value to assign to the threshold property of this EvaluatedMetric.
        :type threshold: float

        :param target:
            The value to assign to the target property of this EvaluatedMetric.
        :type target: float

        strfloat)name	statistic	thresholdtargetr	   r
   r   r   N)Zswagger_typesZattribute_map_name
_statistic
_threshold_target)selfkwargs r   Iusr/lib/python3.10/site-packages/oci/optimizer/models/evaluated_metric.py__init__   s   
zEvaluatedMetric.__init__c                 C      | j S )z
        **[Required]** Gets the name of this EvaluatedMetric.
        The name of the metric (e.g., `CpuUtilization`).


        :return: The name of this EvaluatedMetric.
        :rtype: str
        r   r   r   r   r   r	   ;      
zEvaluatedMetric.namec                 C   
   || _ dS )z
        Sets the name of this EvaluatedMetric.
        The name of the metric (e.g., `CpuUtilization`).


        :param name: The name of this EvaluatedMetric.
        :type: str
        Nr   )r   r	   r   r   r   r	   G      

c                 C   r   )z
        **[Required]** Gets the statistic of this EvaluatedMetric.
        The name of the statistic (e.g., `p95`).


        :return: The statistic of this EvaluatedMetric.
        :rtype: str
        r   r   r   r   r   r
   S   r   zEvaluatedMetric.statisticc                 C   r   )z
        Sets the statistic of this EvaluatedMetric.
        The name of the statistic (e.g., `p95`).


        :param statistic: The statistic of this EvaluatedMetric.
        :type: str
        Nr   )r   r
   r   r   r   r
   _   r   c                 C   r   )z
        **[Required]** Gets the threshold of this EvaluatedMetric.
        The threshold that must be crossed for the recommendation to appear.


        :return: The threshold of this EvaluatedMetric.
        :rtype: float
        r   r   r   r   r   r   k   r   zEvaluatedMetric.thresholdc                 C   r   )z
        Sets the threshold of this EvaluatedMetric.
        The threshold that must be crossed for the recommendation to appear.


        :param threshold: The threshold of this EvaluatedMetric.
        :type: float
        Nr   )r   r   r   r   r   r   w   r   c                 C   r   )z
        Gets the target of this EvaluatedMetric.
        Optional. The metric value that the recommendation will target.


        :return: The target of this EvaluatedMetric.
        :rtype: float
        r   r   r   r   r   r      r   zEvaluatedMetric.targetc                 C   r   )z
        Sets the target of this EvaluatedMetric.
        Optional. The metric value that the recommendation will target.


        :param target: The target of this EvaluatedMetric.
        :type: float
        Nr   )r   r   r   r   r   r      r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zEvaluatedMetric.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zEvaluatedMetric.__eq__c                 C   s
   | |k S r   r   r"   r   r   r   __ne__   s   
zEvaluatedMetric.__ne__N)__name__
__module____qualname____doc__r   propertyr	   setterr
   r   r   r    r$   r%   r   r   r   r   r      s,    )







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   