o
    pi(                     @   s*  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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d	Zd
Zeed< 	 dedeee  defddZdZeed< 	 dede
fddZdZeed< 	 dedefddZdZeed< 	 dedefddZdZeed< 	 dedefddZdZeed < 	 dedefd!d"Zd#Zeed$< 	 dede
fd%d&Z d'Z!eed(< 	 dedefd)d*Z"d+Z#eed,< 	 dede
fd-d.Z$d/Z%eed0< 	 dedefd1d2Z&d3Z'eed4< 	 dede
fd5d6Z(d7Z)eed8< 	 dedeee  defd9d:Z*dS );    )CallableFinal	GeneratorIterableOptionalSequenceUnion)CallbackOptionsCounterMeterObservableGaugeObservationUpDownCounterNzcontainer.cpu.timeCONTAINER_CPU_TIMEmeterreturnc                 C      | j tdddS )zTotal CPU time consumedzTotal CPU time consumed.snamedescriptionunit)create_counterr   r    r   o/home/ubuntu/.local/lib/python3.10/site-packages/opentelemetry/semconv/_incubating/metrics/container_metrics.pycreate_container_cpu_time2   
   r   zcontainer.cpu.usageCONTAINER_CPU_USAGE	callbacksc                 C      | j t|d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   r   r   r   create_container_cpu_usageD      r$   zcontainer.disk.ioCONTAINER_DISK_IOc                 C   r   )zDisk bytes for the containerzDisk bytes for the container.Byr   )r   r&   r   r   r   r   create_container_disk_ioY   r   r(   zcontainer.filesystem.availableCONTAINER_FILESYSTEM_AVAILABLEc                 C   r   )z$Container filesystem available bytesz%Container filesystem available bytes.r'   r   )create_up_down_counterr)   r   r   r   r   %create_container_filesystem_availablen   r   r+   zcontainer.filesystem.capacityCONTAINER_FILESYSTEM_CAPACITYc                 C   r   )zContainer filesystem capacityzContainer filesystem capacity.r'   r   )r*   r,   r   r   r   r   $create_container_filesystem_capacity   r   r-   zcontainer.filesystem.usageCONTAINER_FILESYSTEM_USAGEc                 C   r   )zContainer filesystem usagezContainer filesystem usage.r'   r   )r*   r.   r   r   r   r   !create_container_filesystem_usage   r   r/   zcontainer.memory.availableCONTAINER_MEMORY_AVAILABLEc                 C   r   )zContainer memory availablezContainer memory available.r'   r   )r*   r0   r   r   r   r   !create_container_memory_available   r   r1   zcontainer.memory.paging.faultsCONTAINER_MEMORY_PAGING_FAULTSc                 C   r   )zContainer memory paging faultszContainer memory paging faults.z{fault}r   )r   r2   r   r   r   r   %create_container_memory_paging_faults   r   r3   zcontainer.memory.rssCONTAINER_MEMORY_RSSc                 C   r   )zContainer memory RSSzContainer memory RSS.r'   r   )r*   r4   r   r   r   r   create_container_memory_rss   r   r5   zcontainer.memory.usageCONTAINER_MEMORY_USAGEc                 C   r   )zMemory usage of the containerzMemory usage of the container.r'   r   )r   r6   r   r   r   r   create_container_memory_usage   r   r7   zcontainer.memory.working_setCONTAINER_MEMORY_WORKING_SETc                 C   r   )zContainer memory working setzContainer memory working set.r'   r   )r*   r8   r   r   r   r   #create_container_memory_working_set   r   r9   zcontainer.network.ioCONTAINER_NETWORK_IOc                 C   r   )zNetwork bytes for the containerz Network bytes for the container.r'   r   )r   r:   r   r   r   r   create_container_network_io  r   r;   zcontainer.uptimeCONTAINER_UPTIMEc                 C   r    )z'The time the container has been runningz(The time the container has been running.r   r!   )r"   r<   r#   r   r   r   create_container_uptime  r%   r=   )+typingr   r   r   r   r   r   r   opentelemetry.metricsr	   r
   r   r   r   r   	CallbackTr   __annotations__r   r   r$   r&   r(   r)   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r   r   r   r   <module>   st   & 

	

				
										
