For the complete documentation index, see llms.txt. This page is also available as Markdown.

イベントを検索

ダッシュボードで Vision Event を検索、フィルタリング、閲覧したり、Agent に自然言語で質問したり、API 経由でクエリしたりできます

概要

このページでは、特定の Vision Events (デプロイ済みモデルが観測した内容のタイムスタンプ付き記録)を、Vision Events ダッシュボードまたは REST API でフィルタリングおよび検索して見つける方法について説明します。日付範囲、イベントタイプ、デバイス、ストリーム、ワークフロー、検出クラス、フィードバック状態で結果を絞り込み、本番環境の動作を監査してレポートを作成できます。また、 Roboflow Agent に、イベントについて自然言語で質問することもできます。

保存済みフィルター

保存済みフィルターはそのユースケースに属するため、ワークスペース内の全員が開くことができます。相対日付は相対のままです。過去 7 日間の保存済みフィルターは、常に直近 7 日間を表示します。Vision Events を作成できるユーザーは誰でもフィルターを上書き保存できます。名前の変更または削除を行えるのは、保存した本人か、Vision Events を管理できるユーザーだけです。

自動確定イベント

自動確定イベントは、動画のアップロードが完了する前にエッジデバイス上で自動的に閉じられたイベントであるため、動画がありません。イベントの結果と静止画は引き続き保持されます。これは、 エッジデバイスバックアップ.

Agent へのクエリ

Agent にイベントについて質問するには、「Vision Events を表示」 権限が必要です。質問がワークスペースの 保持期間を超える場合、Agent はゼロと回答する代わりに、クエリ可能な最も古い日付を通知します。日付の境界と時間バケットには UTC が使用されます。

Web アプリ

イベントをフィルタリング

「Vision Events」を開き、ユースケースをクリックすると、最新順にイベントを確認できます。

フィルターバーを使用して、日付、イベントタイプ、デバイス、ストリーム、Workflow、検出(任意の信頼度しきい値付き)、フィードバック、カスタムメタデータ、動画数、または取り込み警告で結果を絞り込みます。開始日または終了日は、「相対」(例: 7 日前)または「絶対」(固定された日時)に設定できます。

イベント詳細サイドバーの値(例: デバイス ID またはカスタムメタデータ値)をクリックすると、フィルターとして追加できます。有効なフィルターチップをクリックすると、その値または演算子を変更できます。

一致するイベントの合計件数は、リストの読み込み中であっても結果の上に表示されます。ユースケースに イベント値がある場合は、一致するイベントの合計値も表示されます。

フィルターを再利用するには、フィルターバーの先頭にある「保存済みフィルター」を開き、「現在のフィルターを保存」をクリックします。「リンクをコピー」を使用して共有できます。変更できるユーザーについては、 保存済みフィルター を参照してください。

イベントを保持するには、イベントを開いてヘッダーの星印をクリックするか、】【t_c28fa7df】 Sを押します。星印はあなたとユースケースに対してのみ非公開です。確認するには、「保存済みフィルター」の横にある「リスト」メニューを開き、「スター付き」を選択します。スター付きイベントは、 保持期間を過ぎた後も表示されたままです。ユースケースごとに最大 1,000 件のイベントにスターを付けられます。

イベントの詳細を表示

イベントをクリックすると、画像、動画クリップ、ソースメタデータ、予測、イベントデータ、カスタムメタデータ、および 値.

イベントに検出、セグメンテーション、またはキーポイントがある場合は、「検出を描画」をオンにしてソース画像上に描画します。これは、パイプラインが入力画像のみを保存する場合に役立ちます。ブラウザは、すべてのイベントと全画面表示でこの選択を記憶します。検出結果がすでに表示されている出力画像では、このチェックボックスは非表示になります。

イベントカード上の再生アイコンは、そのイベントに 動画クリップがあることを示します。クリップは画像の後の「メディア」ストリップで再生され、まだ処理中のクリップは準備ができると再生されます。検出オーバーレイと全画面表示は画像でのみ機能し、 トレーニング用にクリップを追加する.

