blob: c5aa1753b135ae738f438527f25d8c105d6c29ff [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="cloudsearch_v1.html">Cloud Search API</a> . <a href="cloudsearch_v1.stats.html">stats</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="cloudsearch_v1.stats.index.html">index()</a></code>
79</p>
80<p class="firstline">Returns the index Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="cloudsearch_v1.stats.query.html">query()</a></code>
84</p>
85<p class="firstline">Returns the query Resource.</p>
86
87<p class="toc_element">
88 <code><a href="cloudsearch_v1.stats.session.html">session()</a></code>
89</p>
90<p class="firstline">Returns the session Resource.</p>
91
92<p class="toc_element">
93 <code><a href="cloudsearch_v1.stats.user.html">user()</a></code>
94</p>
95<p class="firstline">Returns the user Resource.</p>
96
97<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070098 <code><a href="#close">close()</a></code></p>
99<p class="firstline">Close httplib2 connections.</p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700100<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700101 <code><a href="#getIndex">getIndex(toDate_day=None, toDate_month=None, fromDate_year=None, toDate_year=None, fromDate_month=None, fromDate_day=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102<p class="firstline">Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the current day. **Note:** This API requires a standard end user account to execute.</p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700103<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700104 <code><a href="#getQuery">getQuery(fromDate_month=None, fromDate_day=None, fromDate_year=None, toDate_month=None, toDate_year=None, toDate_day=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105<p class="firstline">Get the query statistics for customer. **Note:** This API requires a standard end user account to execute.</p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700106<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700107 <code><a href="#getSession">getSession(toDate_year=None, fromDate_month=None, fromDate_year=None, fromDate_day=None, toDate_month=None, toDate_day=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108<p class="firstline">Get the # of search sessions, % of successful sessions with a click query statistics for customer. **Note:** This API requires a standard end user account to execute.</p>
109<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700110 <code><a href="#getUser">getUser(fromDate_year=None, toDate_day=None, fromDate_day=None, toDate_year=None, fromDate_month=None, toDate_month=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111<p class="firstline">Get the users statistics for customer. **Note:** This API requires a standard end user account to execute.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<h3>Method Details</h3>
113<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 <code class="details" id="close">close()</code>
115 <pre>Close httplib2 connections.</pre>
116</div>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700119 <code class="details" id="getIndex">getIndex(toDate_day=None, toDate_month=None, fromDate_year=None, toDate_year=None, fromDate_month=None, fromDate_day=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120 <pre>Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn&#x27;t return statistics for the current day. **Note:** This API requires a standard end user account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700121
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 toDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700124 toDate_month: integer, Month of date. Must be from 1 to 12.
125 fromDate_year: integer, Year of date. Must be from 1 to 9999.
126 toDate_year: integer, Year of date. Must be from 1 to 9999.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127 fromDate_month: integer, Month of date. Must be from 1 to 12.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700128 fromDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133
134Returns:
135 An object of the form:
136
137 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;stats&quot;: [ # Summary of indexed item counts, one for each day in the requested range.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 { # Aggregation of items by status code as of the specified date.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700140 &quot;date&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. # Date for which statistics were calculated.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700141 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700142 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700143 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
144 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 &quot;itemCountByStatus&quot;: [ # Number of items aggregrated by status code.
146 {
147 &quot;count&quot;: &quot;A String&quot;, # Number of items matching the status code.
148 &quot;statusCode&quot;: &quot;A String&quot;, # Status of the items.
149 },
150 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151 },
152 ],
153 }</pre>
154</div>
155
Dan O'Mearadd494642020-05-01 07:42:23 -0700156<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700157 <code class="details" id="getQuery">getQuery(fromDate_month=None, fromDate_day=None, fromDate_year=None, toDate_month=None, toDate_year=None, toDate_day=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700158 <pre>Get the query statistics for customer. **Note:** This API requires a standard end user account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700159
160Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700161 fromDate_month: integer, Month of date. Must be from 1 to 12.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700162 fromDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
163 fromDate_year: integer, Year of date. Must be from 1 to 9999.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700164 toDate_month: integer, Month of date. Must be from 1 to 12.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700165 toDate_year: integer, Year of date. Must be from 1 to 9999.
166 toDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
Dan O'Mearadd494642020-05-01 07:42:23 -0700167 x__xgafv: string, V1 error format.
168 Allowed values
169 1 - v1 error format
170 2 - v2 error format
Dan O'Mearadd494642020-05-01 07:42:23 -0700171
172Returns:
173 An object of the form:
174
175 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;stats&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700177 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700178 &quot;date&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. # Date for which query stats were calculated. Stats calculated on the next day close to midnight are returned.
179 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
180 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
181 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
182 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;queryCountByStatus&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700184 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;count&quot;: &quot;A String&quot;,
186 &quot;statusCode&quot;: 42, # This represents the http status code.
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 },
188 ],
189 },
190 ],
191 }</pre>
192</div>
193
194<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700195 <code class="details" id="getSession">getSession(toDate_year=None, fromDate_month=None, fromDate_year=None, fromDate_day=None, toDate_month=None, toDate_day=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 <pre>Get the # of search sessions, % of successful sessions with a click query statistics for customer. **Note:** This API requires a standard end user account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700197
198Args:
199 toDate_year: integer, Year of date. Must be from 1 to 9999.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700200 fromDate_month: integer, Month of date. Must be from 1 to 12.
201 fromDate_year: integer, Year of date. Must be from 1 to 9999.
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 fromDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 toDate_month: integer, Month of date. Must be from 1 to 12.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700204 toDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
Dan O'Mearadd494642020-05-01 07:42:23 -0700205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
Dan O'Mearadd494642020-05-01 07:42:23 -0700209
210Returns:
211 An object of the form:
212
213 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;stats&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700215 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 &quot;searchSessionsCount&quot;: &quot;A String&quot;, # The count of search sessions on the day
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 &quot;date&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. # Date for which session stats were calculated. Stats calculated on the next day close to midnight are returned.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700218 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700219 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
221 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700222 },
223 ],
224 }</pre>
225</div>
226
227<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700228 <code class="details" id="getUser">getUser(fromDate_year=None, toDate_day=None, fromDate_day=None, toDate_year=None, fromDate_month=None, toDate_month=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 <pre>Get the users statistics for customer. **Note:** This API requires a standard end user account to execute.
Dan O'Mearadd494642020-05-01 07:42:23 -0700230
231Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700232 fromDate_year: integer, Year of date. Must be from 1 to 9999.
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 toDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700234 fromDate_day: integer, Day of month. Must be from 1 to 31 and valid for the year and month.
235 toDate_year: integer, Year of date. Must be from 1 to 9999.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700236 fromDate_month: integer, Month of date. Must be from 1 to 12.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700237 toDate_month: integer, Month of date. Must be from 1 to 12.
Dan O'Mearadd494642020-05-01 07:42:23 -0700238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
Dan O'Mearadd494642020-05-01 07:42:23 -0700242
243Returns:
244 An object of the form:
245
246 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &quot;stats&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700248 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700249 &quot;sevenDaysActiveUsersCount&quot;: &quot;A String&quot;, # The count of unique active users in the past seven days
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700250 &quot;date&quot;: { # Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. # Date for which session stats were calculated. Stats calculated on the next day close to midnight are returned.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700251 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700252 &quot;month&quot;: 42, # Month of date. Must be from 1 to 12.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month.
Dan O'Mearadd494642020-05-01 07:42:23 -0700254 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 &quot;thirtyDaysActiveUsersCount&quot;: &quot;A String&quot;, # The count of unique active users in the past thirty days
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700256 &quot;oneDayActiveUsersCount&quot;: &quot;A String&quot;, # The count of unique active users in the past one day
Dan O'Mearadd494642020-05-01 07:42:23 -0700257 },
258 ],
259 }</pre>
260</div>
261
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700262</body></html>