o
    pilV                     @   sz  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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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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fd9d: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dAdBZ.dCZ/eedD< 	 dede
fdEdFZ0dGZ1eedH< 	 dedefdIdJZ2dKZ3eedL< 	 dedefdMdNZ4dOZ5eedP< 	 dedefdQdRZ6dSZ7eedT< 	 dedefdUdVZ8dWZ9eedX< 	 dedefdYdZ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dadbZ>dcZ?eedd< 	 dedefdedfZ@dgZAeedh< 	 dedefdidjZBdkZCeedl< 	 dede
fdmdnZDdoZEeedp< 	 dede
fdqdrZFdsZGeedt< 	 dede
fdudvZHdwZIeedx< 	 dede
fdydzZJd{ZKeed|< 	 dede
fd}d~ZLdZMeed< 	 dede
fddZNdZOeed< 	 dede
fddZPdZQeed< 	 dede
fddZRdZSeed< 	 dedefddZTdZUeed< 	 dedeee  defddZVdZWeed< 	 dedefddZXdZYeed< 	 dede
fddZZdZ[eed< 	 dedeee  defddZ\dS )    )CallableFinal	GeneratorIterableOptionalSequenceUnion)CallbackOptionsCounterMeterObservableGaugeObservationUpDownCounterNzsystem.cpu.frequencySYSTEM_CPU_FREQUENCYmeter	callbacksreturnc                 C      | j t|dddS )z/Operating frequency of the logical CPU in Hertzz0Operating frequency of the logical CPU in Hertz.Hznamer   descriptionunit)create_observable_gauger   r   r    r   l/home/ubuntu/.local/lib/python3.10/site-packages/opentelemetry/semconv/_incubating/metrics/system_metrics.pycreate_system_cpu_frequency1      r   zsystem.cpu.logical.countSYSTEM_CPU_LOGICAL_COUNTc                 C      | j tdddS )znReports the number of logical (virtual) processor cores created by the operating system to manage multitaskingzoReports the number of logical (virtual) processor cores created by the operating system to manage multitasking.{cpu}r   r   r   )create_up_down_counterr   r   r   r   r   create_system_cpu_logical_countF   
   r%   zsystem.cpu.physical.countSYSTEM_CPU_PHYSICAL_COUNTc                 C   r    )zEReports the number of actual physical processor cores on the hardwarezFReports the number of actual physical processor cores on the hardware.r!   r"   )r#   r'   r$   r   r   r    create_system_cpu_physical_countX   r&   r(   zsystem.cpu.timeSYSTEM_CPU_TIMEc                 C   r    )z+Seconds each logical CPU spent on each modez,Seconds each logical CPU spent on each mode.sr"   )create_counterr)   r$   r   r   r   create_system_cpu_timei   r&   r,   zsystem.cpu.utilizationSYSTEM_CPU_UTILIZATIONc                 C   r   )zFor each logical CPU, the utilization is calculated as the change in cumulative CPU time (cpu.time) over a measurement interval, divided by the elapsed timezFor each logical CPU, the utilization is calculated as the change in cumulative CPU time (cpu.time) over a measurement interval, divided by the elapsed time.1r   )r   r-   r   r   r   r   create_system_cpu_utilizationz   r   r/   zsystem.disk.ioSYSTEM_DISK_IOc                 C   r    )zDisk bytes transferredzDisk bytes transferred.Byr"   )r+   r0   r$   r   r   r   create_system_disk_io   r&   r2   zsystem.disk.io_timeSYSTEM_DISK_IO_TIMEc                 C   r    )zTime disk spent activatedzTime disk spent activated.r*   r"   )r+   r3   r$   r   r   r   create_system_disk_io_time   r&   r4   zsystem.disk.limitSYSTEM_DISK_LIMITc                 C   r    )z&The total storage capacity of the diskz'The total storage capacity of the disk.r1   r"   )r#   r5   r$   r   r   r   create_system_disk_limit   r&   r6   zsystem.disk.mergedSYSTEM_DISK_MERGEDc                 C   r    )zRThe number of disk reads/writes merged into single physical disk access operationszSThe number of disk reads/writes merged into single physical disk access operations.{operation}r"   )r+   r7   r$   r   r   r   create_system_disk_merged   r&   r9   zsystem.disk.operation_timeSYSTEM_DISK_OPERATION_TIMEc                 C   r    )z/Sum of the time each operation took to completez0Sum of the time each operation took to complete.r*   r"   )r+   r:   r$   r   r   r   !create_system_disk_operation_time   r&   r;   zsystem.disk.operationsSYSTEM_DISK_OPERATIONSc                 C   r    )zDisk operations countzDisk operations count.r8   r"   )r+   r<   r$   r   r   r   create_system_disk_operations   r&   r=   zsystem.filesystem.limitSYSTEM_FILESYSTEM_LIMITc                 C   r    )z,The total storage capacity of the filesystemz-The total storage capacity of the filesystem.r1   r"   )r#   r>   r$   r   r   r   create_system_filesystem_limit   r&   r?   zsystem.filesystem.usageSYSTEM_FILESYSTEM_USAGEc                 C   r    )z:Reports a filesystem's space usage across different statesz;Reports a filesystem's space usage across different states.r1   r"   )r#   r@   r$   r   r   r   create_system_filesystem_usage  r&   rA   zsystem.filesystem.utilizationSYSTEM_FILESYSTEM_UTILIZATIONc                 C   r   )z!Fraction of filesystem bytes usedz"Fraction of filesystem bytes used.r.   r   )r   rB   r   r   r   r   $create_system_filesystem_utilization"  r   rC   zsystem.linux.memory.availableSYSTEM_LINUX_MEMORY_AVAILABLEc                 C   r    z!The number of packets transferredz"The number of packets transferred.{packet}r"   )r+   rD   r$   r   r   r   $create_system_linux_memory_available4  r&   rG   zsystem.linux.memory.slab.usageSYSTEM_LINUX_MEMORY_SLAB_USAGEc                 C   r    rE   )r+   rH   r$   r   r   r   %create_system_linux_memory_slab_usageC  r&   rI   zsystem.memory.limitSYSTEM_MEMORY_LIMITc                 C   r    )z,Total virtual memory available in the systemz-Total virtual memory available in the system.r1   r"   )r#   rJ   r$   r   r   r   create_system_memory_limitT  r&   rK   zsystem.memory.linux.availableSYSTEM_MEMORY_LINUX_AVAILABLEc                 C   r    )zcAn estimate of how much memory is available for starting new applications, without causing swappingzdAn estimate of how much memory is available for starting new applications, without causing swapping.r1   r"   )r#   rL   r$   r   r   r   $create_system_memory_linux_availablej  r&   rM   zsystem.memory.linux.sharedSYSTEM_MEMORY_LINUX_SHAREDc                 C   r    )z$Shared memory used (mostly by tmpfs)z%Shared memory used (mostly by tmpfs).r1   r"   )r#   rN   r$   r   r   r   !create_system_memory_linux_shared}  r&   rO   zsystem.memory.linux.slab.usageSYSTEM_MEMORY_LINUX_SLAB_USAGEc                 C   r    )zZReports the memory used by the Linux kernel for managing caches of frequently used objectsz[Reports the memory used by the Linux kernel for managing caches of frequently used objects.r1   r"   )r#   rP   r$   r   r   r   %create_system_memory_linux_slab_usage  r&   rQ   zsystem.memory.sharedSYSTEM_MEMORY_SHAREDc                 C   r    )z4Deprecated, use `system.memory.linux.shared` insteadz5Deprecated, use `system.memory.linux.shared` instead.r1   r"   )r#   rR   r$   r   r   r   create_system_memory_shared  r&   rS   zsystem.memory.usageSYSTEM_MEMORY_USAGEc                 C   r    )zReports memory in use by statezReports memory in use by state.r1   r"   )r#   rT   r$   r   r   r   create_system_memory_usage  r&   rU   zsystem.memory.utilizationSYSTEM_MEMORY_UTILIZATIONc                 C   r   )z!Percentage of memory bytes in usez"Percentage of memory bytes in use.r.   r   )r   rV   r   r   r   r    create_system_memory_utilization  r   rW   zsystem.network.connection.countSYSTEM_NETWORK_CONNECTION_COUNTc                 C   r    )zThe number of connectionszThe number of connections.{connection}r"   )r#   rX   r$   r   r   r   &create_system_network_connection_count  r&   rZ   zsystem.network.connectionsSYSTEM_NETWORK_CONNECTIONSc                 C   r    )z9Deprecated, use `system.network.connection.count` insteadz:Deprecated, use `system.network.connection.count` instead.rY   r"   )r#   r[   r$   r   r   r   !create_system_network_connections  r&   r\   zsystem.network.droppedSYSTEM_NETWORK_DROPPEDc                 C   r    zMCount of packets that are dropped or discarded even though there was no errorzNCount of packets that are dropped or discarded even though there was no error.rF   r"   )r+   r]   r$   r   r   r   create_system_network_dropped  r&   r_   zsystem.network.errorsSYSTEM_NETWORK_ERRORSc                 C   r    )z Count of network errors detectedz!Count of network errors detected.z{error}r"   )r+   r`   r$   r   r   r   create_system_network_errors
  r&   ra   zsystem.network.ioSYSTEM_NETWORK_IOc                 C   r    )z,The number of bytes transmitted and receivedz-The number of bytes transmitted and received.r1   r"   )r+   rb   r$   r   r   r   create_system_network_io  r&   rc   zsystem.network.packet.countSYSTEM_NETWORK_PACKET_COUNTc                 C   r    rE   )r+   rd   r$   r   r   r   "create_system_network_packet_count,  r&   re   zsystem.network.packet.droppedSYSTEM_NETWORK_PACKET_DROPPEDc                 C   r    r^   )r+   rf   r$   r   r   r   $create_system_network_packet_droppedB  r&   rg   zsystem.network.packetsSYSTEM_NETWORK_PACKETSc                 C   r    rE   )r+   rh   r$   r   r   r   create_system_network_packetsQ  r&   ri   zsystem.paging.faultsSYSTEM_PAGING_FAULTSc                 C   r    )zThe number of page faultszThe number of page faults.z{fault}r"   )r+   rj   r$   r   r   r   create_system_paging_faultsb  r&   rk   zsystem.paging.operationsSYSTEM_PAGING_OPERATIONSc                 C   r    )zThe number of paging operationsz The number of paging operations.r8   r"   )r+   rl   r$   r   r   r   create_system_paging_operationss  r&   rm   zsystem.paging.usageSYSTEM_PAGING_USAGEc                 C   r    )z#Unix swap or windows pagefile usagez$Unix swap or windows pagefile usage.r1   r"   )r#   rn   r$   r   r   r   create_system_paging_usage  r&   ro   zsystem.paging.utilizationSYSTEM_PAGING_UTILIZATIONc                 C   r   )z-Swap (unix) or pagefile (windows) utilizationz.Swap (unix) or pagefile (windows) utilization.r.   r   )r   rp   r   r   r   r    create_system_paging_utilization  r   rq   zsystem.process.countSYSTEM_PROCESS_COUNTc                 C   r    )z'Total number of processes in each statez(Total number of processes in each state.	{process}r"   )r#   rr   r$   r   r   r   create_system_process_count  r&   rt   zsystem.process.createdSYSTEM_PROCESS_CREATEDc                 C   r    )z9Total number of processes created over uptime of the hostz:Total number of processes created over uptime of the host.rs   r"   )r+   ru   r$   r   r   r   create_system_process_created  r&   rv   zsystem.uptimeSYSTEM_UPTIMEc                 C   r   )z$The time the system has been runningz%The time the system has been running.r*   r   )r   rw   r   r   r   r   create_system_uptime  r   rx   )]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/   r0   r2   r3   r4   r5   r6   r7   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rZ   r[   r\   r]   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rt   ru   rv   rw   rx   r   r   r   r   <module>   s:  & 



			

									

						
			

											

			
