ruạṛ
a ���fv � @ 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 ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z d d� Z dd� Zdd� ZdS )� Datapointz0 Metric value for a specific timestamp. c K s2 dddd�| _ dddd�| _d| _d| _d| _dS ) aC Initializes a new Datapoint object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param timestamp: The value to assign to the timestamp property of this Datapoint. :type timestamp: datetime :param value: The value to assign to the value property of this Datapoint. :type value: float :param count: The value to assign to the count property of this Datapoint. :type count: int Zdatetime�float�int)� timestamp�value�countr r r N)Z swagger_typesZ attribute_map� _timestamp�_value�_count)�self�kwargs� r �C/usr/lib/python3.9/site-packages/oci/monitoring/models/datapoint.py�__init__ s ��zDatapoint.__init__c C s | j S )a� **[Required]** Gets the timestamp of this Datapoint. Timestamp for this metric value. Format defined by RFC3339. For a data point to be posted, its timestamp must be near current time (less than two hours in the past and less than 10 minutes in the future). Example: `2023-02-01T01:02:29.600Z` :return: The timestamp of this Datapoint. :rtype: datetime �r �r r r r r 4 s zDatapoint.timestampc C s || _ dS )a� Sets the timestamp of this Datapoint. Timestamp for this metric value. Format defined by RFC3339. For a data point to be posted, its timestamp must be near current time (less than two hours in the past and less than 10 minutes in the future). Example: `2023-02-01T01:02:29.600Z` :param timestamp: The timestamp of this Datapoint. :type: datetime Nr )r r r r r r C s c C s | j S )z� **[Required]** Gets the value of this Datapoint. Numeric value of the metric. Example: `10.23` :return: The value of this Datapoint. :rtype: float �r r r r r r R s zDatapoint.valuec C s || _ dS )z� Sets the value of this Datapoint. Numeric value of the metric. Example: `10.23` :param value: The value of this Datapoint. :type: float Nr )r r r r r r ` s c C s | j S )z� Gets the count of this Datapoint. The number of occurrences of the associated value in the set of data. Default is 1. Value must be greater than zero. :return: The count of this Datapoint. :rtype: int �r r r r r r n s zDatapoint.countc C s || _ dS )a Sets the count of this Datapoint. The number of occurrences of the associated value in the set of data. Default is 1. Value must be greater than zero. :param count: The count of this Datapoint. :type: int Nr )r r r r r r | s c C s t | �S �N)r r r r r �__repr__� s zDatapoint.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDatapoint.__eq__c C s | |k S r r r r r r �__ne__� s zDatapoint.__ne__N) �__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r r s"