Method: stats.getSession
Dapatkan # sesi penelusuran, % sesi yang berhasil dengan statistik kueri klik untuk pelanggan.
Catatan: API ini memerlukan akun pengguna akhir standar agar dapat dijalankan.
Permintaan HTTP
GET https://cloudsearch.googleapis.com/v1/stats/session
URL menggunakan sintaksis gRPC Transcoding.
Parameter kueri
Parameter |
fromDate |
object (Date )
Semua statistik yang tersedia dari fromDate hingga toDate akan ditampilkan. fromDate harus dalam tahun dan toDate >= fromDate.
|
toDate |
object (Date )
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat data dengan struktur berikut:
Cakupan Otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/cloud_search.stats.indexing
https://www.googleapis.com/auth/cloud_search.stats
https://www.googleapis.com/auth/cloud_search
Untuk informasi selengkapnya, lihat Panduan otorisasi.
CustomerSessionStats
Representasi JSON |
{
"date": {
object (Date )
},
"searchSessionsCount": string
} |
Kolom |
date |
object (Date )
Tanggal saat statistik sesi dihitung. Statistik dihitung pada hari berikutnya, mendekati tengah malam PST, lalu ditampilkan.
|
searchSessionsCount |
string (int64 format)
Jumlah sesi penelusuran pada hari itu
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-03 UTC.
[null,null,["Terakhir diperbarui pada 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."]]],[]]