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 |
|
---|
18 | namespace Google\Service\Playdeveloperreporting\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Playdeveloperreporting\GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "reports" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $playdeveloperreportingService = new Google\Service\Playdeveloperreporting(...);
|
---|
27 | * $reports = $playdeveloperreportingService->vitals_errors_reports;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class VitalsErrorsReports extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Searches all error reports received for an app. (reports.search)
|
---|
34 | *
|
---|
35 | * @param string $parent Required. Parent resource of the reports, indicating
|
---|
36 | * the application for which they were received. Format: apps/{app}
|
---|
37 | * @param array $optParams Optional parameters.
|
---|
38 | *
|
---|
39 | * @opt_param string filter A selection predicate to retrieve only a subset of
|
---|
40 | * the reports. For filtering basics, please check
|
---|
41 | * [AIP-160](https://google.aip.dev/160). ** Supported field names:** *
|
---|
42 | * `apiLevel`: Matches error reports that occurred in the requested Android
|
---|
43 | * versions (specified as the numeric API level) only. Example: `apiLevel = 28
|
---|
44 | * OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred in
|
---|
45 | * the requested app version codes only. Example: `versionCode = 123 OR
|
---|
46 | * versionCode = 456`. * `deviceModel`: Matches error issues that occurred in
|
---|
47 | * the requested devices. Example: `deviceModel = "google/walleye" OR
|
---|
48 | * deviceModel = "google/marlin"`. * `deviceBrand`: Matches error issues that
|
---|
49 | * occurred in the requested device brands. Example: `deviceBrand = "Google". *
|
---|
50 | * `deviceType`: Matches error reports that occurred in the requested device
|
---|
51 | * types. Example: `deviceType = "PHONE"`. * `errorIssueType`: Matches error
|
---|
52 | * reports of the requested types only. Valid candidates: `CRASH`, `ANR`.
|
---|
53 | * Example: `errorIssueType = CRASH OR errorIssueType = ANR`. * `errorIssueId`:
|
---|
54 | * Matches error reports belonging to the requested error issue ids only.
|
---|
55 | * Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * `errorReportId`:
|
---|
56 | * Matches error reports with the requested error report id. Example:
|
---|
57 | * `errorReportId = 1234 OR errorReportId = 4567`. * `appProcessState`: Matches
|
---|
58 | * error reports on the process state of an app, indicating whether an app runs
|
---|
59 | * in the foreground (user-visible) or background. Valid candidates:
|
---|
60 | * `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. *
|
---|
61 | * `isUserPerceived`: Matches error reports that are user-perceived. It is not
|
---|
62 | * accompanied by any operators. Example: `isUserPerceived`. ** Supported
|
---|
63 | * operators:** * Comparison operators: The only supported comparison operator
|
---|
64 | * is equality. The filtered field must appear on the left hand side of the
|
---|
65 | * comparison. * Logical Operators: Logical operators `AND` and `OR` can be used
|
---|
66 | * to build complex filters following a conjunctive normal form (CNF), i.e.,
|
---|
67 | * conjunctions of disjunctions. The `OR` operator takes precedence over `AND`
|
---|
68 | * so the use of parenthesis is not necessary when building CNF. The `OR`
|
---|
69 | * operator is only supported to build disjunctions that apply to the same
|
---|
70 | * field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression
|
---|
71 | * `versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some
|
---|
72 | * valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` *
|
---|
73 | * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` *
|
---|
74 | * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`
|
---|
75 | * @opt_param int interval.endTime.day Optional. Day of month. Must be from 1 to
|
---|
76 | * 31 and valid for the year and month, or 0 if specifying a datetime without a
|
---|
77 | * day.
|
---|
78 | * @opt_param int interval.endTime.hours Optional. Hours of day in 24 hour
|
---|
79 | * format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose
|
---|
80 | * to allow the value "24:00:00" for scenarios like business closing time.
|
---|
81 | * @opt_param int interval.endTime.minutes Optional. Minutes of hour of day.
|
---|
82 | * Must be from 0 to 59, defaults to 0.
|
---|
83 | * @opt_param int interval.endTime.month Optional. Month of year. Must be from 1
|
---|
84 | * to 12, or 0 if specifying a datetime without a month.
|
---|
85 | * @opt_param int interval.endTime.nanos Optional. Fractions of seconds in
|
---|
86 | * nanoseconds. Must be from 0 to 999,999,999, defaults to 0.
|
---|
87 | * @opt_param int interval.endTime.seconds Optional. Seconds of minutes of the
|
---|
88 | * time. Must normally be from 0 to 59, defaults to 0. An API may allow the
|
---|
89 | * value 60 if it allows leap-seconds.
|
---|
90 | * @opt_param string interval.endTime.timeZone.id IANA Time Zone Database time
|
---|
91 | * zone. For example "America/New_York".
|
---|
92 | * @opt_param string interval.endTime.timeZone.version Optional. IANA Time Zone
|
---|
93 | * Database version number. For example "2019a".
|
---|
94 | * @opt_param string interval.endTime.utcOffset UTC offset. Must be whole
|
---|
95 | * seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00
|
---|
96 | * would be represented as { seconds: -14400 }.
|
---|
97 | * @opt_param int interval.endTime.year Optional. Year of date. Must be from 1
|
---|
98 | * to 9999, or 0 if specifying a datetime without a year.
|
---|
99 | * @opt_param int interval.startTime.day Optional. Day of month. Must be from 1
|
---|
100 | * to 31 and valid for the year and month, or 0 if specifying a datetime without
|
---|
101 | * a day.
|
---|
102 | * @opt_param int interval.startTime.hours Optional. Hours of day in 24 hour
|
---|
103 | * format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose
|
---|
104 | * to allow the value "24:00:00" for scenarios like business closing time.
|
---|
105 | * @opt_param int interval.startTime.minutes Optional. Minutes of hour of day.
|
---|
106 | * Must be from 0 to 59, defaults to 0.
|
---|
107 | * @opt_param int interval.startTime.month Optional. Month of year. Must be from
|
---|
108 | * 1 to 12, or 0 if specifying a datetime without a month.
|
---|
109 | * @opt_param int interval.startTime.nanos Optional. Fractions of seconds in
|
---|
110 | * nanoseconds. Must be from 0 to 999,999,999, defaults to 0.
|
---|
111 | * @opt_param int interval.startTime.seconds Optional. Seconds of minutes of the
|
---|
112 | * time. Must normally be from 0 to 59, defaults to 0. An API may allow the
|
---|
113 | * value 60 if it allows leap-seconds.
|
---|
114 | * @opt_param string interval.startTime.timeZone.id IANA Time Zone Database time
|
---|
115 | * zone. For example "America/New_York".
|
---|
116 | * @opt_param string interval.startTime.timeZone.version Optional. IANA Time
|
---|
117 | * Zone Database version number. For example "2019a".
|
---|
118 | * @opt_param string interval.startTime.utcOffset UTC offset. Must be whole
|
---|
119 | * seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00
|
---|
120 | * would be represented as { seconds: -14400 }.
|
---|
121 | * @opt_param int interval.startTime.year Optional. Year of date. Must be from 1
|
---|
122 | * to 9999, or 0 if specifying a datetime without a year.
|
---|
123 | * @opt_param int pageSize The maximum number of reports to return. The service
|
---|
124 | * may return fewer than this value. If unspecified, at most 50 reports will be
|
---|
125 | * returned. The maximum value is 100; values above 100 will be coerced to 100.
|
---|
126 | * @opt_param string pageToken A page token, received from a previous
|
---|
127 | * `SearchErrorReports` call. Provide this to retrieve the subsequent page. When
|
---|
128 | * paginating, all other parameters provided to `SearchErrorReports` must match
|
---|
129 | * the call that provided the page token.
|
---|
130 | * @return GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse
|
---|
131 | * @throws \Google\Service\Exception
|
---|
132 | */
|
---|
133 | public function search($parent, $optParams = [])
|
---|
134 | {
|
---|
135 | $params = ['parent' => $parent];
|
---|
136 | $params = array_merge($params, $optParams);
|
---|
137 | return $this->call('search', [$params], GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse::class);
|
---|
138 | }
|
---|
139 | }
|
---|
140 |
|
---|
141 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
142 | class_alias(VitalsErrorsReports::class, 'Google_Service_Playdeveloperreporting_Resource_VitalsErrorsReports');
|
---|