取り消し線付きの動画アイコンは、 自動確定イベントを示します。その詳細ビューには、確定された時刻が表示されます。

Agent に質問する

左側のサイドバーで「Agent」をクリックし、】【t_f077e94c】 Roboflow Agent にユースケースについて質問します(例: 「assembly-line-qa では先週、失敗が何件ありましたか?」)。イベントデータをクエリして回答します。イベントの件数のカウント、時間経過に伴う合格率と不合格率の追跡、数値フィールドの合計、平均、最小値、最大値、一意の件数の計算、フィールド、カスタムメタデータ、日、週ごとの合計のグループ化、およびイベント自体の一覧表示(例: 「デバイス X のイベントを表示して」)が可能です。次のイベントページを表示するには、さらに表示するよう依頼してください。

ユースケースの「概要」または「検索」タブにある「AI で分析」を選択すると、送信準備ができた質問を含む Agent が新しいタブで開きます。「検索」タブから開く場合、質問には現在のフィルターが含まれます。

定期的なメールダイジェストについては、 サマリーレポート.

HTTP API

Vision Events をクエリする

フィルター、時間範囲、ページネーションを使用して Vision Events をクエリします。このエンドポイントでは、イベントタイプ、デバイスコンテキスト、検出クラス、カスタムメタデータ、画像メタデータ、イベント固有のフィールドによるフィルタリングをサポートしています。

必要なスコープ: vision-events:read または device:read

Query Vision Events

post

Query vision events with filters, time ranges, and pagination. Events come newest first and only from the workspace's retention window. Requires the vision-events:read or device:read scope. imageMetadataFilters and savedFilterId need vision-events:read.

認可
Authorizationstring必須

Roboflow API key passed as a Bearer token.

本文
useCaseIdstring必須

The use case ID to query events for.

startTimestring · date-timeオプション

Start of the time range.

endTimestring · date-timeオプション

End of the time range.

eventTypestring · enumオプション

Filter to one event type. To filter to several, use eventTypes.

可能な値:
hasWarningsbooleanオプション

Filter to events that have (true) or do not have (false) ingestion warnings.

cursorstringオプション

The nextCursor from a previous response, to fetch the next page.

limitinteger · 最小: 1 · 最大: 1000オプション

Number of events to return per page.

Default: 100
anchorEventIdstring · 最大: 256オプション

Start the first page at this event, so it is the first result. Ignored when you send cursor. The response sets anchorFound.

savedFilterIdstringオプション

Run a saved filter of this use case instead of sending filters. Send only useCaseId, limit, and cursor with it. Requires the vision-events:read scope and does not work with device API keys. Relative dates resolve on the first page and stay fixed for later pages. Sending any other filter with it returns 400.

Example: Yq3mT8vR2nKp
レスポンス
200

Query results.

application/json
hasMorebooleanオプション

True when more events match. Pass nextCursor as cursor to get the next page.

nextCursorstring · ヌル許容オプション

Cursor for the next page. null when hasMore is false.

anchorFoundbooleanオプション

Returned when you sent anchorEventId. False when that event is not in the retention window.

lookbackDaysintegerオプション

The workspace's retention window in days (14 by default).

deprecationsstring[]オプション

Deprecated field names used in the request.

post/vision-events/query
POST /vision-events/query HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 242

