Method: stats.getSession
取得搜尋工作階段數,以及客戶點擊查詢統計資料的成功工作階段百分比。
注意:這個 API 需要標準使用者帳戶才能執行。
HTTP 要求
GET https://cloudsearch.googleapis.com/v1/stats/session
這個網址使用 gRPC 轉碼語法。
查詢參數
參數 |
fromDate |
object (Date )
系統會傳回從日期到今天的所有可用統計資料。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 )
計算工作階段統計資料的日期。統計時間為隔天,接近太平洋標準時間午夜,然後傳回。
|
searchSessionsCount |
string (int64 format)
當天的搜尋工作階段數
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-03 (世界標準時間)。
[null,null,["上次更新時間:2024-09-03 (世界標準時間)。"],[[["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."]]],[]]