
    gP                     X   U d dl mZmZmZmZmZmZmZ d dlm	Z	m
Z
mZmZmZ eee	gee   f   eee   e	df   f   ZdZeed<   	 dede
fdZd	Zeed
<   	 dedeee      defdZdZeed<   	 dede
fdZdZeed<   	 dede
fdZdZeed<   	 dede
fdZdZeed<   	 dedeee      defdZy)    )CallableFinal	GeneratorIterableOptionalSequenceUnion)CallbackOptionsCounterMeterObservableGaugeObservationNzcontainer.cpu.timeCONTAINER_CPU_TIMEmeterreturnc                 2    | j                  t        d d      S )zTotal CPU time consumedsnamedescriptionunit)create_counterr   r   s    p/var/www/openai/venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/metrics/container_metrics.pycreate_container_cpu_timer   1   s#    -        zcontainer.cpu.usageCONTAINER_CPU_USAGE	callbacksc                 4    | j                  t        |d d      S )zWContainer's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUsz{cpu}r   r   r   r   )create_observable_gauger   r   r   s     r   create_container_cpu_usager#   C   s(     (( m	 )  r   zcontainer.disk.ioCONTAINER_DISK_IOc                 2    | j                  t        dd      S )zDisk bytes for the containerzDisk bytes for the container.Byr   )r   r$   r   s    r   create_container_disk_ior'   X   s#    3    r   zcontainer.memory.usageCONTAINER_MEMORY_USAGEc                 2    | j                  t        dd      S )zMemory usage of the containerzMemory usage of the container.r&   r   )r   r(   r   s    r   create_container_memory_usager*   j   s#    #4    r   zcontainer.network.ioCONTAINER_NETWORK_IOc                 2    | j                  t        dd      S )zNetwork bytes for the containerz Network bytes for the container.r&   r   )r   r+   r   s    r   create_container_network_ior-   |   s#    !6    r   zcontainer.uptimeCONTAINER_UPTIMEc                 4    | j                  t        |d d      S )z'The time the container has been runningr   r    )r!   r.   r"   s     r   create_container_uptimer0      s(     ((=	 )  r   )typingr   r   r   r   r   r   r	   opentelemetry.metricsr
   r   r   r   r   	CallbackTr   __annotations__r   r   r#   r$   r'   r(   r*   r+   r-   r.   r0    r   r   <module>r6      s^       o 556h{#_d:;=	
 1 E 0U w  3 U 2		%hy&9:		 / 5 .E g  !9  8 7  5 e 4u   - % ,		%hy&9:		r   