Dashboard
PHP:
8.3.33
OS:
Linux
User:
proje374
/
/
usr
/
libexec
/
oracle-cloud-agent
/
plugins
/
osms
/
oci
/
opsi
/
models
📤 Upload
📝 New File
📁 New Folder
Close
Editing: host_performance_metric_group.pyc
a O��f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdd� Ze dd � �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zdd� Zdd� Zdd� ZdS )�HostPerformanceMetricGroupz8 Base Metric Group for Host performance metrics �HOST_CPU_USAGE�HOST_MEMORY_USAGE�HOST_NETWORK_ACTIVITY_SUMMARY�HOST_TOP_PROCESSESc K s( ddd�| _ ddd�| _d| _d| _dS )a3 Initializes a new HostPerformanceMetricGroup object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.opsi.models.HostMemoryUsage` * :class:`~oci.opsi.models.HostTopProcesses` * :class:`~oci.opsi.models.HostCpuUsage` * :class:`~oci.opsi.models.HostNetworkActivitySummary` 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 HostPerformanceMetricGroup. 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 HostPerformanceMetricGroup. :type time_collected: datetime �str�datetime)�metric_name�time_collected� metricName� timeCollectedN)� swagger_types� attribute_map�_metric_name�_time_collected)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/opsi/models/host_performance_metric_group.py�__init__ s ��z#HostPerformanceMetricGroup.__init__c C s@ | d }|dkrdS |dkr dS |dkr,dS |dkr8d S d S dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r �HostMemoryUsager �HostTopProcessesr �HostCpuUsager �HostNetworkActivitySummaryr Nr )�object_dictionary�typer r r �get_subtypeC s z&HostPerformanceMetricGroup.get_subtypec C s | j S )aa **[Required]** Gets the metric_name of this HostPerformanceMetricGroup. Name of the metric group Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY", "HOST_TOP_PROCESSES" :return: The metric_name of this HostPerformanceMetricGroup. :rtype: str )r �r r r r r Y s z&HostPerformanceMetricGroup.metric_namec C s* g d�}t ||�s td�|���|| _dS )z� Sets the metric_name of this HostPerformanceMetricGroup. Name of the metric group :param metric_name: The metric_name of this HostPerformanceMetricGroup. :type: str )r r r r z;Invalid value for `metric_name`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r g s ��c C s | j S )a **[Required]** Gets the time_collected of this HostPerformanceMetricGroup. Collection timestamp Example: `"2020-05-06T00:00:00.000Z"` :return: The time_collected of this HostPerformanceMetricGroup. :rtype: datetime �r r! r r r r y s z)HostPerformanceMetricGroup.time_collectedc C s || _ dS )a Sets the time_collected of this HostPerformanceMetricGroup. Collection timestamp Example: `"2020-05-06T00:00:00.000Z"` :param time_collected: The time_collected of this HostPerformanceMetricGroup. :type: datetime Nr% )r r r r r r � s c C s t | �S �N)r r! r r r �__repr__� s z#HostPerformanceMetricGroup.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z!HostPerformanceMetricGroup.__eq__c C s | |k S r&