Method: stats.getSession
Müşteri için bir tıklama sorgusu istatistikleriyle, arama oturumu sayısını, başarılı oturumların yüzdesini öğrenin.
Not: Bu API'nin yürütülmesi için standart bir son kullanıcı hesabı gerekir.
HTTP isteği
GET https://cloudsearch.googleapis.com/v1/stats/session
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Sorgu parametreleri
Parametreler |
fromDate |
object (Date )
fromDate ile toDate arasındaki mevcut tüm istatistikler döndürülür. fromDate, yıl içinde ve toDate >= fromDate içinde olmalıdır.
|
toDate |
object (Date )
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/cloud_search.stats.indexing
https://www.googleapis.com/auth/cloud_search.stats
https://www.googleapis.com/auth/cloud_search
Daha fazla bilgi için Yetkilendirme kılavuzunu inceleyin.
CustomerSessionStats
JSON gösterimi |
{
"date": {
object (Date )
},
"searchSessionsCount": string
} |
Alanlar |
date |
object (Date )
Oturum istatistiklerinin hesaplandığı tarih. İstatistikler bir sonraki gün (PST) gece yarısına yakın bir tarihte hesaplanır ve daha sonra döndürülür.
|
searchSessionsCount |
string (int64 format)
Gün içindeki arama oturumlarının sayısı
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-03 UTC.
[null,null,["Son güncelleme tarihi: 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."]]],[]]