ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�HostResourceStatistics� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd d� Z dd � Z dd� ZdS )�HostCpuStatisticsz" Contains CPU statistics. c K s` dddddddd�| _ ddddd d dd�| _d| _d| _d| _d| _d| _d| _d| _d | _dS )aL Initializes a new HostCpuStatistics object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostCpuStatistics.resource_name` attribute of this class is ``HOST_CPU_STATISTICS`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param usage: The value to assign to the usage property of this HostCpuStatistics. :type usage: float :param capacity: The value to assign to the capacity property of this HostCpuStatistics. :type capacity: float :param utilization_percent: The value to assign to the utilization_percent property of this HostCpuStatistics. :type utilization_percent: float :param usage_change_percent: The value to assign to the usage_change_percent property of this HostCpuStatistics. :type usage_change_percent: float :param resource_name: The value to assign to the resource_name property of this HostCpuStatistics. Allowed values for this property are: "HOST_CPU_STATISTICS", "HOST_MEMORY_STATISTICS", "HOST_STORAGE_STATISTICS", "HOST_NETWORK_STATISTICS" :type resource_name: str :param cpu_baseline: The value to assign to the cpu_baseline property of this HostCpuStatistics. :type cpu_baseline: float :param load: The value to assign to the load property of this HostCpuStatistics. :type load: oci.opsi.models.SummaryStatistics �float�strZSummaryStatistics)�usage�capacityZutilization_percentZusage_change_percent� resource_name�cpu_baseline�loadr r ZutilizationPercentZusageChangePercentZresourceNameZcpuBaseliner NZHOST_CPU_STATISTICS) Z swagger_typesZ attribute_mapZ_usageZ _capacityZ_utilization_percentZ_usage_change_percentZ_resource_name� _cpu_baseline�_load)�self�kwargs� r �G/usr/lib/python3.9/site-packages/oci/opsi/models/host_cpu_statistics.py�__init__ s0 %�� zHostCpuStatistics.__init__c C s | j S )aJ Gets the cpu_baseline of this HostCpuStatistics. The baseline utilization is a fraction of each CPU core expressed in percentages, either 12.5% or 50%. The baseline provides the minimum CPUs that can be used constantly. :return: The cpu_baseline of this HostCpuStatistics. :rtype: float �r �r r r r r S s zHostCpuStatistics.cpu_baselinec C s || _ dS )aU Sets the cpu_baseline of this HostCpuStatistics. The baseline utilization is a fraction of each CPU core expressed in percentages, either 12.5% or 50%. The baseline provides the minimum CPUs that can be used constantly. :param cpu_baseline: The cpu_baseline of this HostCpuStatistics. :type: float Nr )r r r r r r _ s c C s | j S )z� Gets the load of this HostCpuStatistics. :return: The load of this HostCpuStatistics. :rtype: oci.opsi.models.SummaryStatistics �r r r r r r k s zHostCpuStatistics.loadc C s || _ dS )z� Sets the load of this HostCpuStatistics. :param load: The load of this HostCpuStatistics. :type: oci.opsi.models.SummaryStatistics Nr )r r r r r r u s c C s t | �S �N)r r r r r �__repr__ s zHostCpuStatistics.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zHostCpuStatistics.__eq__c C s | |k S r r r r r r �__ne__� s zHostCpuStatistics.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r s A r N) Zhost_resource_statisticsr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn