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 )
התאריך שעבורו חושבו נתונים סטטיסטיים של סשנים. הנתונים הסטטיסטיים מחושבים ביום המחרת, קרוב לחצות (שעון החוף המערבי) ואז מוחזרים.
|
searchSessionsCount |
string (int64 format)
מספר הסשנים באותו יום במסגרת החיפוש
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]],[]]