o
    `šjø  ã                   @   s@   d dl mZmZ d dlmZ G dd„ deeƒZG dd„ dƒZdS )é    )ÚABCÚabstractmethod)ÚAbstractStatc                   @   s   e Zd ZdZedd„ ƒZdS )ÚAbstractCompoundStatzÃ
    A compound stat is a stat where a single measurement and associated
    data structure feeds many metrics. This is the example for a
    histogram which has many associated percentiles.
    c                 C   s   dS )z0
        Return list of NamedMeasurable
        N© ©Úselfr   r   úY/home/djax/ivt_ai_plugin/venv/lib/python3.10/site-packages/kafka/metrics/compound_stat.pyÚstats   s   zAbstractCompoundStat.statsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r
   r   r   r   r	   r      s    r   c                   @   s0   e Zd ZdZdd„ Zedd„ ƒZedd„ ƒZdS )	ÚNamedMeasurable©Ú_nameÚ_statc                 C   s   || _ || _d S ©Nr   )r   Úmetric_nameÚmeasurable_statr   r   r	   Ú__init__   s   
zNamedMeasurable.__init__c                 C   ó   | j S r   )r   r   r   r   r	   Úname   ó   zNamedMeasurable.namec                 C   r   r   )r   r   r   r   r	   Ústat   r   zNamedMeasurable.statN)r   r   r   Ú	__slots__r   Úpropertyr   r   r   r   r   r	   r      s    
r   N)Úabcr   r   Úkafka.metrics.statr   r   r   r   r   r   r	   Ú<module>   s    