ruạṛ
a ���fwC � @ 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,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zd4d5� Zd6d7� Zd8d9� Zd:S );�HostTopProcessesz+ Top Processes metric for the host c K s� ddddddddddddddddddd�| _ ddddd d ddd dddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new HostTopProcesses object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostTopProcesses.metric_name` attribute of this class is ``HOST_TOP_PROCESSES`` 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 HostTopProcesses. Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY", "HOST_TOP_PROCESSES", "HOST_FILESYSTEM_USAGE", "HOST_GPU_USAGE", "HOST_GPU_PROCESSES", "HOST_IO_USAGE", "HOST_CONTAINERS" :type metric_name: str :param time_collected: The value to assign to the time_collected property of this HostTopProcesses. :type time_collected: datetime :param pid: The value to assign to the pid property of this HostTopProcesses. :type pid: float :param user_name: The value to assign to the user_name property of this HostTopProcesses. :type user_name: str :param memory_utilization_percent: The value to assign to the memory_utilization_percent property of this HostTopProcesses. :type memory_utilization_percent: float :param cpu_utilization_percent: The value to assign to the cpu_utilization_percent property of this HostTopProcesses. :type cpu_utilization_percent: float :param cpu_usage_in_seconds: The value to assign to the cpu_usage_in_seconds property of this HostTopProcesses. :type cpu_usage_in_seconds: float :param command: The value to assign to the command property of this HostTopProcesses. :type command: str :param virtual_memory_in_mbs: The value to assign to the virtual_memory_in_mbs property of this HostTopProcesses. :type virtual_memory_in_mbs: float :param physical_memory_in_mbs: The value to assign to the physical_memory_in_mbs property of this HostTopProcesses. :type physical_memory_in_mbs: float :param start_time: The value to assign to the start_time property of this HostTopProcesses. :type start_time: datetime :param total_processes: The value to assign to the total_processes property of this HostTopProcesses. :type total_processes: float :param container_id: The value to assign to the container_id property of this HostTopProcesses. :type container_id: str :param disk_bytes_read: The value to assign to the disk_bytes_read property of this HostTopProcesses. :type disk_bytes_read: float :param disk_bytes_written: The value to assign to the disk_bytes_written property of this HostTopProcesses. :type disk_bytes_written: float :param disk_iops_read: The value to assign to the disk_iops_read property of this HostTopProcesses. :type disk_iops_read: float :param disk_iops_written: The value to assign to the disk_iops_written property of this HostTopProcesses. :type disk_iops_written: float :param disk_iops: The value to assign to the disk_iops property of this HostTopProcesses. :type disk_iops: float �strZdatetime�float)Zmetric_nameZtime_collected�pid� user_name�memory_utilization_percent�cpu_utilization_percent�cpu_usage_in_seconds�command�virtual_memory_in_mbs�physical_memory_in_mbs� start_time�total_processes�container_id�disk_bytes_read�disk_bytes_written�disk_iops_read�disk_iops_written� disk_iopsZ metricNameZ timeCollectedr ZuserNameZmemoryUtilizationPercentZcpuUtilizationPercentZcpuUsageInSecondsr ZvirtualMemoryInMBsZphysicalMemoryInMBsZ startTimeZtotalProcessesZcontainerIdZ diskBytesReadZdiskBytesWrittenZdiskIopsReadZdiskIopsWrittenZdiskIopsNZHOST_TOP_PROCESSES)Z swagger_typesZ attribute_mapZ_metric_nameZ_time_collected�_pid� _user_name�_memory_utilization_percent�_cpu_utilization_percent�_cpu_usage_in_seconds�_command�_virtual_memory_in_mbs�_physical_memory_in_mbs�_start_time�_total_processes� _container_id�_disk_bytes_read�_disk_bytes_written�_disk_iops_read�_disk_iops_written� _disk_iops)�self�kwargs� r- �F/usr/lib/python3.9/site-packages/oci/opsi/models/host_top_processes.py�__init__ sr Q��zHostTopProcesses.__init__c C s | j S )z� Gets the pid of this HostTopProcesses. process id :return: The pid of this HostTopProcesses. :rtype: float �r �r+ r- r- r. r � s zHostTopProcesses.pidc C s || _ dS )z� Sets the pid of this HostTopProcesses. process id :param pid: The pid of this HostTopProcesses. :type: float Nr0 )r+ r r- r- r. r � s c C s | j S )z� Gets the user_name of this HostTopProcesses. User that started the process :return: The user_name of this HostTopProcesses. :rtype: str �r r1 r- r- r. r � s zHostTopProcesses.user_namec C s || _ dS )z� Sets the user_name of this HostTopProcesses. User that started the process :param user_name: The user_name of this HostTopProcesses. :type: str Nr2 )r+ r r- r- r. r � s c C s | j S )z� Gets the memory_utilization_percent of this HostTopProcesses. Memory utilization percentage :return: The memory_utilization_percent of this HostTopProcesses. :rtype: float �r r1 r- r- r. r � s z+HostTopProcesses.memory_utilization_percentc C s || _ dS )z� Sets the memory_utilization_percent of this HostTopProcesses. Memory utilization percentage :param memory_utilization_percent: The memory_utilization_percent of this HostTopProcesses. :type: float Nr3 )r+ r r- r- r. r � s c C s | j S )z� Gets the cpu_utilization_percent of this HostTopProcesses. CPU utilization percentage :return: The cpu_utilization_percent of this HostTopProcesses. :rtype: float �r r1 r- r- r. r � s z(HostTopProcesses.cpu_utilization_percentc C s || _ dS )z� Sets the cpu_utilization_percent of this HostTopProcesses. CPU utilization percentage :param cpu_utilization_percent: The cpu_utilization_percent of this HostTopProcesses. :type: float Nr4 )r+ r r- r- r. r � s c C s | j S )z� Gets the cpu_usage_in_seconds of this HostTopProcesses. CPU usage in seconds :return: The cpu_usage_in_seconds of this HostTopProcesses. :rtype: float �r r1 r- r- r. r s z%HostTopProcesses.cpu_usage_in_secondsc C s || _ dS )z� Sets the cpu_usage_in_seconds of this HostTopProcesses. CPU usage in seconds :param cpu_usage_in_seconds: The cpu_usage_in_seconds of this HostTopProcesses. :type: float Nr5 )r+ r r- r- r. r s c C s | j S )z� Gets the command of this HostTopProcesses. Command line executed for the process :return: The command of this HostTopProcesses. :rtype: str �r r1 r- r- r. r s zHostTopProcesses.commandc C s || _ dS )z� Sets the command of this HostTopProcesses. Command line executed for the process :param command: The command of this HostTopProcesses. :type: str Nr6 )r+ r r- r- r. r $ s c C s | j S )z� Gets the virtual_memory_in_mbs of this HostTopProcesses. Virtual memory in megabytes :return: The virtual_memory_in_mbs of this HostTopProcesses. :rtype: float �r! r1 r- r- r. r 0 s z&HostTopProcesses.virtual_memory_in_mbsc C s || _ dS )z� Sets the virtual_memory_in_mbs of this HostTopProcesses. Virtual memory in megabytes :param virtual_memory_in_mbs: The virtual_memory_in_mbs of this HostTopProcesses. :type: float Nr7 )r+ r r- r- r. r < s c C s | j S )z� Gets the physical_memory_in_mbs of this HostTopProcesses. Physical memory in megabytes :return: The physical_memory_in_mbs of this HostTopProcesses. :rtype: float �r"