{
  "useCaseId": "a1b3c8e1",
  "startTime": "2024-01-14T00:00:00Z",
  "endTime": "2024-01-15T23:59:59Z",
  "eventTypes": [
    "quality_check",
    "safety_alert"
  ],
  "customMetadataFilters": [
    {
      "field": "temperature",
      "operator": "gt",
      "value": 70,
      "type": "number"
    }
  ],
  "limit": 50
}
{
  "events": [
    {
      "eventId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "eventType": "quality_check",
      "timestamp": "2024-01-15T10:30:00.000Z",
      "images": [
        {
          "label": "inspection-photo",
          "objectDetections": [
            {
              "class": "defect",
              "x": 100,
              "y": 200,
              "width": 50,
              "height": 30,
              "confidence": 0.95
            }
          ]
        }
      ],
      "videos": [
        {
          "sourceId": "Kq4vX8mNp2RtY6wZ1bCd",
          "label": "line-3 camera"
        }
      ],
      "eventData": {
        "result": "fail",
        "externalId": "batch-001"
      },
      "customMetadata": {
        "line": "A1",
        "temperature": 72.5
      }
    }
  ],
  "hasMore": true,
  "nextCursor": "eyJ0aW1lc3RhbXAiOiIyMDI0LTAxLTE1IiwiZXZlbnRJZCI6InFjLTAwMSJ9",
  "lookbackDays": 14
}

この detection フィルターは以前は detectionClassという名前でした。古い名前は受け付けられなくなりました。

結果内の各動画には、その sourceId と labelのみが一覧表示されます。再生またはダウンロードするには、 再生 URL を取得 してください。 sourceId.

保存済みフィルターを実行するには、その ID を savedFilterIdとして送信します。そのフィルターに対して「検索」タブに表示されるものと同じイベントを取得できます。

保存済みフィルター

保存済みフィルターは「検索」タブに表示されるものと同じであるため、API 経由で保存したフィルターは Web アプリにも表示されます。生の API キーはワークスペースとして動作し、どのフィルターも所有しません。任意のフィルターの名前変更または削除には、 vision-events:manage スコープが必要です。OAuth トークンはそのユーザーとして動作するため、そのユーザーは自身のフィルターを vision-events:writeで名前変更および削除できます。他のユーザーのフィルターへの変更は、ワークスペースの監査ログに記録されます。

List Saved Filters

get

List the saved filters of a use case, sorted by name. Requires the vision-events:read scope and the View Vision Events permission.

認可
Authorizationstring必須

Roboflow API key passed as a Bearer token.

パスパラメータ
useCaseIdstring必須

The use case the filters belong to.

レスポンス
200

The use case's saved filters.

application/json
get/vision-events/use-cases/{useCaseId}/saved-filters
GET /vision-events/use-cases/{useCaseId}/saved-filters HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "savedFilters": [
    {
      "id": "Yq3mT8vR2nKp",
      "name": "Line 3 misses",
      "filters": [
        {
          "category": "startDate",
          "operator": "gte",
          "value": "now-7d",
          "label": "Start Date: 7 days ago"
        },
        {
          "category": "customMetadata",
          "field": "line_id",
          "type": "string",
          "operator": "eq",
          "value": "3",
          "label": "line_id: 3"
        }
      ],
      "createdBy": "text",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedBy": "text",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ]
}

Get a Saved Filter

get

Get one saved filter. Requires the vision-events:read scope and the View Vision Events permission.

認可
Authorizationstring必須

Roboflow API key passed as a Bearer token.

パスパラメータ
useCaseIdstring必須

The use case the filter belongs to.

savedFilterIdstring必須

The saved filter ID.

レスポンス
200

The saved filter.

application/json
get/vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId}
GET /vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "savedFilter": {
    "id": "Yq3mT8vR2nKp",
    "name": "Line 3 misses",
    "filters": [
      {
        "category": "startDate",
        "operator": "gte",
        "value": "now-7d",
        "label": "Start Date: 7 days ago"
      },
      {
        "category": "customMetadata",
        "field": "line_id",
        "type": "string",
        "operator": "eq",
        "value": "3",
        "label": "line_id: 3"
      }
    ],
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z"
  }
}

Create a Saved Filter

post

Save a set of filters to a use case. Every member of the workspace who can view Vision Events can open it. Requires the vision-events:write scope and the Create Vision Events permission.

認可
Authorizationstring必須

Roboflow API key passed as a Bearer token.

パスパラメータ
useCaseIdstring必須

The use case the filters belong to.

本文
namestring · 最小: 1 · 最大: 100必須

Must be unique in the use case, ignoring case. Leading and trailing spaces are trimmed.

