> ## Documentation Index
> Fetch the complete documentation index at: https://docs.olostep.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取监控运行

> 返回单个监控运行的快照元数据和解析的代理日志事件。



## OpenAPI

````yaml zh/openapi/monitors.json GET /v1/monitors/{monitor_id}/runs/{run_id}
openapi: 3.0.3
info:
  title: Monitors API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/monitors/{monitor_id}/runs/{run_id}:
    get:
      summary: 获取监控运行
      description: 返回单次运行的快照元数据和解析的代理日志事件。
      parameters:
        - name: monitor_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^monitor_
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^run_
      responses:
        '200':
          description: 运行详情。
          content:
            application/json:
              schema:
                type: object
                properties:
                  monitor_id:
                    type: string
                  run_id:
                    type: string
                  snapshot:
                    type: object
                    additionalProperties: true
                    nullable: true
                  log_group:
                    type: string
                    nullable: true
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/AgentLogEvent'
        '400':
          description: 无效的 monitor_id 或 run_id。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 无效的 API 密钥。
        '404':
          description: 未找到监控。
        '500':
          description: 内部服务器错误。
      security:
        - Authorization: []
components:
  schemas:
    AgentLogEvent:
      type: object
      properties:
        id:
          type: string
        ts:
          type: integer
          description: CloudWatch事件时间戳（毫秒）。
        ingestion_ts:
          type: integer
        stream:
          type: string
        message:
          type: string
        event:
          type: object
          additionalProperties: true
          description: 解析的日志行（例如`work_received`，`node_start`，`run_complete`）。
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        monitor_id:
          type: string
          description: 在某些创建/更新错误响应中出现。
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Bearer身份验证头的格式为Bearer <token>，其中<token>是你的认证令牌。

````