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

カスタムメタデータスキーマを取得

Use Case 全体で使用されるカスタムメタデータのフィールドと型を取得します。

概要

このエンドポイントは、全体で使用されてきたカスタムメタデータフィールドを返します Visionイベント 特定の ユースケース。カスタムメタデータは固定スキーマではなくイベントごとに定義されるため、これを使用して、構築する前にどのフィールドが存在し、どの型かを把握します イベントクエリ またはダッシュボードフィルター。

HTTP API

特定のユースケースでイベント内で使用されたカスタムメタデータフィールドのスキーマを取得します。これは、フィルタリングで利用可能なメタデータフィールドを見つけるのに役立ちます クエリリクエスト.

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

Get Custom Metadata Schema

get

Retrieve the custom metadata keys that events in a use case used within the workspace's retention window, with the value types seen for each. Requires the vision-events:read or device:read scope.

認可
Authorizationstring必須

Roboflow API key passed as a Bearer token.

パスパラメータ
useCaseIdstring必須

The use case ID.

レスポンス
200

Metadata schema.

application/json
useCaseIdstringオプション
get/vision-events/custom-metadata-schema/{useCaseId}
GET /vision-events/custom-metadata-schema/{useCaseId} HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "useCaseId": "a1b3c8e1",
  "fields": {
    "production_line": {
      "types": [
        "string"
      ]
    },
    "temperature": {
      "types": [
        "number"
      ]
    },
    "is_overtime": {
      "types": [
        "boolean"
      ]
    }
  }
}

Python SDK

特定のユースケースでイベント内で使用されたカスタムメタデータフィールドを見つけます。これは、クエリを作成するのに役立ちます customMetadataFilters.

レスポンスには フィールド 発見された各フィールド名を、その観測された型に対応付ける辞書(例: ["string"], ["number"])。この情報は、型付きフィルターを構築するときに使用できます イベントをクエリする際:

詳細については、次を参照してください。 REST API リファレンス.

MCPサーバー

AIエージェントを MCPサーバー また、次のツールを使ってカスタムメタデータスキーマを読み取ることができます:

ツール
説明

vision_events_custom_metadata_schema_get

ユースケースごとに見つかったカスタムメタデータスキーマを取得します。

最終更新

役に立ちましたか?