Ë
    9ÀYfg  ã                   ó2   — d dl mZ d dlmZ  G d„ de«      Zy)é    )Úformat_points)ÚSendableAPIResourcec                   ó2   ‡ — e Zd ZdZdZedˆ fd„	«       Zˆ xZS )ÚDistributionz&A wrapper around Distribution HTTP APIÚdistribution_pointsc                 ó¼   •— |r.|D ]$  }t        |t        «      sŒt        |d   «      |d<   Œ& d|i}nt        |d   «      |d<   d|gi}t        t        |   d||dœ|¤ŽS )a°  
        Submit a distribution metric or a list of distribution metrics to the distribution metric
        API

        :param compress_payload: compress the payload using zlib
        :type compress_payload: bool
        :param metric: the name of the time series
        :type metric: string
        :param points: a (timestamp, [list of values]) pair or
        list of (timestamp, [list of values]) pairs
        :type points: list
        :param host: host name that produced the metric
        :type host: string
        :param tags:  list of tags associated with the metric.
        :type tags: string list
        :returns: Dictionary representing the API's JSON response
        ÚpointsÚseries)Úattach_host_nameÚcompress_payload© )Ú
isinstanceÚdictr   Úsuperr   Úsend)ÚclsÚdistributionsr   r   ÚdistributionÚdÚseries_dictÚ	__class__s          €úY/var/www/highfloat_scraper/venv/lib/python3.12/site-packages/datadog/api/distributions.pyr   zDistribution.send   sˆ   ø€ ñ& à"ò =Ü˜a¤Õ&Ü"/°°(±Ó"<Ah’Kð=ð $ ]Ð3‰Kô &3°<ÀÑ3IÓ%JˆL˜Ñ"Ø# l ^Ð4ˆKÜ”\ 3Ñ,ð 
Ø-Ð@Pñ
ØT_ñ
ð 	
ó    )NTF)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú_resource_nameÚclassmethodr   Ú__classcell__)r   s   @r   r   r   	   s   ø„ Ù0à*€Nàô
ó ô
r   r   N)Údatadog.api.formatr   Údatadog.api.resourcesr   r   r   r   r   ú<module>r#      s   ðõ
 -Ý 5ô$
Ð&õ $
r   