
    g+                        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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
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ObservationUpDownCounterNzprocess.context_switchesPROCESS_CONTEXT_SWITCHESmeterreturnc                 2    | j                  t        dd      S )z5Number of times the process has been context switchedz6Number of times the process has been context switched.{count}namedescriptionunit)create_counterr   r   s    n/var/www/openai/venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/metrics/process_metrics.pycreate_process_context_switchesr   1   s#    %L        zprocess.cpu.timePROCESS_CPU_TIMEc                 2    | j                  t        dd      S )z1Total CPU seconds broken down by different statesz2Total CPU seconds broken down by different states.sr   )r   r   r   s    r   create_process_cpu_timer!   B   s#    H    r   zprocess.cpu.utilizationPROCESS_CPU_UTILIZATION	callbacksc                 4    | j                  t        |dd      S )zDifference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the processzDifference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process.1r   r#   r   r   )create_observable_gauger"   r   r#   s     r   create_process_cpu_utilizationr)   S   s+     (($ Z	 )  r   zprocess.disk.ioPROCESS_DISK_IOc                 2    | j                  t        dd      S )zDisk bytes transferredzDisk bytes transferred.Byr   )r   r*   r   s    r   create_process_disk_ior-   g   s#    -    r   zprocess.memory.usagePROCESS_MEMORY_USAGEc                 2    | j                  t        dd      S )z$The amount of physical memory in usez%The amount of physical memory in use.r,   r   )create_up_down_counterr.   r   s    r   create_process_memory_usager1   x   s#    ''!; (  r   zprocess.memory.virtualPROCESS_MEMORY_VIRTUALc                 2    | j                  t        dd      S )z&The amount of committed virtual memoryz'The amount of committed virtual memory.r,   r   )r0   r2   r   s    r   create_process_memory_virtualr4      s#    ''#= (  r   zprocess.network.ioPROCESS_NETWORK_IOc                 2    | j                  t        dd      S )zNetwork bytes transferredzNetwork bytes transferred.r,   r   )r   r5   r   s    r   create_process_network_ior7      s#    0    r   z"process.open_file_descriptor.count"PROCESS_OPEN_FILE_DESCRIPTOR_COUNTc                 2    | j                  t        dd      S )z0Number of file descriptors in use by the processz1Number of file descriptors in use by the process.r   r   )r0   r8   r   s    r   )create_process_open_file_descriptor_countr:      s#    ''/G (  r   zprocess.paging.faultsPROCESS_PAGING_FAULTSc                 2    | j                  t        dd      S )z*Number of page faults the process has madez+Number of page faults the process has made.z{fault}r   )r   r;   r   s    r   create_process_paging_faultsr=      s#    "A    r   zprocess.thread.countPROCESS_THREAD_COUNTc                 2    | j                  t        dd      S )zProcess threads countzProcess threads count.z{thread}r   )r0   r>   r   s    r   create_process_thread_countr@      s#    ''!, (  r   zprocess.uptimePROCESS_UPTIMEc                 4    | j                  t        |dd      S )z%The time the process has been runningz&The time the process has been running.r    r&   )r'   rA   r(   s     r   create_process_uptimerC      s(     ((<	 )  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.   r1   r2   r4   r5   r7   r8   r:   r;   r=   r>   r@   rA   rC    r   r   <module>rI      s       o 556h{#_d:;=	
 #= % <5 W  - % ,5 W  ";  :		%hy&9:		 + *% G  5 e 4u   !9  8 =  1 E 0U w  ) #E U }   7 u 6 '  5 e 4u   ) (		%hy&9:		r   