
    Bvh                     (   U d dl mZmZmZmZmZmZmZ d dlm	Z	m
Z
mZmZmZ eee	gee   f   eee   e	df   f   ZdZeed<   	 de
defdZd	Zeed
<   	 de
deee      defdZdZeed<   	 de
deee      defdZdZeed<   	 de
deee      defdZdZeed<   	 de
dee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ee      defdZdZeed<   	 de
deee      defdZdZ eed <   	 de
deee      defd!Z!d"Z"eed#<   	 de
defd$Z#y)%    )CallableFinal	GeneratorIterableOptionalSequenceUnion)CallbackOptionsMeterObservableGaugeObservationUpDownCounterNzvcs.change.countVCS_CHANGE_COUNTmeterreturnc                 2    | j                  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)z{change}namedescriptionunit)create_up_down_counterr   r   s    _/RAG/venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/metrics/vcs_metrics.pycreate_vcs_change_countr   0   s&    '' Y (      zvcs.change.durationVCS_CHANGE_DURATION	callbacksc                 4    | j                  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#   A   s(     (( s	 )  r   zvcs.change.time_to_approvalVCS_CHANGE_TIME_TO_APPROVALc                 4    | j                  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&   U   s+     ((( P	 )  r   zvcs.change.time_to_mergeVCS_CHANGE_TIME_TO_MERGEc                 4    | j                  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)   i   s+     ((% ^	 )  r   zvcs.contributor.countVCS_CONTRIBUTOR_COUNTc                 4    | j                  t        |d d      S )z1The number of unique contributors to a repositoryz{contributor}r    )r!   r*   r"   s     r   create_vcs_contributor_countr,   }   s(     (("G	 )  r   zvcs.ref.countVCS_REF_COUNTc                 2    | j                  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                 4    | j                  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!   r0   r"   s     r   create_vcs_ref_lines_deltar2      s+     ((  F	 )  r   zvcs.ref.revisions_deltaVCS_REF_REVISIONS_DELTAc                 4    | j                  t        |d d      S )zrThe number of revisions (commits) a ref (branch) is ahead/behind the branch from the `vcs.ref.base.name` attributez
{revision}r    )r!   r3   r"   s     r   create_vcs_ref_revisions_deltar5      s+     (($ I	 )  r   zvcs.ref.timeVCS_REF_TIMEc                 4    | j                  t        |d d      S )zyTime a ref (branch) created from the default branch (trunk) has existed. The `ref.type` attribute will always be `branch`r   r    )r!   r6   r"   s     r   create_vcs_ref_timer8      s+     (( P	 )  r   zvcs.repository.countVCS_REPOSITORY_COUNTc                 2    | j                  t        dd      S )z-The number of repositories in an organizationz.The number of repositories in an organization.z{repository}r   )r   r9   r   s    r   create_vcs_repository_countr;      s#    ''!D (  r   )$typingr   r   r   r   r   r   r	   opentelemetry.metricsr
   r   r   r   r   	CallbackTr   __annotations__r   r   r#   r$   r&   r'   r)   r*   r,   r-   r/   r0   r2   r3   r5   r6   r8   r9   r;    r   r   <module>rA      sU       o 556h{#_d:;=	
 - % ,5 ]  3 U 2		%hy&9:		 &C U B		%hy&9:		 #= % <		%hy&9:		  7 u 6		%hy&9:		 'u & -  3 U 2		%hy&9:		 ";  :		%hy&9:		 %e $		%hy&9:		 5 e 4u  r   