o
    piH                     @   s   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dZ	d	Z
eed
< 	 dedefddZdZeed< 	 dedefddZdZeed< 	 dedefddZdZeed< 	 dedefddZdS )    )Final)Counter	HistogramMeterUpDownCounterzcicd.pipeline.run.activeCICD_PIPELINE_RUN_ACTIVEmeterreturnc                 C      | j td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    r   j/home/ubuntu/.local/lib/python3.10/site-packages/opentelemetry/semconv/_incubating/metrics/cicd_metrics.pycreate_cicd_pipeline_run_active   
   r   zcicd.pipeline.run.durationCICD_PIPELINE_RUN_DURATIONc                 C   r
   )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   r   r   r   !create_cicd_pipeline_run_duration-   r   r   zcicd.pipeline.run.errorsCICD_PIPELINE_RUN_ERRORSc                 C   r
   )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   r   r   r   create_cicd_pipeline_run_errors@   r   r   zcicd.system.errorsCICD_SYSTEM_ERRORSc                 C   r
   )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   r   r   r   create_cicd_system_errorsR   r   r   zcicd.worker.countCICD_WORKER_COUNTc                 C   r
   )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   r   r   r   create_cicd_worker_countc   r   r    N)typingr   opentelemetry.metricsr   r   r   r   r   __annotations__r   r   r   r   r   r   r   r   r    r   r   r   r   <module>   s"   					