
    Yj                     h   U d dl mZmZmZmZ d dlmZ d dlmZm	Z	m
Z
mZmZ eegee         f         eee         edf         z  ZdZeed<   	 de	defd	Zd
Zeed<   	 de	dee         dz  de
fdZdZeed<   	 de	dee         dz  de
fdZdZeed<   	 de	dee         dz  de
fdZdZeed<   	 de	dee         dz  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e         dz  de
fdZdZeed<   	 de	dee         dz  de
fdZd Zeed!<   	 de	dee         dz  de
fd"Z d#Z!eed$<   	 de	defd%Z"dS )&    )Callable	GeneratorIterableSequence)Final)CallbackOptionsMeterObservableGaugeObservationUpDownCounterNzvcs.change.countVCS_CHANGE_COUNTmeterreturnc                 <    |                      t          dd          S )zThe number of changes (pull requests/merge requests/changelists) in a repository, categorized by their state (e.g. open or merged)zThe number of changes (pull requests/merge requests/changelists) in a repository, categorized by their state (e.g. open or merged).z{change}namedescriptionunit)create_up_down_counterr   r   s    r/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/opentelemetry/semconv/_incubating/metrics/vcs_metrics.pycreate_vcs_change_countr      s+    '' Z (       zvcs.change.durationVCS_CHANGE_DURATION	callbacksc                 >    |                      t          |dd          S )z\The time duration a change (pull request/merge request/changelist) has been in a given statez]The time duration a change (pull request/merge request/changelist) has been in a given state.sr   r   r   r   )create_observable_gauger   r   r   s     r   create_vcs_change_durationr!   0   s-     (( s	 )   r   zvcs.change.time_to_approvalVCS_CHANGE_TIME_TO_APPROVALc                 >    |                      t          |dd          S )zxThe amount of time since its creation it took a change (pull request/merge request/changelist) to get the first approvalzyThe amount of time since its creation it took a change (pull request/merge request/changelist) to get the first approval.r   r   )r   r"   r    s     r   "create_vcs_change_time_to_approvalr$   D   s0     ((( P	 )   r   zvcs.change.time_to_mergeVCS_CHANGE_TIME_TO_MERGEc                 >    |                      t          |dd          S )zThe amount of time since its creation it took a change (pull request/merge request/changelist) to get merged into the target(base) refzThe amount of time since its creation it took a change (pull request/merge request/changelist) to get merged into the target(base) ref.r   r   )r   r%   r    s     r   create_vcs_change_time_to_merger'   X   s0     ((% ^	 )   r   zvcs.contributor.countVCS_CONTRIBUTOR_COUNTc                 >    |                      t          |dd          S )z1The number of unique contributors to a repositoryz2The number of unique contributors to a repository.z{contributor}r   )r   r(   r    s     r   create_vcs_contributor_countr*   l   s-     (("H	 )   r   zvcs.ref.countVCS_REF_COUNTc                 <    |                      t          dd          S )z8The number of refs of type branch or tag in a repositoryz9The number of refs of type branch or tag in a repository.z{ref}r   )r   r+   r   s    r   create_vcs_ref_countr-      s(    ''O (   r   zvcs.ref.lines_deltaVCS_REF_LINES_DELTAc                 >    |                      t          |dd          S )znThe number of lines added/removed in a ref (branch) relative to the ref from the `vcs.ref.base.name` attributezoThe number of lines added/removed in a ref (branch) relative to the ref from the `vcs.ref.base.name` attribute.z{line}r   )r   r.   r    s     r   create_vcs_ref_lines_deltar0      s0     ((  F	 )   r   zvcs.ref.revisions_deltaVCS_REF_REVISIONS_DELTAc                 >    |                      t          |dd          S )zrThe number of revisions (commits) a ref (branch) is ahead/behind the branch from the `vcs.ref.base.name` attributezsThe number of revisions (commits) a ref (branch) is ahead/behind the branch from the `vcs.ref.base.name` attribute.z
{revision}r   )r   r1   r    s     r   create_vcs_ref_revisions_deltar3      s0     (($ J	 )   r   zvcs.ref.timeVCS_REF_TIMEc                 >    |                      t          |dd          S )zyTime a ref (branch) created from the default branch (trunk) has existed. The `ref.type` attribute will always be `branch`zzTime a ref (branch) created from the default branch (trunk) has existed. The `ref.type` attribute will always be `branch`.r   r   )r   r4   r    s     r   create_vcs_ref_timer6      s0     (( Q	 )   r   zvcs.repository.countVCS_REPOSITORY_COUNTc                 <    |                      t          dd          S )z-The number of repositories in an organizationz.The number of repositories in an organization.z{repository}r   )r   r7   r   s    r   create_vcs_repository_countr9      s(    ''!D (   r   )#collections.abcr   r   r   r   typingr   opentelemetry.metricsr   r	   r
   r   r   	CallbackTr   __annotations__r   r   r!   r"   r$   r%   r'   r(   r*   r+   r-   r.   r0   r1   r3   r4   r6   r7   r9    r   r   <module>r@      s  
 D C C C C C C C C C C C C                    o 556%<=> 
 - % , , ,5 ]     3 U 2 2 2		%i047		 	 	 	 &C U B B B		%i047		 	 	 	 #= % < < <		%i047		 	 	 	  7 u 6 6 6		%i047		 	 	 	 'u & & & -     3 U 2 2 2		%i047		 	 	 	 ";  : : :		%i047		 	 	 	 %e $ $ $		%i047		 	 	 	 5 e 4 4 4u       r   