
    2i                     X   % S SK Jr  S SKJrJrJr  Sr\\S'    S\S\4S jrSr	\\S	'    S\S\4S
 jr
Sr\\S'    S\S\4S jrSr\\S'    S\S\4S jrSr\\S'    S\S\4S jrSr\\S'    S\S\4S jrSr\\S'    S\S\4S jrSr\\S'    S\S\4S jrSr\\S'    S\S\4S jrg )!    )Final)Counter	HistogramMeterzfaas.coldstartsFAAS_COLDSTARTSmeterreturnc                 ,    U R                  [        SSS9$ )z Number of invocation cold startsz!Number of invocation cold starts.z{coldstart}namedescriptionunit)create_counterr   r   s    p/home/james-whalen/.local/lib/python3.13/site-packages/opentelemetry/semconv/_incubating/metrics/faas_metrics.pycreate_faas_coldstartsr      s#    7        zfaas.cpu_usageFAAS_CPU_USAGEc                 ,    U R                  [        SSS9$ )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                 ,    U R                  [        SSS9$ )zNumber of invocation errorszNumber of invocation errors.z{error}r   )r   r   r   s    r   create_faas_errorsr   >   s#    2    r   zfaas.init_durationFAAS_INIT_DURATIONc                 ,    U R                  [        SSS9$ )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   O   s#    !!c "  r   zfaas.invocationsFAAS_INVOCATIONSc                 ,    U R                  [        SSS9$ )z Number of successful invocationsz!Number of successful invocations.z{invocation}r   )r   r   r   s    r   create_faas_invocationsr!   `   s#    7    r   zfaas.invoke_durationFAAS_INVOKE_DURATIONc                 ,    U R                  [        SSS9$ )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$   q   s#    !!!N "  r   zfaas.mem_usageFAAS_MEM_USAGEc                 ,    U R                  [        SSS9$ )z/Distribution of max memory usage per invocationz0Distribution of max memory usage per invocation.Byr   )r   r%   r   s    r   create_faas_mem_usager(      s#    !!F "  r   zfaas.net_ioFAAS_NET_IOc                 ,    U R                  [        SSS9$ )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                 ,    U R                  [        SSS9$ )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      sU     ; ;* *% G  ) ( 9  #U "e   1 E 0U y  - % ,5 W  5 e 4u   ) ( 9  #U "e 	  'u & ' r   