> ## 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 ja/openapi/monitors.json GET /v1/monitors/{monitor_id}/runs/{run_id}
openapi: 3.0.3
info:
  title: モニター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>はあなたの認証トークンです。

````