Method: stats.session.searchapplications.get
透過搜尋應用程式的點擊查詢統計資料,取得搜尋工作階段數、成功工作階段的百分比。
注意:您必須執行標準使用者帳戶,才能執行這個 API。
HTTP 要求
GET https://cloudsearch.googleapis.com/v1/stats/session/{name=searchapplications/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
name |
string
搜尋應用程式工作階段統計資料的資源 ID,格式為:searchapplications/{applicationId}
|
查詢參數
參數 |
fromDate |
object (Date )
系統會傳回從 Date to 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
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-03 (世界標準時間)。
[null,null,["上次更新時間:2024-09-03 (世界標準時間)。"],[[["Retrieve session statistics, such as the number of search sessions and click-through rates, for a specified search application using this API."],["The API requires a standard end user account and uses a `GET` request to `https://cloudsearch.googleapis.com/v1/stats/session/{name=searchapplications/*}`."],["You can specify a date range (`fromDate` and `toDate`) within the past year to filter the session statistics returned."],["Proper authorization is needed using one of the provided OAuth scopes: `https://www.googleapis.com/auth/cloud_search.stats.indexing`, `https://www.googleapis.com/auth/cloud_search.stats`, or `https://www.googleapis.com/auth/cloud_search`."]]],[]]