
    _j                    d    S SK Jr  SSKJrJr  SSKJr  SSKJr   " S S\5      r	 " S S	\5      r
g
)    )annotations   )
MonitorRunListMonitorRunsResponse)WebsetsBaseClient)WebsetsAsyncBaseClientc                  @   ^  \ rS rSrSrU 4S jrSS jrSS jrSrU =r	$ )	MonitorRunsClient
   z!Client for managing Monitor Runs.c                $   > [         TU ]  U5        g Nsuper__init__selfclient	__class__s     X/home/rurouni/.local/lib/python3.13/site-packages/exa_py/websets/monitors/runs/client.pyr   MonitorRunsClient.__init__            c                V    U R                  SU S3SS9n[        R                  " U5      $ )zList all runs for the Monitor.

Args:
    monitor_id (str): The id of the Monitor to list runs for.

Returns:
    ListMonitorRunsResponse: List of monitor runs.
/v0/monitors//runsGETmethodrequestr   model_validater   
monitor_idresponses      r   listMonitorRunsClient.list   s0     <<-
|5 A%<P&55h??r   c                Z    U R                  SU SU 3SS9n[        R                  " U5      $ )zGet a specific monitor run.

Args:
    monitor_id (str): The id of the Monitor to get the run for.
    run_id (str): The id of the monitor run.

Returns:
    MonitorRun: The monitor run details.
r   /runs/r   r   r    r   r!   r   r#   run_idr$   s       r   getMonitorRunsClient.get   s5     <<-
|6& JSX<Y((22r    r#   strreturnr   r#   r0   r+   r0   r1   r   
__name__
__module____qualname____firstlineno____doc__r   r%   r,   __static_attributes____classcell__r   s   @r   r
   r
   
   s    +!
@3 3r   r
   c                  @   ^  \ rS rSrSrU 4S jrSS jrSS jrSrU =r	$ )	AsyncMonitorRunsClient*   z'Async client for managing Monitor Runs.c                $   > [         TU ]  U5        g r   r   r   s     r   r   AsyncMonitorRunsClient.__init__-   r   r   c                r   #    U R                  SU S3SS9I Sh  vN n[        R                  " U5      $  N7f)zList all runs for the Monitor.r   r   r   r   Nr   r"   s      r   r%   AsyncMonitorRunsClient.list0   s;     j\&GPUVV&55h?? Ws   757c                v   #    U R                  SU SU 3SS9I Sh  vN n[        R                  " U5      $  N7f)zGet a specific monitor run.r   r(   r   r   Nr)   r*   s       r   r,   AsyncMonitorRunsClient.get5   s?     j\x&PY^__((22 `s   979r.   r/   r2   r3   r;   s   @r   r=   r=   *   s    1!@
3 3r   r=   N)
__future__r   typesr   r   	core.baser   core.async_baser   r
   r=   r.   r   r   <module>rI      s0    " + 53) 3@33 3r   