Method: stats.getSession
検索セッションの数、ユーザーのクリッククエリの統計情報で成功したセッションの割合を取得します。
注: この API を実行するには、標準のエンドユーザー アカウントが必要です。
HTTP リクエスト
GET https://cloudsearch.googleapis.com/v1/stats/session
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ |
fromDate |
object (Date )
fromDate から toDate までの利用可能なすべての統計情報が返されます。fromDate は年内に指定し、toDate は fromDate 以上にする必要があります。
|
toDate |
object (Date )
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文に次の構造のデータが含まれます。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/cloud_search.stats.indexing
https://www.googleapis.com/auth/cloud_search.stats
https://www.googleapis.com/auth/cloud_search
詳細については、承認ガイドをご覧ください。
CustomerSessionStats
JSON 表現 |
{
"date": {
object (Date )
},
"searchSessionsCount": string
} |
フィールド |
date |
object (Date )
セッション統計情報が計算された日付。スコアは翌日、午前 0 時(PST)頃に計算されてから返されます。
|
searchSessionsCount |
string (int64 format)
その日の検索セッションの数
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-03 UTC。
[null,null,["最終更新日 2024-09-03 UTC。"],[[["Retrieve query statistics such as the number of search sessions and the percentage of successful sessions with a click for a customer."],["Requires a standard end user account and uses the `GET https://cloudsearch.googleapis.com/v1/stats/session` HTTP request."],["Specify a date range using the `fromDate` and `toDate` query parameters for retrieving session statistics within that period."],["The response includes an array of `CustomerSessionStats` objects containing the date and the corresponding search session count."],["Authorization requires specific OAuth scopes like `https://www.googleapis.com/auth/cloud_search.stats.indexing` or others mentioned in the documentation."]]],[]]