
    Yj&                     ^   U d dl mZmZmZmZ d dlmZ d dlmZm	Z	m
Z
mZmZmZ eegee         f         eee         edf         z  ZdZeed<   	 de
de	fd	Zd
Zeed<   	 de
dee         dz  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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	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         dz  defd.Z)dS )/    )Callable	GeneratorIterableSequence)Final)CallbackOptionsCounterMeterObservableGaugeObservationUpDownCounterNzcontainer.cpu.timeCONTAINER_CPU_TIMEmeterreturnc                 <    |                      t          dd          S )zTotal CPU time consumedzTotal CPU time consumed.snamedescriptionunit)create_counterr   r   s    x/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/opentelemetry/semconv/_incubating/metrics/container_metrics.pycreate_container_cpu_timer   !   s(    .         zcontainer.cpu.usageCONTAINER_CPU_USAGE	callbacksc                 >    |                      t          |dd          S )zWContainer's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUszXContainer's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs.z{cpu}r   r   r   r   )create_observable_gauger   r   r   s     r   create_container_cpu_usager"   3   s-     (( n	 )   r   zcontainer.disk.ioCONTAINER_DISK_IOc                 <    |                      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&   H   s(    3     r   zcontainer.filesystem.availableCONTAINER_FILESYSTEM_AVAILABLEc                 <    |                      t          dd          S )z$Container filesystem available bytesz%Container filesystem available bytes.r%   r   )create_up_down_counterr'   r   s    r   %create_container_filesystem_availabler*   ]   s(    ''+; (   r   zcontainer.filesystem.capacityCONTAINER_FILESYSTEM_CAPACITYc                 <    |                      t          dd          S )zContainer filesystem capacityzContainer filesystem capacity.r%   r   )r)   r+   r   s    r   $create_container_filesystem_capacityr-   r   s(    ''*4 (   r   zcontainer.filesystem.usageCONTAINER_FILESYSTEM_USAGEc                 <    |                      t          dd          S )zContainer filesystem usagezContainer filesystem usage.r%   r   )r)   r.   r   s    r   !create_container_filesystem_usager0      (    '''1 (   r   zcontainer.memory.availableCONTAINER_MEMORY_AVAILABLEc                 <    |                      t          dd          S )zContainer memory availablezContainer memory available.r%   r   )r)   r2   r   s    r   !create_container_memory_availabler4      r1   r   zcontainer.memory.paging.faultsCONTAINER_MEMORY_PAGING_FAULTSc                 <    |                      t          dd          S )zContainer memory paging faultszContainer memory paging faults.z{fault}r   )r   r5   r   s    r   %create_container_memory_paging_faultsr7      s(    +5     r   zcontainer.memory.rssCONTAINER_MEMORY_RSSc                 <    |                      t          dd          S )zContainer memory RSSzContainer memory RSS.r%   r   )r)   r8   r   s    r   create_container_memory_rssr:      s(    ''!+ (   r   zcontainer.memory.usageCONTAINER_MEMORY_USAGEc                 <    |                      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=      s(    #4     r   zcontainer.memory.working_setCONTAINER_MEMORY_WORKING_SETc                 <    |                      t          dd          S )zContainer memory working setzContainer memory working set.r%   r   )r)   r>   r   s    r   #create_container_memory_working_setr@      s(    '')3 (   r   zcontainer.network.ioCONTAINER_NETWORK_IOc                 <    |                      t          dd          S )zNetwork bytes for the containerz Network bytes for the container.r%   r   )r   rA   r   s    r   create_container_network_iorC      s(    !6     r   zcontainer.uptimeCONTAINER_UPTIMEc                 >    |                      t          |dd          S )z'The time the container has been runningz(The time the container has been running.r   r   )r    rD   r!   s     r   create_container_uptimerF     s-     ((>	 )   r   )*collections.abcr   r   r   r   typingr   opentelemetry.metricsr   r	   r
   r   r   r   	CallbackTr   __annotations__r   r   r"   r#   r&   r'   r*   r+   r-   r.   r0   r2   r4   r5   r7   r8   r:   r;   r=   r>   r@   rA   rC   rD   rF    r   r   <module>rM      s  
 D C C C C C C C C C C C C                      o 556%<=> 
 1 E 0 0 0U w     3 U 2 2 2		%i047		 	 	 	 / 5 . . .E g     )I  H H H =     (G u F F F -     %A E @ @ @
U }     %A E @ @ @U }     )I  H H H 7     5 e 4 4 4u      !9  8 8 8 7     'E e D D Du      5 e 4 4 4u      - % , , ,		%i047		 	 	 	 	 	r   