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 )
系統會傳回從 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
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Method: stats.session.searchapplications.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGet the # of search sessions, % of successful sessions with a click query statistics for search application.\n\n**Note:** This API requires a standard end user account to execute.\n\n### HTTP request\n\n`GET https://cloudsearch.googleapis.com/v1/stats/session/{name=searchapplications/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource id of the search application session stats, in the following format: searchapplications/{applicationId} |\n\n### Query parameters\n\n| Parameters ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `fromDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` All available stats from fromDate to toDate are returned. fromDate should be within the year and toDate \\\u003e= fromDate. |\n| `toDate` | `object (`[Date](/workspace/cloud-search/docs/reference/rest/v1/Date)`)` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [GetSearchApplicationSessionStatsResponse](/workspace/cloud-search/docs/reference/rest/v1/stats.session.searchapplications#GetSearchApplicationSessionStatsResponse).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud_search.stats.indexing`\n- `https://www.googleapis.com/auth/cloud_search.stats`\n- `https://www.googleapis.com/auth/cloud_search`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]