{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"リアルタイム プロファイルルックアップ","description":"Treasure Workflowからリアルタイムプロファイルの現在のID関連付け、更新時刻、保存済み属性を確認する方法を説明します。","siteUrl":"https://docs.treasure.ai","image":"/assets/treasure-ai-social-preview.e6fefb35676f6da91c2d1bc783bd39e618e7af2b1ad3aa52a96ae69d72e700fe.b1bff462.png","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"リアルタイム-プロファイルルックアップ","__idx":0},"children":["リアルタイム プロファイルルックアップ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロファイルルックアップは、リアルタイムIDステッチングによるプロファイルの解決結果を調査する機能です。Treasure Workflowから1つ以上のIDセレクターを送信すると、入力行ごとの結果が親セグメントのリアルタイムデータベース",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cdp_audience_<parent_segment_id>_rt"]},"にある",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["profile_lookup"]},"テーブルに書き込まれます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この機能は対象を絞った調査に使用してください。IDグラフの一括エクスポートを目的としたものではありません。結果には、解決されたプロファイルに現在関連付けられているIDと、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["保存済みのリアルタイム属性"]},"が含まれます。バッチ属性や動的に計算される属性は含まれません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"結果のカラム","__idx":1},"children":["結果のカラム"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"カラム"},"children":["カラム"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ルックアップの処理時刻。Unix秒。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reactor_instance_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ルックアップを処理したリアルタイムインスタンス。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lookup_row_index"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リクエスト内の入力行番号。0から始まります。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lookup_selectors"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["入力行で指定したIDセレクター。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_rt_lookup_id"]},"は含みません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["current_rid"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["解決されたプロファイルのRID。一致するものがない場合は存在しません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["realtime_attributes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["解決されたプロファイルの保存済みリアルタイム属性。一致するものがない場合は空です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["current_id_attributes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["現在そのプロファイルに関連付けられているすべてのID。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key:value"]},"形式で、関連付けの更新時刻順に並びます。一致するものがない場合は空です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["current_id_timestamps"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["current_id_attributes"]},"の各IDに対応するUnix秒単位の時刻。同じ順序で並びます。一致するものがない場合は空です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_rt_lookup_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ワークフローから任意で指定する照合用ID。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロファイルが別のプロファイルに統合された場合、残されたRIDに移動したIDの時刻は統合時刻になります。この時刻は関連付けが更新された時刻を示し、IDが初めて確認された時刻とは限りません。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["1つの入力行にある複数のセレクターが異なるプロファイルに一致した場合、ルックアップは最も古いRIDを返します。これはステッチング時に残されるRIDです。プロファイルの特定に必要な最小限のセレクターを使用してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-workflowから実行する","__idx":2},"children":["Treasure Workflowから実行する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["親セグメントID、リアルタイムインスタンスID、およびデプロイメントのステージとサイトに対応するインポーターエンドポイントが必要です。インポーターエンドポイントには、Treasure AIプラットフォーム内のTreasure Workflowからアクセスできます。インスタンスIDが不明な場合や、正しいエンドポイントを確認したい場合は、Treasure AIサポートにお問い合わせください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ワークフロープロジェクトの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Secrets"]},"タブに、APIキーを",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td.apikey"]},"として保存します。このワークフローでは、シークレットの値に",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD1 <account_id>/<api_key>"]},"形式の完全な認証値を指定してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の例では、設定済みの",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_client_id"]},"キーで1件のプロファイルを検索します。例には",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["本番US"]},"のエンドポイントを使用しています。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["XXXX"]},"、インスタンスID、エンドポイントをデプロイメントのステージとサイトに合わせて変更してください。使用すべきエンドポイントが不明な場合は、Treasure AIサポートにご相談ください。任意の",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_rt_lookup_id"]},"を指定すると、後で結果を探しやすくなります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"_export:\n  reactor_api_endpoint: \"https://bulk-storage-importer-api-production-aws-us-east-1.internal.treasuredata.com\"\n  reactor_instance: \"aYYYYnZ\"\n  td:\n    database: cdp_audience_XXXX\n    engine: presto\n\n+profile_lookup:\n  td>:\n  query: |\n    SELECT\n      'td_client_id:12345' AS result,\n      'td_rt_lookup_id:my-lookup-job' AS lookup_id\n  result_url: |\n    {\n      \"type\": \"rest\",\n      \"method\": \"POST\",\n      \"authorization\": \"${secret:td.apikey}\",\n      \"endpoint\": \"${reactor_api_endpoint}/internal/lookup-profile\",\n      \"headers\": \"{\\\"x-reactor-instance-name\\\": \\\"${reactor_instance}\\\"}\"\n    }\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リアルタイムインスタンスに設定されたキーを使用してください。セレクターは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["key:value"]},"形式で指定します。任意の",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_rt_lookup_id:value"]},"はセレクターではなくメタデータです。1回のリクエストには最大5行の入力を指定できます。一括抽出には使用せず、インポーターインスタンスあたり約1秒に1回を目安に対象を絞って実行してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ワークフローの完了後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]},"で結果を照会します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n  time,\n  td_rt_lookup_id,\n  reactor_instance_id,\n  lookup_row_index,\n  lookup_selectors,\n  current_rid,\n  realtime_attributes,\n  current_id_attributes,\n  current_id_timestamps\nFROM cdp_audience_XXXX_rt.profile_lookup\nWHERE td_rt_lookup_id = 'my-lookup-job'\nORDER BY time DESC\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"本番環境のインポーターエンドポイント","__idx":3},"children":["本番環境のインポーターエンドポイント"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下は本番環境のエンドポイントです。他のデプロイメントステージでは異なるエンドポイントを使用します。ステージとサイトの両方に一致するものを使用してください。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"サイト"},"children":["サイト"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"エンドポイント"},"children":["エンドポイント"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["US"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://bulk-storage-importer-api-production-aws-us-east-1.internal.treasuredata.com"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["EU (eu01)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://bulk-storage-importer-api-production-eu01-eu-central-1.internal.treasuredata.com"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["東京"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://bulk-storage-importer-api-production-aws-tokyo-ap-northeast-1.internal.treasuredata.com"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["現在のIDグラフに至るまでの変更については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/real-time/real-time-identity-log-tables"},"children":["リアルタイム アイデンティティログテーブル"]},"を参照してください。プロファイルルックアップには現在の状態が、アイデンティティログテーブルには過去の変更が記録されます。"]}]},"headings":[{"value":"リアルタイム プロファイルルックアップ","id":"リアルタイム-プロファイルルックアップ","depth":1},{"value":"結果のカラム","id":"結果のカラム","depth":2},{"value":"Treasure Workflowから実行する","id":"treasure-workflowから実行する","depth":2},{"value":"本番環境のインポーターエンドポイント","id":"本番環境のインポーターエンドポイント","depth":3}],"frontmatter":{"seo":{"title":"リアルタイム プロファイルルックアップ","description":"Treasure Workflowからリアルタイムプロファイルの現在のID関連付け、更新時刻、保存済み属性を確認する方法を説明します。"}},"lastModified":"2026-10-24T07:54:25.091Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/real-time/real-time-profile-lookup","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}