
    YjL                         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dS )    )Final)Counter	HistogramMeterUpDownCounterzcicd.pipeline.run.activeCICD_PIPELINE_RUN_ACTIVEmeterreturnc                 <    |                      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    s/var/www/FlaskApp/flask-venv/lib/python3.11/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                 <    |                      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                 <    |                      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   5   s(    %e     r   zcicd.system.errorsCICD_SYSTEM_ERRORSc                 <    |                      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!   G   s(    p     r   zcicd.worker.countCICD_WORKER_COUNTc                 <    |                      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$   X   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)      sk  
        J J J J J J J J J J J J"< % < < <5 ]     %A E @ @ @U y     #= % < < <5 W     1 E 0 0 0U w     / 5 . . .E m      r   