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
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 ) ÚInstanceMetricsz-
    Object containing instance metrics.
    c                 K   sZ   ddddddddœ| _ dddddd	d
dœ| _d| _d| _d| _d| _d| _d| _d| _dS )aü  
        Initializes a new InstanceMetrics object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param host_name:
            The value to assign to the host_name property of this InstanceMetrics.
        :type host_name: str

        :param instance_name:
            The value to assign to the instance_name property of this InstanceMetrics.
        :type instance_name: str

        :param usage:
            The value to assign to the usage property of this InstanceMetrics.
        :type usage: float

        :param capacity:
            The value to assign to the capacity property of this InstanceMetrics.
        :type capacity: float

        :param total_host_capacity:
            The value to assign to the total_host_capacity property of this InstanceMetrics.
        :type total_host_capacity: float

        :param utilization_percent:
            The value to assign to the utilization_percent property of this InstanceMetrics.
        :type utilization_percent: float

        :param usage_change_percent:
            The value to assign to the usage_change_percent property of this InstanceMetrics.
        :type usage_change_percent: float

        ÚstrÚfloat)Ú	host_nameÚinstance_nameÚusageÚcapacityÚtotal_host_capacityÚutilization_percentÚusage_change_percentZhostNameZinstanceNamer   r   ZtotalHostCapacityZutilizationPercentZusageChangePercentN)	Zswagger_typesZattribute_mapÚ
_host_nameÚ_instance_nameÚ_usageÚ	_capacityÚ_total_host_capacityÚ_utilization_percentÚ_usage_change_percent)ÚselfÚkwargs© r   úDusr/lib/python3.10/site-packages/oci/opsi/models/instance_metrics.pyÚ__init__   s.   #ùù

zInstanceMetrics.__init__c                 C   ó   | j S )zÂ
        Gets the host_name of this InstanceMetrics.
        The hostname of the database insight resource.


        :return: The host_name of this InstanceMetrics.
        :rtype: str
        ©r   ©r   r   r   r   r	   P   ó   
zInstanceMetrics.host_namec                 C   ó
   || _ dS )zÊ
        Sets the host_name of this InstanceMetrics.
        The hostname of the database insight resource.


        :param host_name: The host_name of this InstanceMetrics.
        :type: str
        Nr   )r   r	   r   r   r   r	   \   ó   

c                 C   r   )zÏ
        Gets the instance_name of this InstanceMetrics.
        The instance name of the database insight resource.


        :return: The instance_name of this InstanceMetrics.
        :rtype: str
        ©r   r   r   r   r   r
   h   r   zInstanceMetrics.instance_namec                 C   r    )zÛ
        Sets the instance_name of this InstanceMetrics.
        The instance name of the database insight resource.


        :param instance_name: The instance_name of this InstanceMetrics.
        :type: str
        Nr"   )r   r
   r   r   r   r
   t   r!   c                 C   r   )zË
        Gets the usage of this InstanceMetrics.
        Total amount used of the resource metric type (CPU, STORAGE).


        :return: The usage of this InstanceMetrics.
        :rtype: float
        ©r   r   r   r   r   r   €   r   zInstanceMetrics.usagec                 C   r    )zÏ
        Sets the usage of this InstanceMetrics.
        Total amount used of the resource metric type (CPU, STORAGE).


        :param usage: The usage of this InstanceMetrics.
        :type: float
        Nr#   )r   r   r   r   r   r   Œ   r!   c                 C   r   )zô
        Gets the capacity of this InstanceMetrics.
        The maximum allocated amount of the resource metric type  (CPU, STORAGE) for a set of databases.


        :return: The capacity of this InstanceMetrics.
        :rtype: float
        ©r   r   r   r   r   r   ˜   r   zInstanceMetrics.capacityc                 C   r    )zû
        Sets the capacity of this InstanceMetrics.
        The maximum allocated amount of the resource metric type  (CPU, STORAGE) for a set of databases.


        :param capacity: The capacity of this InstanceMetrics.
        :type: float
        Nr$   )r   r   r   r   r   r   ¤   r!   c                 C   r   )aB  
        Gets the total_host_capacity of this InstanceMetrics.
        The maximum host CPUs (cores x threads/core) on the underlying infrastructure. This only applies to CPU and does not not apply for Autonomous Databases.


        :return: The total_host_capacity of this InstanceMetrics.
        :rtype: float
        ©r   r   r   r   r   r   °   r   z#InstanceMetrics.total_host_capacityc                 C   r    )aT  
        Sets the total_host_capacity of this InstanceMetrics.
        The maximum host CPUs (cores x threads/core) on the underlying infrastructure. This only applies to CPU and does not not apply for Autonomous Databases.


        :param total_host_capacity: The total_host_capacity of this InstanceMetrics.
        :type: float
        Nr%   )r   r   r   r   r   r   ¼   r!   c                 C   r   )zÌ
        Gets the utilization_percent of this InstanceMetrics.
        Resource utilization in percentage


        :return: The utilization_percent of this InstanceMetrics.
        :rtype: float
        ©r   r   r   r   r   r   È   r   z#InstanceMetrics.utilization_percentc                 C   r    )zÞ
        Sets the utilization_percent of this InstanceMetrics.
        Resource utilization in percentage


        :param utilization_percent: The utilization_percent of this InstanceMetrics.
        :type: float
        Nr&   )r   r   r   r   r   r   Ô   r!   c                 C   r   )zØ
        Gets the usage_change_percent of this InstanceMetrics.
        Change in resource utilization in percentage


        :return: The usage_change_percent of this InstanceMetrics.
        :rtype: float
        ©r   r   r   r   r   r   à   r   z$InstanceMetrics.usage_change_percentc                 C   r    )zë
        Sets the usage_change_percent of this InstanceMetrics.
        Change in resource utilization in percentage


        :param usage_change_percent: The usage_change_percent of this InstanceMetrics.
        :type: float
        Nr'   )r   r   r   r   r   r   ì   r!   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__ø   s   zInstanceMetrics.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__û   s   zInstanceMetrics.__eq__c                 C   s
   | |k S r(   r   r+   r   r   r   Ú__ne__  s   
zInstanceMetrics.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr	   Úsetterr
   r   r   r   r   r   r)   r-   r.   r   r   r   r   r      sD    >













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   