o
    h
                  
   @   s   U d dl mZmZ d dlmZ zd dlmZ W n< eyS   eee	e
ef Zeed< eeee f Zeed< eeeg ef f Zeed< deded	ed
 fddZY nw eddZdS )    )CallableUnion)	TypeAlias)make_scribe_loggerTAtomTField
TLazyFieldname
thrift_srcreturn).Nc                 C   s   dt dd fdd}|S )Nkwargsr   c                  [   s   d S )N )r   r   r   i/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/torch/_logging/scribe.pyinner   s   z!make_scribe_logger.<locals>.inner)r   )r	   r
   r   r   r   r   r      s   r   TorchOpenSourceSignposta  
struct TorchOpenSourceSignpostLogEntry {

  # The commit SHA that triggered the workflow, e.g., 02a6b1d30f338206a71d0b75bfa09d85fac0028a. Derived from GITHUB_SHA.
  4: optional string commit_sha;

  # Commit date (not author date) of the commit in commit_sha as timestamp, e.g., 1724208105.  Increasing if merge bot is used, though not monotonic; duplicates occur when stack is landed.
  5: optional i64 commit_date;

  # The fully-formed ref of the branch or tag that triggered the workflow run, e.g., refs/pull/133891/merge or refs/heads/main. Derived from GITHUB_REF.
  6: optional string github_ref;

  # Indicates if branch protections or rulesets are configured for the ref that triggered the workflow run. Derived from GITHUB_REF_PROTECTED.
  7: optional bool github_ref_protected;

  # A unique number for each attempt of a particular workflow run in a repository, e.g., 1. Derived from GITHUB_RUN_ATTEMPT.
  8: optional string github_run_attempt;

  # A unique number for each workflow run within a repository, e.g., 19471190684. Derived from GITHUB_RUN_ID.
  9: optional string github_run_id;

  # A unique number for each run of a particular workflow in a repository, e.g., 238742. Derived from GITHUB_RUN_NUMBER.
  10: optional string github_run_number_str;

  # The name of the current job. Derived from JOB_NAME, e.g., linux-jammy-py3.8-gcc11 / test (default, 3, 4, linux.2xlarge).
  11: optional string job_name;

  # The GitHub user who triggered the job.  Derived from GITHUB_TRIGGERING_ACTOR.
  12: optional string github_triggering_actor;
  13: optional string name; # Event name
  14: optional string parameters; # Parameters (JSON data)
  16: optional string subsystem; # Subsystem the event is associated with

  # The unit timestamp in second for the Scuba Time Column override
  17: optional i64 time;

  # The weight of the record according to current sampling rate
  18: optional i64 weight;
}
N)typingr   r   typing_extensionsr   fbscribeloggerr   ImportErrorintfloatboolstrr   __annotations__listr   r   open_source_signpostr   r   r   r   <module>   s    