
    Bvh?                        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e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ee      defdZdZeed<   	 dedefdZ y)    )CallableFinal	GeneratorIterableOptionalSequenceUnion)CallbackOptionsCounterMeterObservableGaugeObservationUpDownCounterNz	hw.energy	HW_ENERGYmeterreturnc                 2    | j                  t        d d      S )z Energy consumed by the componentJnamedescriptionunit)create_counterr   r   s    ^/RAG/venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/metrics/hw_metrics.pycreate_hw_energyr   1   s#    6        z	hw.errors	HW_ERRORSc                 2    | j                  t        d d      S )z-Number of errors encountered by the componentz{error}r   )r   r   r   s    r   create_hw_errorsr    B   s#    C    r   zhw.host.ambient_temperatureHW_HOST_AMBIENT_TEMPERATURE	callbacksc                 4    | j                  t        |d d      S )z3Ambient (external) temperature of the physical hostCelr   r"   r   r   )create_observable_gauger!   r   r"   s     r   "create_hw_host_ambient_temperaturer(   S   s(     (((I	 )  r   zhw.host.energyHW_HOST_ENERGYc                 2    | j                  t        d d      S )z<Total energy consumed by the entire physical host, in joulesr   r   )r   r)   r   s    r   create_hw_host_energyr+   h   s#    R    r   zhw.host.heating_marginHW_HOST_HEATING_MARGINc                 4    | j                  t        |d d      S )zBy how many degrees Celsius the temperature of the physical host can be increased, before reaching a warning threshold on one of the internal sensorsr$   r%   )r&   r,   r'   s     r   create_hw_host_heating_marginr.   y   s+     ((# l	 )  r   zhw.host.powerHW_HOST_POWERc                 4    | j                  t        |d d      S )zaInstantaneous power consumed by the entire physical host in Watts (`hw.host.energy` is preferred)Wr%   )r&   r/   r'   s     r   create_hw_host_powerr2      s(     ((w	 )  r   zhw.powerHW_POWERc                 4    | j                  t        |d d      S )z-Instantaneous power consumed by the componentr1   r%   )r&   r3   r'   s     r   create_hw_powerr5      s(     ((C	 )  r   z	hw.status	HW_STATUSc                 2    | j                  t        d d      S )zMOperational status: `1` (true) or `0` (false) for each of the possible states1r   )create_up_down_counterr6   r   s    r   create_hw_statusr:      s#    ''c (  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/   r2   r3   r5   r6   r:    r   r   <module>r@      s       o 556h{#_d:;=	
 	5 E g  	5 E g  &C U B		%hy&9:		 ) ( 7  !9  8		%hy&9:		 'u &		%hy&9:		 % 		%hy&9:		 	5 E m r   