Method: stats.getSession
ดูจำนวนเซสชันการค้นหา, % ของเซสชันที่ประสบความสำเร็จที่มีสถิติข้อความค้นหาคลิกสำหรับลูกค้า
หมายเหตุ: API นี้ต้องใช้บัญชีผู้ใช้ปลายทางมาตรฐานเพื่อเรียกใช้
คำขอ HTTP
GET https://cloudsearch.googleapis.com/v1/stats/session
URL ใช้ไวยากรณ์การแปลง 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 )
วันที่ที่มีการคำนวณสถิติเซสชัน สถิติจะคำนวณในวันถัดไป ในเวลาใกล้เที่ยงคืนตามเวลา 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."]]],[]]