Example: Line 3 misses
レスポンス
201

Saved filter created.

application/json
post/vision-events/use-cases/{useCaseId}/saved-filters
POST /vision-events/use-cases/{useCaseId}/saved-filters HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 241

{
  "name": "Line 3 misses",
  "filters": [
    {
      "category": "startDate",
      "operator": "gte",
      "value": "now-7d",
      "label": "Start Date: 7 days ago"
    },
    {
      "category": "customMetadata",
      "field": "line_id",
      "type": "string",
      "operator": "eq",
      "value": "3",
      "label": "line_id: 3"
    }
  ]
}
{
  "savedFilter": {
    "id": "Yq3mT8vR2nKp",
    "name": "Line 3 misses",
    "filters": [
      {
        "category": "startDate",
        "operator": "gte",
        "value": "now-7d",
        "label": "Start Date: 7 days ago"
      },
      {
        "category": "customMetadata",
        "field": "line_id",
        "type": "string",
        "operator": "eq",
        "value": "3",
        "label": "line_id: 3"
      }
    ],
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z"
  }
}

Update a Saved Filter

patch

Rename a saved filter, save new filters over it, or both. Saving over needs the vision-events:write scope. Renaming needs vision-events:manage, unless an OAuth token renames a filter its own user saved.

認可
Authorizationstring必須

Roboflow API key passed as a Bearer token.

パスパラメータ
useCaseIdstring必須

The use case the filter belongs to.

savedFilterIdstring必須

The saved filter ID.

本文

Send name, filters, or both.

namestring · 最小: 1 · 最大: 100オプション

A new name. Must be unique in the use case, ignoring case.

レスポンス
200

Saved filter updated.

application/json
patch/vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId}
PATCH /vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "name": "Line 3 misses, last 7 days"
}
{
  "savedFilter": {
    "id": "Yq3mT8vR2nKp",
    "name": "Line 3 misses",
    "filters": [
      {
        "category": "startDate",
        "operator": "gte",
        "value": "now-7d",
        "label": "Start Date: 7 days ago"
      },
      {
        "category": "customMetadata",
        "field": "line_id",
        "type": "string",
        "operator": "eq",
        "value": "3",
        "label": "line_id: 3"
      }
    ],
    "createdBy": "text",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedBy": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z"
  }
}

Delete a Saved Filter

delete

Delete a saved filter. Needs the vision-events:manage scope, unless an OAuth token deletes a filter its own user saved.

認可
Authorizationstring必須

Roboflow API key passed as a Bearer token.

パスパラメータ
useCaseIdstring必須

The use case the filter belongs to.

savedFilterIdstring必須

The saved filter ID.

レスポンス
200

Saved filter deleted.

application/json
successbooleanオプション
delete/vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId}
DELETE /vision-events/use-cases/{useCaseId}/saved-filters/{savedFilterId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "success": true
}

Python SDK

フィルター、時間範囲、ページネーションを使用して Vision Events をクエリします。

単一ページのクエリ

次を使用します query_vision_events() 単一ページの結果を取得するには:

追加のフィルターをキーワード引数として渡すこともできます。これらは API に直接転送されます:

手動でページネーションを行うには、 cursor パラメーターに、前のレスポンスの nextCursor 値を指定します:

すべての結果をページネーションする

次を使用します query_all_vision_events() を使用すると、一致するすべてのイベントを自動的にページネーションできます。一度に 1 ページのイベントを返します:

使用可能なフィルター、演算子、レスポンス形式の詳細については、 REST API リファレンス.

MCP サーバー

AI エージェントを次に接続すると、 MCP サーバー 、これらのツールを使用してイベントに関する質問に回答できます:

ツール
説明

vision_events_query

フィルターとページネーションを使用して、本番環境の Vision Events をクエリします。

vision_events_use_cases_list

ワークスペース内の Vision Events のユースケースを一覧表示します。

vision_events_custom_metadata_schema_get

ユースケースで検出されたカスタムメタデータスキーマを取得します。

最終更新

役に立ちましたか?