o
    i                     @   sD   d Z ddlmZ G dd deZG dd deZG dd deZd	S )
z
Reporter classes.
    )apic                   @      e Zd Zdd ZdS )Reporterc                 C   s   t  N)NotImplementedErrorselfmetrics r
   Q/home/ubuntu/.local/lib/python3.10/site-packages/datadog/threadstats/reporters.pyflush   s   zReporter.flushN__name__
__module____qualname__r   r
   r
   r
   r   r          r   c                   @   s.   e Zd ZdddZdd Zdd Zdd	 Zd
S )HttpReporterFc                 C   s
   || _ d S r   compress_payload)r   r   r
   r
   r   __init__   s   
zHttpReporter.__init__c                 C      t jj|| jd d S Nr   )r   Distributionsendr   )r   distributionsr
   r
   r   flush_distributions      z HttpReporter.flush_distributionsc                 C   r   r   )r   Metricr   r   r   r
   r
   r   flush_metrics   r   zHttpReporter.flush_metricsc                 C   s    |D ]}t jjdi | qd S )Nr
   )r   Eventcreate)r   eventseventr
   r
   r   flush_events   s   zHttpReporter.flush_eventsN)F)r   r   r   r   r   r   r#   r
   r
   r
   r   r      s
    
r   c                   @   r   )GraphiteReporterc                 C   s   d S r   r
   r   r
   r
   r   r   !   s   zGraphiteReporter.flushNr   r
   r
   r
   r   r$       r   r$   N)__doc__datadogr   objectr   r   r$   r
   r
   r
   r   <module>   s
   