
    Yj                     H   U d dl mZ d dlmZmZm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 S )!    )Final)Counter	HistogramMeterzfaas.coldstartsFAAS_COLDSTARTSmeterreturnc                 <    |                      t          dd          S )z Number of invocation cold startsz!Number of invocation cold starts.z{coldstart}namedescriptionunit)create_counterr   r   s    s/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/opentelemetry/semconv/_incubating/metrics/faas_metrics.pycreate_faas_coldstartsr      s(    7         zfaas.cpu_usageFAAS_CPU_USAGEc                 <    |                      t          dd          S )z(Distribution of CPU usage per invocationz)Distribution of CPU usage per invocation.sr   )create_histogramr   r   s    r   create_faas_cpu_usager   "   s(    !!? "   r   zfaas.errorsFAAS_ERRORSc                 <    |                      t          dd          S )zNumber of invocation errorszNumber of invocation errors.z{error}r   )r   r   r   s    r   create_faas_errorsr   3   s(    2     r   zfaas.init_durationFAAS_INIT_DURATIONc                 <    |                      t          dd          S )zLMeasures the duration of the function's initialization, such as a cold startzMMeasures the duration of the function's initialization, such as a cold start.r   r   )r   r   r   s    r   create_faas_init_durationr   D   s(    !!c "   r   zfaas.invocationsFAAS_INVOCATIONSc                 <    |                      t          dd          S )z Number of successful invocationsz!Number of successful invocations.z{invocation}r   )r   r   r   s    r   create_faas_invocationsr!   U   s(    7     r   zfaas.invoke_durationFAAS_INVOKE_DURATIONc                 <    |                      t          dd          S )z7Measures the duration of the function's logic executionz8Measures the duration of the function's logic execution.r   r   )r   r"   r   s    r   create_faas_invoke_durationr$   f   s(    !!!N "   r   zfaas.mem_usageFAAS_MEM_USAGEc                 <    |                      t          dd          S )z/Distribution of max memory usage per invocationz0Distribution of max memory usage per invocation.Byr   )r   r%   r   s    r   create_faas_mem_usager(   w   s(    !!F "   r   zfaas.net_ioFAAS_NET_IOc                 <    |                      t          dd          S )z,Distribution of net I/O usage per invocationz-Distribution of net I/O usage per invocation.r'   r   )r   r)   r   s    r   create_faas_net_ior+      s(    !!C "   r   zfaas.timeoutsFAAS_TIMEOUTSc                 <    |                      t          dd          S )zNumber of invocation timeoutszNumber of invocation timeouts.z	{timeout}r   )r   r,   r   s    r   create_faas_timeoutsr.      s(    4     r   N)typingr   opentelemetry.metricsr   r   r   r   __annotations__r   r   r   r   r   r   r   r   r!   r"   r$   r%   r(   r)   r+   r,   r.    r   r   <module>r3      sF  
        ; ; ; ; ; ; ; ; ; ;* * * *% G     ) ( ( ( 9     #U " " "e      1 E 0 0 0U y     - % , , ,5 W     5 e 4 4 4u      ) ( ( ( 9     #U " " "e 	     'u & & & '      r   