
    BvhH                         U d dl mZ d dlmZ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y)    )Final)Counter	HistogramMeterUpDownCounterzcicd.pipeline.run.activeCICD_PIPELINE_RUN_ACTIVEmeterreturnc                 2    | j                  t        dd      S )zCThe number of pipeline runs currently active in the system by statezDThe number of pipeline runs currently active in the system by state.z{run}namedescriptionunit)create_up_down_counterr   r	   s    `/RAG/venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/metrics/cicd_metrics.pycreate_cicd_pipeline_run_activer      s#    ''%Z (      zcicd.pipeline.run.durationCICD_PIPELINE_RUN_DURATIONc                 2    | j                  t        dd      S )z@Duration of a pipeline run grouped by pipeline, state and resultzADuration of a pipeline run grouped by pipeline, state and result.sr   )create_histogramr   r   s    r   !create_cicd_pipeline_run_durationr   -   s#    !!'W "  r   zcicd.pipeline.run.errorsCICD_PIPELINE_RUN_ERRORSc                 2    | j                  t        dd      S )zNThe number of errors encountered in pipeline runs (eg. compile, test failures)zOThe number of errors encountered in pipeline runs (eg. compile, test failures).{error}r   )create_counterr   r   s    r   create_cicd_pipeline_run_errorsr   @   s#    %e    r   zcicd.system.errorsCICD_SYSTEM_ERRORSc                 2    | j                  t        dd      S )zYThe number of errors in a component of the CICD system (eg. controller, scheduler, agent)zZThe number of errors in a component of the CICD system (eg. controller, scheduler, agent).r   r   )r   r   r   s    r   create_cicd_system_errorsr!   R   s#    p    r   zcicd.worker.countCICD_WORKER_COUNTc                 2    | j                  t        dd      S )z1The number of workers on the CICD system by statez2The number of workers on the CICD system by state.z{count}r   )r   r"   r   s    r   create_cicd_worker_countr$   c   s#    ''H (  r   N)typingr   opentelemetry.metricsr   r   r   r   r   __annotations__r   r   r   r   r   r   r!   r"   r$    r   r   <module>r)      s      J J"< % <5 ]  %A E @U y  #= % <5 W  1 E 0U w  / 5 .E m r   