ruạṛ
a O��f�A � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�HostPerformanceMetricGroup� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zd.d/� Zd0d1� Zd2d3� Zd4S )5�HostMemoryUsagez* Memory usage metric for the host c K s� ddddddddddddddddd�| _ dddd d ddd ddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _dS )a� Initializes a new HostMemoryUsage object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostMemoryUsage.metric_name` attribute of this class is ``HOST_MEMORY_USAGE`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param metric_name: The value to assign to the metric_name property of this HostMemoryUsage. Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY", "HOST_TOP_PROCESSES" :type metric_name: str :param time_collected: The value to assign to the time_collected property of this HostMemoryUsage. :type time_collected: datetime :param memory_used_in_gb: The value to assign to the memory_used_in_gb property of this HostMemoryUsage. :type memory_used_in_gb: float :param memory_utilization_in_percent: The value to assign to the memory_utilization_in_percent property of this HostMemoryUsage. :type memory_utilization_in_percent: float :param memory_load_in_gb: The value to assign to the memory_load_in_gb property of this HostMemoryUsage. :type memory_load_in_gb: float :param real_memory_in_kb: The value to assign to the real_memory_in_kb property of this HostMemoryUsage. :type real_memory_in_kb: float :param free_memory_in_kb: The value to assign to the free_memory_in_kb property of this HostMemoryUsage. :type free_memory_in_kb: float :param logical_memory_used_in_gb: The value to assign to the logical_memory_used_in_gb property of this HostMemoryUsage. :type logical_memory_used_in_gb: float :param logical_memory_utilization_in_percent: The value to assign to the logical_memory_utilization_in_percent property of this HostMemoryUsage. :type logical_memory_utilization_in_percent: float :param free_logical_memory_in_kb: The value to assign to the free_logical_memory_in_kb property of this HostMemoryUsage. :type free_logical_memory_in_kb: float :param major_page_faults: The value to assign to the major_page_faults property of this HostMemoryUsage. :type major_page_faults: int :param swap_free_in_kb: The value to assign to the swap_free_in_kb property of this HostMemoryUsage. :type swap_free_in_kb: float :param anon_huge_pages_in_kb: The value to assign to the anon_huge_pages_in_kb property of this HostMemoryUsage. :type anon_huge_pages_in_kb: float :param huge_pages_free: The value to assign to the huge_pages_free property of this HostMemoryUsage. :type huge_pages_free: int :param huge_pages_reserved: The value to assign to the huge_pages_reserved property of this HostMemoryUsage. :type huge_pages_reserved: int :param huge_pages_surplus: The value to assign to the huge_pages_surplus property of this HostMemoryUsage. :type huge_pages_surplus: int �str�datetime�float�int)�metric_name�time_collected�memory_used_in_gb�memory_utilization_in_percent�memory_load_in_gb�real_memory_in_kb�free_memory_in_kb�logical_memory_used_in_gb�%logical_memory_utilization_in_percent�free_logical_memory_in_kb�major_page_faults�swap_free_in_kb�anon_huge_pages_in_kb�huge_pages_free�huge_pages_reserved�huge_pages_surplus� metricName� timeCollected�memoryUsedInGB�memoryUtilizationInPercent�memoryLoadInGB�realMemoryInKB�freeMemoryInKB�logicalMemoryUsedInGB�!logicalMemoryUtilizationInPercent�freeLogicalMemoryInKB�majorPageFaults�swapFreeInKB�anonHugePagesInKB� hugePagesFree�hugePagesReserved�hugePagesSurplusN�HOST_MEMORY_USAGE)� swagger_types� attribute_map�_metric_name�_time_collected�_memory_used_in_gb�_memory_utilization_in_percent�_memory_load_in_gb�_real_memory_in_kb�_free_memory_in_kb�_logical_memory_used_in_gb�&_logical_memory_utilization_in_percent�_free_logical_memory_in_kb�_major_page_faults�_swap_free_in_kb�_anon_huge_pages_in_kb�_huge_pages_free�_huge_pages_reserved�_huge_pages_surplus)�self�kwargs� rB ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/opsi/models/host_memory_usage.py�__init__ sf I��zHostMemoryUsage.__init__c C s | j S )z� Gets the memory_used_in_gb of this HostMemoryUsage. Amount of physical memory used in gigabytes :return: The memory_used_in_gb of this HostMemoryUsage. :rtype: float �r2 �r@ rB rB rC r � s z!HostMemoryUsage.memory_used_in_gbc C s || _ dS )z� Sets the memory_used_in_gb of this HostMemoryUsage. Amount of physical memory used in gigabytes :param memory_used_in_gb: The memory_used_in_gb of this HostMemoryUsage. :type: float NrE )r@ r rB rB rC r � s c C s | j S )z� Gets the memory_utilization_in_percent of this HostMemoryUsage. Amount of physical memory used in percentage :return: The memory_utilization_in_percent of this HostMemoryUsage. :rtype: float �r3 rF rB rB rC r � s z-HostMemoryUsage.memory_utilization_in_percentc C s || _ dS )a Sets the memory_utilization_in_percent of this HostMemoryUsage. Amount of physical memory used in percentage :param memory_utilization_in_percent: The memory_utilization_in_percent of this HostMemoryUsage. :type: float NrG )r@ r rB rB rC r � s c C s | j S )z� Gets the memory_load_in_gb of this HostMemoryUsage. Load on memory in gigabytes :return: The memory_load_in_gb of this HostMemoryUsage. :rtype: float �r4 rF rB rB rC r � s z!HostMemoryUsage.memory_load_in_gbc C s || _ dS )z� Sets the memory_load_in_gb of this HostMemoryUsage. Load on memory in gigabytes :param memory_load_in_gb: The memory_load_in_gb of this HostMemoryUsage. :type: float NrH )r@ r rB rB rC r � s c C s | j S )z� Gets the real_memory_in_kb of this HostMemoryUsage. Amount of usable physical memory in kilobytes :return: The real_memory_in_kb of this HostMemoryUsage. :rtype: float �r5 rF rB rB rC r � s z!HostMemoryUsage.real_memory_in_kbc C s || _ dS )z� Sets the real_memory_in_kb of this HostMemoryUsage. Amount of usable physical memory in kilobytes :param real_memory_in_kb: The real_memory_in_kb of this HostMemoryUsage. :type: float NrI )r@ r rB rB rC r � s c C s | j S )z� Gets the free_memory_in_kb of this HostMemoryUsage. Amount of available physical memory in kilobytes :return: The free_memory_in_kb of this HostMemoryUsage. :rtype: float �r6 rF rB rB rC r � s z!HostMemoryUsage.free_memory_in_kbc C s || _ dS )z� Sets the free_memory_in_kb of this HostMemoryUsage. Amount of available physical memory in kilobytes :param free_memory_in_kb: The free_memory_in_kb of this HostMemoryUsage. :type: float NrJ )r@ r rB rB rC r � s c C s | j S )z� Gets the logical_memory_used_in_gb of this HostMemoryUsage. Memory used excluding buffers and cache in gigabytes :return: The logical_memory_used_in_gb of this HostMemoryUsage. :rtype: float �r7 rF rB rB rC r s z)HostMemoryUsage.logical_memory_used_in_gbc C s || _ dS )a Sets the logical_memory_used_in_gb of this HostMemoryUsage. Memory used excluding buffers and cache in gigabytes :param logical_memory_used_in_gb: The logical_memory_used_in_gb of this HostMemoryUsage. :type: float NrK )r@ r rB rB rC r s c C s | j S )z� Gets the logical_memory_utilization_in_percent of this HostMemoryUsage. Amount of logical memory used in percentage :return: The logical_memory_utilization_in_percent of this HostMemoryUsage. :rtype: float �r8 rF rB rB rC r s z5HostMemoryUsage.logical_memory_utilization_in_percentc C s || _ dS )a Sets the logical_memory_utilization_in_percent of this HostMemoryUsage. Amount of logical memory used in percentage :param logical_memory_utilization_in_percent: The logical_memory_utilization_in_percent of this HostMemoryUsage. :type: float NrL )r@ r rB rB rC r , s c C s | j S )z� Gets the free_logical_memory_in_kb of this HostMemoryUsage. Amount of avaiable virtual memory in kilobytes :return: The free_logical_memory_in_kb of this HostMemoryUsage. :rtype: float �r9 rF rB rB rC r 8 s z)HostMemoryUsage.free_logical_memory_in_kbc C s || _ dS )z� Sets the free_logical_memory_in_kb of this HostMemoryUsage. Amount of avaiable virtual memory in kilobytes :param free_logical_memory_in_kb: The free_logical_memory_in_kb of this HostMemoryUsage. :type: float NrM )r@ r rB rB rC r D s c C s | j S )z� Gets the major_page_faults of this HostMemoryUsage. Number of major page faults :return: The major_page_faults of this HostMemoryUsage. :rtype: int �r: rF rB rB rC r P s z!HostMemoryUsage.major_page_faultsc C s || _ dS )z� Sets the major_page_faults of this HostMemoryUsage. Number of major page faults :param major_page_faults: The major_page_faults of this HostMemoryUsage. :type: int NrN )r@ r rB rB rC r \ s c C s | j S )z� Gets the swap_free_in_kb of this HostMemoryUsage. Amount of available swap space in kilobytes :return: The swap_free_in_kb of this HostMemoryUsage. :rtype: float �r; rF rB rB rC r h s zHostMemoryUsage.swap_free_in_kbc C s || _ dS )z� Sets the swap_free_in_kb of this HostMemoryUsage. Amount of available swap space in kilobytes :param swap_free_in_kb: The swap_free_in_kb of this HostMemoryUsage. :type: float NrO )r@ r rB rB rC r t s c C s | j S )z� Gets the anon_huge_pages_in_kb of this HostMemoryUsage. Amount of memory used for anon huge pages in kilobytes :return: The anon_huge_pages_in_kb of this HostMemoryUsage. :rtype: float �r<