o
    ëÉ¶dD  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s~   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	dd„ Z
dd„ Zdd„ ZdS )Ú	Datapointz0
    Metric value for a specific timestamp.
    c                 K   s2   ddddœ| _ ddddœ| _d| _d| _d| _dS )	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

        ÚdatetimeÚfloatÚint)Ú	timestampÚvalueÚcountr
   r   r   N)Zswagger_typesZattribute_mapÚ
_timestampÚ_valueÚ_count)ÚselfÚkwargs© r   úCusr/lib/python3.10/site-packages/oci/monitoring/models/datapoint.pyÚ__init__   s   ýý
zDatapoint.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the timestamp of this Datapoint.
        Timestamp for this metric value. Format defined by RFC3339.

        Example: `2019-02-01T01:02:29.600Z`


        :return: The timestamp of this Datapoint.
        :rtype: datetime
        ©r   ©r   r   r   r   r
   4   ó   zDatapoint.timestampc                 C   ó
   || _ dS )zý
        Sets the timestamp of this Datapoint.
        Timestamp for this metric value. Format defined by RFC3339.

        Example: `2019-02-01T01:02:29.600Z`


        :param timestamp: The timestamp of this Datapoint.
        :type: datetime
        Nr   )r   r
   r   r   r   r
   B   ó   
c                 C   r   )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   P   r   zDatapoint.valuec                 C   r   )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   ^   r   c                 C   r   )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   l   r   zDatapoint.countc                 C   r   )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   z   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__ˆ   s   zDatapoint.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__‹   s   zDatapoint.__eq__c                 C   s
   | |k S r   r   r    r   r   r   Ú__ne__‘   s   
zDatapoint.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr
   Úsetterr   r   r   r"   r#   r   r   r   r   r      s$    "





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   