source: vendor/google/apiclient-services/src/CloudSearch/Resource/Stats.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\CloudSearch\Resource;
19
20use Google\Service\CloudSearch\GetCustomerIndexStatsResponse;
21use Google\Service\CloudSearch\GetCustomerQueryStatsResponse;
22use Google\Service\CloudSearch\GetCustomerSearchApplicationStatsResponse;
23use Google\Service\CloudSearch\GetCustomerSessionStatsResponse;
24use Google\Service\CloudSearch\GetCustomerUserStatsResponse;
25
26/**
27 * The "stats" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $cloudsearchService = new Google\Service\CloudSearch(...);
31 * $stats = $cloudsearchService->stats;
32 * </code>
33 */
34class Stats extends \Google\Service\Resource
35{
36 /**
37 * Gets indexed item statistics aggreggated across all data sources. This API
38 * only returns statistics for previous dates; it doesn't return statistics for
39 * the current day. **Note:** This API requires a standard end user account to
40 * execute. (stats.getIndex)
41 *
42 * @param array $optParams Optional parameters.
43 *
44 * @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
45 * the year and month.
46 * @opt_param int fromDate.month Month of date. Must be from 1 to 12.
47 * @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
48 * @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
49 * the year and month.
50 * @opt_param int toDate.month Month of date. Must be from 1 to 12.
51 * @opt_param int toDate.year Year of date. Must be from 1 to 9999.
52 * @return GetCustomerIndexStatsResponse
53 * @throws \Google\Service\Exception
54 */
55 public function getIndex($optParams = [])
56 {
57 $params = [];
58 $params = array_merge($params, $optParams);
59 return $this->call('getIndex', [$params], GetCustomerIndexStatsResponse::class);
60 }
61 /**
62 * Get the query statistics for customer. **Note:** This API requires a standard
63 * end user account to execute. (stats.getQuery)
64 *
65 * @param array $optParams Optional parameters.
66 *
67 * @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
68 * the year and month.
69 * @opt_param int fromDate.month Month of date. Must be from 1 to 12.
70 * @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
71 * @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
72 * the year and month.
73 * @opt_param int toDate.month Month of date. Must be from 1 to 12.
74 * @opt_param int toDate.year Year of date. Must be from 1 to 9999.
75 * @return GetCustomerQueryStatsResponse
76 * @throws \Google\Service\Exception
77 */
78 public function getQuery($optParams = [])
79 {
80 $params = [];
81 $params = array_merge($params, $optParams);
82 return $this->call('getQuery', [$params], GetCustomerQueryStatsResponse::class);
83 }
84 /**
85 * Get search application stats for customer. **Note:** This API requires a
86 * standard end user account to execute. (stats.getSearchapplication)
87 *
88 * @param array $optParams Optional parameters.
89 *
90 * @opt_param int endDate.day Day of month. Must be from 1 to 31 and valid for
91 * the year and month.
92 * @opt_param int endDate.month Month of date. Must be from 1 to 12.
93 * @opt_param int endDate.year Year of date. Must be from 1 to 9999.
94 * @opt_param int startDate.day Day of month. Must be from 1 to 31 and valid for
95 * the year and month.
96 * @opt_param int startDate.month Month of date. Must be from 1 to 12.
97 * @opt_param int startDate.year Year of date. Must be from 1 to 9999.
98 * @return GetCustomerSearchApplicationStatsResponse
99 * @throws \Google\Service\Exception
100 */
101 public function getSearchapplication($optParams = [])
102 {
103 $params = [];
104 $params = array_merge($params, $optParams);
105 return $this->call('getSearchapplication', [$params], GetCustomerSearchApplicationStatsResponse::class);
106 }
107 /**
108 * Get the # of search sessions, % of successful sessions with a click query
109 * statistics for customer. **Note:** This API requires a standard end user
110 * account to execute. (stats.getSession)
111 *
112 * @param array $optParams Optional parameters.
113 *
114 * @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
115 * the year and month.
116 * @opt_param int fromDate.month Month of date. Must be from 1 to 12.
117 * @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
118 * @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
119 * the year and month.
120 * @opt_param int toDate.month Month of date. Must be from 1 to 12.
121 * @opt_param int toDate.year Year of date. Must be from 1 to 9999.
122 * @return GetCustomerSessionStatsResponse
123 * @throws \Google\Service\Exception
124 */
125 public function getSession($optParams = [])
126 {
127 $params = [];
128 $params = array_merge($params, $optParams);
129 return $this->call('getSession', [$params], GetCustomerSessionStatsResponse::class);
130 }
131 /**
132 * Get the users statistics for customer. **Note:** This API requires a standard
133 * end user account to execute. (stats.getUser)
134 *
135 * @param array $optParams Optional parameters.
136 *
137 * @opt_param int fromDate.day Day of month. Must be from 1 to 31 and valid for
138 * the year and month.
139 * @opt_param int fromDate.month Month of date. Must be from 1 to 12.
140 * @opt_param int fromDate.year Year of date. Must be from 1 to 9999.
141 * @opt_param int toDate.day Day of month. Must be from 1 to 31 and valid for
142 * the year and month.
143 * @opt_param int toDate.month Month of date. Must be from 1 to 12.
144 * @opt_param int toDate.year Year of date. Must be from 1 to 9999.
145 * @return GetCustomerUserStatsResponse
146 * @throws \Google\Service\Exception
147 */
148 public function getUser($optParams = [])
149 {
150 $params = [];
151 $params = array_merge($params, $optParams);
152 return $this->call('getUser', [$params], GetCustomerUserStatsResponse::class);
153 }
154}
155
156// Adding a class alias for backwards compatibility with the previous class name.
157class_alias(Stats::class, 'Google_Service_CloudSearch_Resource_Stats');
Note: See TracBrowser for help on using the repository browser.