ruạṛ
a ���f, � @ 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� �Zdd � Zd!d"� Zd#d$� Zd%S )&�HostCpuUsagez' CPU Usage metric for the host c K s� dddddddddddd�| _ ddddd d ddd ddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _dS )aj Initializes a new HostCpuUsage object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostCpuUsage.metric_name` attribute of this class is ``HOST_CPU_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 HostCpuUsage. 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 HostCpuUsage. :type time_collected: datetime :param cpu_user_mode_in_percent: The value to assign to the cpu_user_mode_in_percent property of this HostCpuUsage. :type cpu_user_mode_in_percent: float :param cpu_system_mode_in_percent: The value to assign to the cpu_system_mode_in_percent property of this HostCpuUsage. :type cpu_system_mode_in_percent: float :param cpu_usage_in_sec: The value to assign to the cpu_usage_in_sec property of this HostCpuUsage. :type cpu_usage_in_sec: float :param cpu_utilization_in_percent: The value to assign to the cpu_utilization_in_percent property of this HostCpuUsage. :type cpu_utilization_in_percent: float :param cpu_stolen_in_percent: The value to assign to the cpu_stolen_in_percent property of this HostCpuUsage. :type cpu_stolen_in_percent: float :param cpu_idle_in_percent: The value to assign to the cpu_idle_in_percent property of this HostCpuUsage. :type cpu_idle_in_percent: float :param cpu_load1min: The value to assign to the cpu_load1min property of this HostCpuUsage. :type cpu_load1min: float :param cpu_load5min: The value to assign to the cpu_load5min property of this HostCpuUsage. :type cpu_load5min: float :param cpu_load15min: The value to assign to the cpu_load15min property of this HostCpuUsage. :type cpu_load15min: float �strZdatetime�float)Zmetric_nameZtime_collected�cpu_user_mode_in_percent�cpu_system_mode_in_percent�cpu_usage_in_sec�cpu_utilization_in_percent�cpu_stolen_in_percent�cpu_idle_in_percent�cpu_load1min�cpu_load5min� cpu_load15minZ metricNameZ timeCollectedZcpuUserModeInPercentZcpuSystemModeInPercentZ cpuUsageInSecZcpuUtilizationInPercentZcpuStolenInPercentZcpuIdleInPercentZcpuLoad1minZcpuLoad5minZcpuLoad15minNZHOST_CPU_USAGE) Z swagger_typesZ attribute_mapZ_metric_nameZ_time_collected�_cpu_user_mode_in_percent�_cpu_system_mode_in_percent�_cpu_usage_in_sec�_cpu_utilization_in_percent�_cpu_stolen_in_percent�_cpu_idle_in_percent� _cpu_load1min� _cpu_load5min�_cpu_load15min)�self�kwargs� r �B/usr/lib/python3.9/site-packages/oci/opsi/models/host_cpu_usage.py�__init__ sH 5��zHostCpuUsage.__init__c C s | j S )z� Gets the cpu_user_mode_in_percent of this HostCpuUsage. Percentage of CPU time spent in user mode :return: The cpu_user_mode_in_percent of this HostCpuUsage. :rtype: float �r �r r r r r o s z%HostCpuUsage.cpu_user_mode_in_percentc C s || _ dS )z� Sets the cpu_user_mode_in_percent of this HostCpuUsage. Percentage of CPU time spent in user mode :param cpu_user_mode_in_percent: The cpu_user_mode_in_percent of this HostCpuUsage. :type: float Nr"