OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | 5 "https://www.googleapis.com/auth/cloud-platform": { |
6 "description": "View and manage your data across Google Clou
d Platform services" | 6 "description": "View and manage your data across Google Clou
d Platform services" |
7 } | 7 } |
8 } | 8 } |
9 } | 9 } |
10 }, | 10 }, |
11 "basePath": "", | 11 "basePath": "", |
12 "baseUrl": "https://clouderrorreporting.googleapis.com/", | 12 "baseUrl": "https://clouderrorreporting.googleapis.com/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "Clouderrorreporting", | 14 "canonicalName": "Clouderrorreporting", |
15 "description": "Groups and counts similar errors from cloud services and app
lications, reports new errors, and provides access to error groups and their ass
ociated errors.\n", | 15 "description": "Groups and counts similar errors from cloud services and app
lications, reports new errors, and provides access to error groups and their ass
ociated errors.\n", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://cloud.google.com/error-reporting/", | 17 "documentationLink": "https://cloud.google.com/error-reporting/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "clouderrorreporting:v1beta1", | 22 "id": "clouderrorreporting:v1beta1", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "clouderrorreporting", | 24 "name": "clouderrorreporting", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
| 28 "callback": { |
| 29 "description": "JSONP", |
| 30 "location": "query", |
| 31 "type": "string" |
| 32 }, |
| 33 "$.xgafv": { |
| 34 "description": "V1 error format.", |
| 35 "enum": [ |
| 36 "1", |
| 37 "2" |
| 38 ], |
| 39 "enumDescriptions": [ |
| 40 "v1 error format", |
| 41 "v2 error format" |
| 42 ], |
| 43 "location": "query", |
| 44 "type": "string" |
| 45 }, |
28 "alt": { | 46 "alt": { |
29 "default": "json", | 47 "default": "json", |
30 "description": "Data format for response.", | 48 "description": "Data format for response.", |
31 "enum": [ | 49 "enum": [ |
32 "json", | 50 "json", |
33 "media", | 51 "media", |
34 "proto" | 52 "proto" |
35 ], | 53 ], |
36 "enumDescriptions": [ | 54 "enumDescriptions": [ |
37 "Responses with Content-Type of application/json", | 55 "Responses with Content-Type of application/json", |
38 "Media download with context-dependent Content-Type", | 56 "Media download with context-dependent Content-Type", |
39 "Responses with Content-Type of application/x-protobuf" | 57 "Responses with Content-Type of application/x-protobuf" |
40 ], | 58 ], |
41 "location": "query", | 59 "location": "query", |
42 "type": "string" | 60 "type": "string" |
43 }, | 61 }, |
| 62 "key": { |
| 63 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 64 "location": "query", |
| 65 "type": "string" |
| 66 }, |
44 "access_token": { | 67 "access_token": { |
45 "description": "OAuth access token.", | 68 "description": "OAuth access token.", |
46 "location": "query", | 69 "location": "query", |
47 "type": "string" | 70 "type": "string" |
48 }, | 71 }, |
49 "key": { | |
50 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | |
51 "location": "query", | |
52 "type": "string" | |
53 }, | |
54 "quotaUser": { | 72 "quotaUser": { |
55 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 73 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
56 "location": "query", | 74 "location": "query", |
57 "type": "string" | 75 "type": "string" |
58 }, | 76 }, |
59 "pp": { | 77 "pp": { |
60 "default": "true", | 78 "default": "true", |
61 "description": "Pretty-print response.", | 79 "description": "Pretty-print response.", |
62 "location": "query", | 80 "location": "query", |
63 "type": "boolean" | 81 "type": "boolean" |
64 }, | 82 }, |
| 83 "oauth_token": { |
| 84 "description": "OAuth 2.0 token for the current user.", |
| 85 "location": "query", |
| 86 "type": "string" |
| 87 }, |
65 "bearer_token": { | 88 "bearer_token": { |
66 "description": "OAuth bearer token.", | 89 "description": "OAuth bearer token.", |
67 "location": "query", | 90 "location": "query", |
68 "type": "string" | 91 "type": "string" |
69 }, | 92 }, |
70 "oauth_token": { | |
71 "description": "OAuth 2.0 token for the current user.", | |
72 "location": "query", | |
73 "type": "string" | |
74 }, | |
75 "upload_protocol": { | 93 "upload_protocol": { |
76 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 94 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
77 "location": "query", | 95 "location": "query", |
78 "type": "string" | 96 "type": "string" |
79 }, | 97 }, |
80 "prettyPrint": { | 98 "prettyPrint": { |
81 "default": "true", | 99 "default": "true", |
82 "description": "Returns response with indentations and line breaks."
, | 100 "description": "Returns response with indentations and line breaks."
, |
83 "location": "query", | 101 "location": "query", |
84 "type": "boolean" | 102 "type": "boolean" |
85 }, | 103 }, |
86 "fields": { | |
87 "description": "Selector specifying which fields to include in a par
tial response.", | |
88 "location": "query", | |
89 "type": "string" | |
90 }, | |
91 "uploadType": { | 104 "uploadType": { |
92 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 105 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
93 "location": "query", | 106 "location": "query", |
94 "type": "string" | 107 "type": "string" |
95 }, | 108 }, |
96 "$.xgafv": { | 109 "fields": { |
97 "description": "V1 error format.", | 110 "description": "Selector specifying which fields to include in a par
tial response.", |
98 "enum": [ | |
99 "1", | |
100 "2" | |
101 ], | |
102 "enumDescriptions": [ | |
103 "v1 error format", | |
104 "v2 error format" | |
105 ], | |
106 "location": "query", | |
107 "type": "string" | |
108 }, | |
109 "callback": { | |
110 "description": "JSONP", | |
111 "location": "query", | 111 "location": "query", |
112 "type": "string" | 112 "type": "string" |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "projects": { | 117 "projects": { |
118 "methods": { | 118 "methods": { |
119 "deleteEvents": { | 119 "deleteEvents": { |
120 "description": "Deletes all error events of a given project.
", | 120 "description": "Deletes all error events of a given project.
", |
(...skipping 24 matching lines...) Expand all Loading... |
145 "events": { | 145 "events": { |
146 "methods": { | 146 "methods": { |
147 "list": { | 147 "list": { |
148 "description": "Lists the specified events.", | 148 "description": "Lists the specified events.", |
149 "httpMethod": "GET", | 149 "httpMethod": "GET", |
150 "id": "clouderrorreporting.projects.events.list", | 150 "id": "clouderrorreporting.projects.events.list", |
151 "parameterOrder": [ | 151 "parameterOrder": [ |
152 "projectName" | 152 "projectName" |
153 ], | 153 ], |
154 "parameters": { | 154 "parameters": { |
| 155 "groupId": { |
| 156 "description": "[Required] The group for whi
ch events shall be returned.", |
| 157 "location": "query", |
| 158 "type": "string" |
| 159 }, |
| 160 "pageToken": { |
| 161 "description": "[Optional] A `next_page_toke
n` provided by a previous response.", |
| 162 "location": "query", |
| 163 "type": "string" |
| 164 }, |
| 165 "serviceFilter.service": { |
| 166 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.service).", |
| 167 "location": "query", |
| 168 "type": "string" |
| 169 }, |
155 "pageSize": { | 170 "pageSize": { |
156 "description": "[Optional] The maximum numbe
r of results to return per response.", | 171 "description": "[Optional] The maximum numbe
r of results to return per response.", |
157 "format": "int32", | 172 "format": "int32", |
158 "location": "query", | 173 "location": "query", |
159 "type": "integer" | 174 "type": "integer" |
160 }, | 175 }, |
161 "serviceFilter.version": { | 176 "serviceFilter.version": { |
162 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.version).", | 177 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.version).", |
163 "location": "query", | 178 "location": "query", |
164 "type": "string" | 179 "type": "string" |
(...skipping 15 matching lines...) Expand all Loading... |
180 ], | 195 ], |
181 "location": "query", | 196 "location": "query", |
182 "type": "string" | 197 "type": "string" |
183 }, | 198 }, |
184 "projectName": { | 199 "projectName": { |
185 "description": "[Required] The resource name
of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google
Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\n
Example: `projects/my-project-123`.", | 200 "description": "[Required] The resource name
of the Google Cloud Platform project. Written\nas `projects/` plus the\n[Google
Cloud Platform project\nID](https://support.google.com/cloud/answer/6158840).\n
Example: `projects/my-project-123`.", |
186 "location": "path", | 201 "location": "path", |
187 "pattern": "^projects/[^/]+$", | 202 "pattern": "^projects/[^/]+$", |
188 "required": true, | 203 "required": true, |
189 "type": "string" | 204 "type": "string" |
190 }, | |
191 "groupId": { | |
192 "description": "[Required] The group for whi
ch events shall be returned.", | |
193 "location": "query", | |
194 "type": "string" | |
195 }, | |
196 "serviceFilter.service": { | |
197 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.service).", | |
198 "location": "query", | |
199 "type": "string" | |
200 }, | |
201 "pageToken": { | |
202 "description": "[Optional] A `next_page_toke
n` provided by a previous response.", | |
203 "location": "query", | |
204 "type": "string" | |
205 } | 205 } |
206 }, | 206 }, |
207 "path": "v1beta1/{+projectName}/events", | 207 "path": "v1beta1/{+projectName}/events", |
208 "response": { | 208 "response": { |
209 "$ref": "ListEventsResponse" | 209 "$ref": "ListEventsResponse" |
210 }, | 210 }, |
211 "scopes": [ | 211 "scopes": [ |
212 "https://www.googleapis.com/auth/cloud-platform" | 212 "https://www.googleapis.com/auth/cloud-platform" |
213 ] | 213 ] |
214 }, | 214 }, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.service).", | 284 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.service).", |
285 "location": "query", | 285 "location": "query", |
286 "type": "string" | 286 "type": "string" |
287 }, | 287 }, |
288 "pageSize": { | 288 "pageSize": { |
289 "description": "[Optional] The maximum numbe
r of results to return per response.\nDefault is 20.", | 289 "description": "[Optional] The maximum numbe
r of results to return per response.\nDefault is 20.", |
290 "format": "int32", | 290 "format": "int32", |
291 "location": "query", | 291 "location": "query", |
292 "type": "integer" | 292 "type": "integer" |
293 }, | 293 }, |
294 "serviceFilter.version": { | |
295 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.version).", | |
296 "location": "query", | |
297 "type": "string" | |
298 }, | |
299 "order": { | 294 "order": { |
300 "description": "[Optional] The sort order in
which the results are returned.\nDefault is `COUNT_DESC`.", | 295 "description": "[Optional] The sort order in
which the results are returned.\nDefault is `COUNT_DESC`.", |
301 "enum": [ | 296 "enum": [ |
302 "GROUP_ORDER_UNSPECIFIED", | 297 "GROUP_ORDER_UNSPECIFIED", |
303 "COUNT_DESC", | 298 "COUNT_DESC", |
304 "LAST_SEEN_DESC", | 299 "LAST_SEEN_DESC", |
305 "CREATED_DESC", | 300 "CREATED_DESC", |
306 "AFFECTED_USERS_DESC" | 301 "AFFECTED_USERS_DESC" |
307 ], | 302 ], |
308 "location": "query", | 303 "location": "query", |
309 "type": "string" | 304 "type": "string" |
310 }, | 305 }, |
311 "alignmentTime": { | 306 "serviceFilter.version": { |
312 "description": "[Optional] Time where the ti
med counts shall be aligned if rounded\nalignment is chosen. Default is 00:00 UT
C.", | 307 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1be
ta1/ServiceContext#FIELDS.version).", |
313 "format": "google-datetime", | |
314 "location": "query", | 308 "location": "query", |
315 "type": "string" | 309 "type": "string" |
316 }, | 310 }, |
317 "serviceFilter.resourceType": { | 311 "serviceFilter.resourceType": { |
318 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.resource_type`](/error-reporting/reference/res
t/v1beta1/ServiceContext#FIELDS.resource_type).", | 312 "description": "[Optional] The exact value t
o match against\n[`ServiceContext.resource_type`](/error-reporting/reference/res
t/v1beta1/ServiceContext#FIELDS.resource_type).", |
319 "location": "query", | 313 "location": "query", |
320 "type": "string" | 314 "type": "string" |
321 }, | 315 }, |
| 316 "alignmentTime": { |
| 317 "description": "[Optional] Time where the ti
med counts shall be aligned if rounded\nalignment is chosen. Default is 00:00 UT
C.", |
| 318 "format": "google-datetime", |
| 319 "location": "query", |
| 320 "type": "string" |
| 321 }, |
322 "projectName": { | 322 "projectName": { |
323 "description": "[Required] The resource name
of the Google Cloud Platform project. Written\nas <code>projects/</code> plus t
he\n<a href=\"https://support.google.com/cloud/answer/6158840\">Google Cloud\nPl
atform project ID</a>.\n\nExample: <code>projects/my-project-123</code>.", | 323 "description": "[Required] The resource name
of the Google Cloud Platform project. Written\nas <code>projects/</code> plus t
he\n<a href=\"https://support.google.com/cloud/answer/6158840\">Google Cloud\nPl
atform project ID</a>.\n\nExample: <code>projects/my-project-123</code>.", |
324 "location": "path", | 324 "location": "path", |
325 "pattern": "^projects/[^/]+$", | 325 "pattern": "^projects/[^/]+$", |
326 "required": true, | 326 "required": true, |
327 "type": "string" | 327 "type": "string" |
328 }, | 328 }, |
329 "timedCountDuration": { | 329 "timedCountDuration": { |
330 "description": "[Optional] The preferred dur
ation for a single returned `TimedCount`.\nIf not set, no timed counts are retur
ned.", | 330 "description": "[Optional] The preferred dur
ation for a single returned `TimedCount`.\nIf not set, no timed counts are retur
ned.", |
331 "format": "google-duration", | 331 "format": "google-duration", |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 }, | 399 }, |
400 "scopes": [ | 400 "scopes": [ |
401 "https://www.googleapis.com/auth/cloud-platform" | 401 "https://www.googleapis.com/auth/cloud-platform" |
402 ] | 402 ] |
403 } | 403 } |
404 } | 404 } |
405 } | 405 } |
406 } | 406 } |
407 } | 407 } |
408 }, | 408 }, |
409 "revision": "20170721", | 409 "revision": "20170811", |
410 "rootUrl": "https://clouderrorreporting.googleapis.com/", | 410 "rootUrl": "https://clouderrorreporting.googleapis.com/", |
411 "schemas": { | 411 "schemas": { |
| 412 "ErrorEvent": { |
| 413 "description": "An error event which is returned by the Error Report
ing system.", |
| 414 "id": "ErrorEvent", |
| 415 "properties": { |
| 416 "eventTime": { |
| 417 "description": "Time when the event occurred as provided in
the error report.\nIf the report did not contain a timestamp, the time the error
was received\nby the Error Reporting system is used.", |
| 418 "format": "google-datetime", |
| 419 "type": "string" |
| 420 }, |
| 421 "context": { |
| 422 "$ref": "ErrorContext", |
| 423 "description": "Data about the context in which the error oc
curred." |
| 424 }, |
| 425 "message": { |
| 426 "description": "The stack trace that was reported or logged
by the service.", |
| 427 "type": "string" |
| 428 }, |
| 429 "serviceContext": { |
| 430 "$ref": "ServiceContext", |
| 431 "description": "The `ServiceContext` for which this error wa
s reported." |
| 432 } |
| 433 }, |
| 434 "type": "object" |
| 435 }, |
| 436 "ReportedErrorEvent": { |
| 437 "description": "An error event which is reported to the Error Report
ing system.", |
| 438 "id": "ReportedErrorEvent", |
| 439 "properties": { |
| 440 "eventTime": { |
| 441 "description": "[Optional] Time when the event occurred.\nIf
not provided, the time when the event was received by the\nError Reporting syst
em will be used.", |
| 442 "format": "google-datetime", |
| 443 "type": "string" |
| 444 }, |
| 445 "context": { |
| 446 "$ref": "ErrorContext", |
| 447 "description": "[Optional] A description of the context in w
hich the error occurred." |
| 448 }, |
| 449 "message": { |
| 450 "description": "[Required] The error message.\nIf no `contex
t.reportLocation` is provided, the message must contain a\nheader (typically con
sisting of the exception type name and an error\nmessage) and an exception stack
trace in one of the supported programming\nlanguages and formats.\nSupported la
nguages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.\nSupported stack tr
ace formats are:\n\n* **Java**: Must be the return value of [`Throwable.printSta
ckTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#p
rintStackTrace%28%29).\n* **Python**: Must be the return value of [`traceback.fo
rmat_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_e
xc).\n* **JavaScript**: Must be the value of [`error.stack`](https://github.com/
v8/v8/wiki/Stack-Trace-API)\nas returned by V8.\n* **Ruby**: Must contain frames
returned by [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.h
tml#method-i-backtrace).\n* **C#**: Must be the return value of [`Exception.ToSt
ring()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx
).\n* **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`\na
nd contain the result of [`(string)$exception`](http://php.net/manual/en/excepti
on.tostring.php).\n* **Go**: Must be the return value of [`runtime.Stack()`](htt
ps://golang.org/pkg/runtime/debug/#Stack).", |
| 451 "type": "string" |
| 452 }, |
| 453 "serviceContext": { |
| 454 "$ref": "ServiceContext", |
| 455 "description": "[Required] The service context in which this
error has occurred." |
| 456 } |
| 457 }, |
| 458 "type": "object" |
| 459 }, |
| 460 "ErrorContext": { |
| 461 "description": "A description of the context in which an error occur
red.\nThis data should be provided by the application when reporting an error,\n
unless the\nerror report has been generated automatically from Google App Engine
logs.", |
| 462 "id": "ErrorContext", |
| 463 "properties": { |
| 464 "user": { |
| 465 "description": "The user who caused or was affected by the c
rash.\nThis can be a user ID, an email address, or an arbitrary token that\nuniq
uely identifies the user.\nWhen sending an error report, leave this field empty
if the user was not\nlogged in. In this case the\nError Reporting system will us
e other data, such as remote IP address, to\ndistinguish affected users. See `af
fected_users_count` in\n`ErrorGroupStats`.", |
| 466 "type": "string" |
| 467 }, |
| 468 "sourceReferences": { |
| 469 "description": "Source code that was used to build the execu
table which has\ncaused the given error message.", |
| 470 "items": { |
| 471 "$ref": "SourceReference" |
| 472 }, |
| 473 "type": "array" |
| 474 }, |
| 475 "reportLocation": { |
| 476 "$ref": "SourceLocation", |
| 477 "description": "The location in the source code where the de
cision was made to\nreport the error, usually the place where it was logged.\nFo
r a logged exception this would be the source line where the\nexception is logge
d, usually close to the place where it was\ncaught." |
| 478 }, |
| 479 "httpRequest": { |
| 480 "$ref": "HttpRequestContext", |
| 481 "description": "The HTTP request which was processed when th
e error was\ntriggered." |
| 482 } |
| 483 }, |
| 484 "type": "object" |
| 485 }, |
| 486 "TrackingIssue": { |
| 487 "description": "Information related to tracking the progress on reso
lving the error.", |
| 488 "id": "TrackingIssue", |
| 489 "properties": { |
| 490 "url": { |
| 491 "description": "A URL pointing to a related entry in an issu
e tracking system.\nExample: https://github.com/user/project/issues/4", |
| 492 "type": "string" |
| 493 } |
| 494 }, |
| 495 "type": "object" |
| 496 }, |
412 "ErrorGroupStats": { | 497 "ErrorGroupStats": { |
413 "description": "Data extracted for a specific group based on certain
filter criteria,\nsuch as a given time period and/or service filter.", | 498 "description": "Data extracted for a specific group based on certain
filter criteria,\nsuch as a given time period and/or service filter.", |
414 "id": "ErrorGroupStats", | 499 "id": "ErrorGroupStats", |
415 "properties": { | 500 "properties": { |
416 "representative": { | |
417 "$ref": "ErrorEvent", | |
418 "description": "An arbitrary event that is chosen as represe
ntative for the whole group.\nThe representative event is intended to be used as
a quick preview for\nthe whole group. Events in the group are usually sufficien
tly similar\nto each other such that showing an arbitrary representative provide
s\ninsight into the characteristics of the group as a whole." | |
419 }, | |
420 "timedCounts": { | |
421 "description": "Approximate number of occurrences over time.
\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requ
ested time interval\n- Non-overlapping, and\n- Ordered by ascending time.", | |
422 "items": { | |
423 "$ref": "TimedCount" | |
424 }, | |
425 "type": "array" | |
426 }, | |
427 "group": { | 501 "group": { |
428 "$ref": "ErrorGroup", | 502 "$ref": "ErrorGroup", |
429 "description": "Group data that is independent of the filter
criteria." | 503 "description": "Group data that is independent of the filter
criteria." |
430 }, | 504 }, |
431 "firstSeenTime": { | 505 "firstSeenTime": { |
432 "description": "Approximate first occurrence that was ever s
een for this group\nand which matches the given filter criteria, ignoring the\nt
ime_range that was specified in the request.", | 506 "description": "Approximate first occurrence that was ever s
een for this group\nand which matches the given filter criteria, ignoring the\nt
ime_range that was specified in the request.", |
433 "format": "google-datetime", | 507 "format": "google-datetime", |
434 "type": "string" | 508 "type": "string" |
435 }, | 509 }, |
436 "count": { | 510 "count": { |
437 "description": "Approximate total number of events in the gi
ven group that match\nthe filter criteria.", | 511 "description": "Approximate total number of events in the gi
ven group that match\nthe filter criteria.", |
438 "format": "int64", | 512 "format": "int64", |
439 "type": "string" | 513 "type": "string" |
440 }, | 514 }, |
| 515 "affectedUsersCount": { |
| 516 "description": "Approximate number of affected users in the
given group that\nmatch the filter criteria.\nUsers are distinguished by data in
the `ErrorContext` of the\nindividual error events, such as their login name or
their remote\nIP address in case of HTTP requests.\nThe number of affected user
s can be zero even if the number of\nerrors is non-zero if no data was provided
from which the\naffected user could be deduced.\nUsers are counted based on data
in the request\ncontext that was provided in the error report. If more users ar
e\nimplicitly affected, such as due to a crash of the whole service,\nthis is no
t reflected here.", |
| 517 "format": "int64", |
| 518 "type": "string" |
| 519 }, |
441 "lastSeenTime": { | 520 "lastSeenTime": { |
442 "description": "Approximate last occurrence that was ever se
en for this group and\nwhich matches the given filter criteria, ignoring the tim
e_range\nthat was specified in the request.", | 521 "description": "Approximate last occurrence that was ever se
en for this group and\nwhich matches the given filter criteria, ignoring the tim
e_range\nthat was specified in the request.", |
443 "format": "google-datetime", | 522 "format": "google-datetime", |
444 "type": "string" | 523 "type": "string" |
445 }, | 524 }, |
446 "affectedUsersCount": { | |
447 "description": "Approximate number of affected users in the
given group that\nmatch the filter criteria.\nUsers are distinguished by data in
the `ErrorContext` of the\nindividual error events, such as their login name or
their remote\nIP address in case of HTTP requests.\nThe number of affected user
s can be zero even if the number of\nerrors is non-zero if no data was provided
from which the\naffected user could be deduced.\nUsers are counted based on data
in the request\ncontext that was provided in the error report. If more users ar
e\nimplicitly affected, such as due to a crash of the whole service,\nthis is no
t reflected here.", | |
448 "format": "int64", | |
449 "type": "string" | |
450 }, | |
451 "affectedServices": { | 525 "affectedServices": { |
452 "description": "Service contexts with a non-zero error count
for the given filter\ncriteria. This list can be truncated if multiple services
are affected.\nRefer to `num_affected_services` for the total count.", | 526 "description": "Service contexts with a non-zero error count
for the given filter\ncriteria. This list can be truncated if multiple services
are affected.\nRefer to `num_affected_services` for the total count.", |
453 "items": { | 527 "items": { |
454 "$ref": "ServiceContext" | 528 "$ref": "ServiceContext" |
455 }, | 529 }, |
456 "type": "array" | 530 "type": "array" |
457 }, | 531 }, |
458 "numAffectedServices": { | 532 "numAffectedServices": { |
459 "description": "The total number of services with a non-zero
error count for the given\nfilter criteria.", | 533 "description": "The total number of services with a non-zero
error count for the given\nfilter criteria.", |
460 "format": "int32", | 534 "format": "int32", |
461 "type": "integer" | 535 "type": "integer" |
| 536 }, |
| 537 "representative": { |
| 538 "$ref": "ErrorEvent", |
| 539 "description": "An arbitrary event that is chosen as represe
ntative for the whole group.\nThe representative event is intended to be used as
a quick preview for\nthe whole group. Events in the group are usually sufficien
tly similar\nto each other such that showing an arbitrary representative provide
s\ninsight into the characteristics of the group as a whole." |
| 540 }, |
| 541 "timedCounts": { |
| 542 "description": "Approximate number of occurrences over time.
\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requ
ested time interval\n- Non-overlapping, and\n- Ordered by ascending time.", |
| 543 "items": { |
| 544 "$ref": "TimedCount" |
| 545 }, |
| 546 "type": "array" |
462 } | 547 } |
463 }, | 548 }, |
464 "type": "object" | 549 "type": "object" |
465 }, | 550 }, |
466 "ListEventsResponse": { | 551 "ListEventsResponse": { |
467 "description": "Contains a set of requested error events.", | 552 "description": "Contains a set of requested error events.", |
468 "id": "ListEventsResponse", | 553 "id": "ListEventsResponse", |
469 "properties": { | 554 "properties": { |
470 "nextPageToken": { | |
471 "description": "If non-empty, more results are available.\nP
ass this token, along with the same query parameters as the first\nrequest, to v
iew the next page of results.", | |
472 "type": "string" | |
473 }, | |
474 "timeRangeBegin": { | 555 "timeRangeBegin": { |
475 "description": "The timestamp specifies the start time to wh
ich the request was restricted.", | 556 "description": "The timestamp specifies the start time to wh
ich the request was restricted.", |
476 "format": "google-datetime", | 557 "format": "google-datetime", |
477 "type": "string" | 558 "type": "string" |
478 }, | 559 }, |
479 "errorEvents": { | 560 "errorEvents": { |
480 "description": "The error events which match the given reque
st.", | 561 "description": "The error events which match the given reque
st.", |
481 "items": { | 562 "items": { |
482 "$ref": "ErrorEvent" | 563 "$ref": "ErrorEvent" |
483 }, | 564 }, |
484 "type": "array" | 565 "type": "array" |
| 566 }, |
| 567 "nextPageToken": { |
| 568 "description": "If non-empty, more results are available.\nP
ass this token, along with the same query parameters as the first\nrequest, to v
iew the next page of results.", |
| 569 "type": "string" |
485 } | 570 } |
486 }, | 571 }, |
487 "type": "object" | 572 "type": "object" |
488 }, | 573 }, |
489 "TimedCount": { | 574 "TimedCount": { |
490 "description": "The number of errors in a given time period.\nAll nu
mbers are approximate since the error events are sampled\nbefore counting them."
, | 575 "description": "The number of errors in a given time period.\nAll nu
mbers are approximate since the error events are sampled\nbefore counting them."
, |
491 "id": "TimedCount", | 576 "id": "TimedCount", |
492 "properties": { | 577 "properties": { |
493 "endTime": { | |
494 "description": "End of the time period to which `count` refe
rs (excluded).", | |
495 "format": "google-datetime", | |
496 "type": "string" | |
497 }, | |
498 "startTime": { | 578 "startTime": { |
499 "description": "Start of the time period to which `count` re
fers (included).", | 579 "description": "Start of the time period to which `count` re
fers (included).", |
500 "format": "google-datetime", | 580 "format": "google-datetime", |
501 "type": "string" | 581 "type": "string" |
502 }, | 582 }, |
503 "count": { | 583 "count": { |
504 "description": "Approximate number of occurrences in the giv
en time period.", | 584 "description": "Approximate number of occurrences in the giv
en time period.", |
505 "format": "int64", | 585 "format": "int64", |
506 "type": "string" | 586 "type": "string" |
| 587 }, |
| 588 "endTime": { |
| 589 "description": "End of the time period to which `count` refe
rs (excluded).", |
| 590 "format": "google-datetime", |
| 591 "type": "string" |
507 } | 592 } |
508 }, | 593 }, |
509 "type": "object" | 594 "type": "object" |
510 }, | 595 }, |
511 "ErrorGroup": { | 596 "ErrorGroup": { |
512 "description": "Description of a group of similar error events.", | 597 "description": "Description of a group of similar error events.", |
513 "id": "ErrorGroup", | 598 "id": "ErrorGroup", |
514 "properties": { | 599 "properties": { |
515 "trackingIssues": { | 600 "trackingIssues": { |
516 "description": "Associated tracking issues.", | 601 "description": "Associated tracking issues.", |
(...skipping 10 matching lines...) Expand all Loading... |
527 "description": "The group resource name.\nExample: <code>pro
jects/my-project-123/groups/my-groupid</code>", | 612 "description": "The group resource name.\nExample: <code>pro
jects/my-project-123/groups/my-groupid</code>", |
528 "type": "string" | 613 "type": "string" |
529 } | 614 } |
530 }, | 615 }, |
531 "type": "object" | 616 "type": "object" |
532 }, | 617 }, |
533 "SourceLocation": { | 618 "SourceLocation": { |
534 "description": "Indicates a location in the source code of the servi
ce for which errors are\nreported. `functionName` must be provided by the applic
ation when reporting\nan error, unless the error report contains a `message` wit
h a supported\nexception stack trace. All fields are optional for the later case
.", | 619 "description": "Indicates a location in the source code of the servi
ce for which errors are\nreported. `functionName` must be provided by the applic
ation when reporting\nan error, unless the error report contains a `message` wit
h a supported\nexception stack trace. All fields are optional for the later case
.", |
535 "id": "SourceLocation", | 620 "id": "SourceLocation", |
536 "properties": { | 621 "properties": { |
537 "functionName": { | |
538 "description": "Human-readable name of a function or method.
\nThe value can include optional context like the class or package name.\nFor ex
ample, `my.package.MyClass.method` in case of Java.", | |
539 "type": "string" | |
540 }, | |
541 "filePath": { | 622 "filePath": { |
542 "description": "The source code filename, which can include
a truncated relative\npath, or a full path from a production machine.", | 623 "description": "The source code filename, which can include
a truncated relative\npath, or a full path from a production machine.", |
543 "type": "string" | 624 "type": "string" |
544 }, | 625 }, |
545 "lineNumber": { | 626 "lineNumber": { |
546 "description": "1-based. 0 indicates that the line number is
unknown.", | 627 "description": "1-based. 0 indicates that the line number is
unknown.", |
547 "format": "int32", | 628 "format": "int32", |
548 "type": "integer" | 629 "type": "integer" |
| 630 }, |
| 631 "functionName": { |
| 632 "description": "Human-readable name of a function or method.
\nThe value can include optional context like the class or package name.\nFor ex
ample, `my.package.MyClass.method` in case of Java.", |
| 633 "type": "string" |
549 } | 634 } |
550 }, | 635 }, |
551 "type": "object" | 636 "type": "object" |
552 }, | 637 }, |
553 "ServiceContext": { | 638 "ServiceContext": { |
554 "description": "Describes a running service that sends errors.\nIts
version changes over time and multiple versions can run in parallel.", | 639 "description": "Describes a running service that sends errors.\nIts
version changes over time and multiple versions can run in parallel.", |
555 "id": "ServiceContext", | 640 "id": "ServiceContext", |
556 "properties": { | 641 "properties": { |
| 642 "resourceType": { |
| 643 "description": "Type of the MonitoredResource. List of possi
ble values:\nhttps://cloud.google.com/monitoring/api/resources\n\nValue is set a
utomatically for incoming errors and must not be set when\nreporting errors.", |
| 644 "type": "string" |
| 645 }, |
557 "version": { | 646 "version": { |
558 "description": "Represents the source code version that the
developer provided,\nwhich could represent a version label or a Git SHA-1 hash,
for example.\nFor App Engine standard environment, the version is set to the ver
sion of\nthe app.", | 647 "description": "Represents the source code version that the
developer provided,\nwhich could represent a version label or a Git SHA-1 hash,
for example.\nFor App Engine standard environment, the version is set to the ver
sion of\nthe app.", |
559 "type": "string" | 648 "type": "string" |
560 }, | 649 }, |
561 "service": { | 650 "service": { |
562 "description": "An identifier of the service, such as the na
me of the\nexecutable, job, or Google App Engine service name. This field is exp
ected\nto have a low number of values that are relatively stable over time, as\n
opposed to `version`, which can be changed whenever new code is deployed.\n\nCon
tains the service name for error reports extracted from Google\nApp Engine logs
or `default` if the App Engine default service is used.", | 651 "description": "An identifier of the service, such as the na
me of the\nexecutable, job, or Google App Engine service name. This field is exp
ected\nto have a low number of values that are relatively stable over time, as\n
opposed to `version`, which can be changed whenever new code is deployed.\n\nCon
tains the service name for error reports extracted from Google\nApp Engine logs
or `default` if the App Engine default service is used.", |
563 "type": "string" | 652 "type": "string" |
564 }, | |
565 "resourceType": { | |
566 "description": "Type of the MonitoredResource. List of possi
ble values:\nhttps://cloud.google.com/monitoring/api/resources\n\nValue is set a
utomatically for incoming errors and must not be set when\nreporting errors.", | |
567 "type": "string" | |
568 } | 653 } |
569 }, | 654 }, |
570 "type": "object" | 655 "type": "object" |
571 }, | 656 }, |
572 "ReportErrorEventResponse": { | 657 "ReportErrorEventResponse": { |
573 "description": "Response for reporting an individual error event.\nD
ata may be added to this message in the future.", | 658 "description": "Response for reporting an individual error event.\nD
ata may be added to this message in the future.", |
574 "id": "ReportErrorEventResponse", | 659 "id": "ReportErrorEventResponse", |
575 "properties": {}, | 660 "properties": {}, |
576 "type": "object" | 661 "type": "object" |
577 }, | 662 }, |
(...skipping 26 matching lines...) Expand all Loading... |
604 "description": "The type of HTTP request, such as `GET`, `PO
ST`, etc.", | 689 "description": "The type of HTTP request, such as `GET`, `PO
ST`, etc.", |
605 "type": "string" | 690 "type": "string" |
606 } | 691 } |
607 }, | 692 }, |
608 "type": "object" | 693 "type": "object" |
609 }, | 694 }, |
610 "ListGroupStatsResponse": { | 695 "ListGroupStatsResponse": { |
611 "description": "Contains a set of requested error group stats.", | 696 "description": "Contains a set of requested error group stats.", |
612 "id": "ListGroupStatsResponse", | 697 "id": "ListGroupStatsResponse", |
613 "properties": { | 698 "properties": { |
614 "nextPageToken": { | |
615 "description": "If non-empty, more results are available.\nP
ass this token, along with the same query parameters as the first\nrequest, to v
iew the next page of results.", | |
616 "type": "string" | |
617 }, | |
618 "timeRangeBegin": { | 699 "timeRangeBegin": { |
619 "description": "The timestamp specifies the start time to wh
ich the request was restricted.\nThe start time is set based on the requested ti
me range. It may be adjusted\nto a later time if a project has exceeded the stor
age quota and older data\nhas been deleted.", | 700 "description": "The timestamp specifies the start time to wh
ich the request was restricted.\nThe start time is set based on the requested ti
me range. It may be adjusted\nto a later time if a project has exceeded the stor
age quota and older data\nhas been deleted.", |
620 "format": "google-datetime", | 701 "format": "google-datetime", |
621 "type": "string" | 702 "type": "string" |
622 }, | 703 }, |
623 "errorGroupStats": { | 704 "errorGroupStats": { |
624 "description": "The error group stats which match the given
request.", | 705 "description": "The error group stats which match the given
request.", |
625 "items": { | 706 "items": { |
626 "$ref": "ErrorGroupStats" | 707 "$ref": "ErrorGroupStats" |
627 }, | 708 }, |
628 "type": "array" | 709 "type": "array" |
629 } | |
630 }, | |
631 "type": "object" | |
632 }, | |
633 "SourceReference": { | |
634 "description": "A reference to a particular snapshot of the source t
ree used to build and\ndeploy an application.", | |
635 "id": "SourceReference", | |
636 "properties": { | |
637 "revisionId": { | |
638 "description": "The canonical and persistent identifier of t
he deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b
\"", | |
639 "type": "string" | |
640 }, | 710 }, |
641 "repository": { | 711 "nextPageToken": { |
642 "description": "Optional. A URI string identifying the repos
itory.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", | 712 "description": "If non-empty, more results are available.\nP
ass this token, along with the same query parameters as the first\nrequest, to v
iew the next page of results.", |
643 "type": "string" | 713 "type": "string" |
644 } | 714 } |
645 }, | 715 }, |
646 "type": "object" | 716 "type": "object" |
647 }, | 717 }, |
648 "DeleteEventsResponse": { | 718 "DeleteEventsResponse": { |
649 "description": "Response message for deleting error events.", | 719 "description": "Response message for deleting error events.", |
650 "id": "DeleteEventsResponse", | 720 "id": "DeleteEventsResponse", |
651 "properties": {}, | 721 "properties": {}, |
652 "type": "object" | 722 "type": "object" |
653 }, | 723 }, |
654 "ErrorEvent": { | 724 "SourceReference": { |
655 "description": "An error event which is returned by the Error Report
ing system.", | 725 "description": "A reference to a particular snapshot of the source t
ree used to build and\ndeploy an application.", |
656 "id": "ErrorEvent", | 726 "id": "SourceReference", |
657 "properties": { | 727 "properties": { |
658 "serviceContext": { | 728 "revisionId": { |
659 "$ref": "ServiceContext", | 729 "description": "The canonical and persistent identifier of t
he deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b
\"", |
660 "description": "The `ServiceContext` for which this error wa
s reported." | |
661 }, | |
662 "eventTime": { | |
663 "description": "Time when the event occurred as provided in
the error report.\nIf the report did not contain a timestamp, the time the error
was received\nby the Error Reporting system is used.", | |
664 "format": "google-datetime", | |
665 "type": "string" | 730 "type": "string" |
666 }, | 731 }, |
667 "context": { | 732 "repository": { |
668 "$ref": "ErrorContext", | 733 "description": "Optional. A URI string identifying the repos
itory.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", |
669 "description": "Data about the context in which the error oc
curred." | |
670 }, | |
671 "message": { | |
672 "description": "The stack trace that was reported or logged
by the service.", | |
673 "type": "string" | 734 "type": "string" |
674 } | 735 } |
675 }, | 736 }, |
676 "type": "object" | |
677 }, | |
678 "ReportedErrorEvent": { | |
679 "description": "An error event which is reported to the Error Report
ing system.", | |
680 "id": "ReportedErrorEvent", | |
681 "properties": { | |
682 "serviceContext": { | |
683 "$ref": "ServiceContext", | |
684 "description": "[Required] The service context in which this
error has occurred." | |
685 }, | |
686 "eventTime": { | |
687 "description": "[Optional] Time when the event occurred.\nIf
not provided, the time when the event was received by the\nError Reporting syst
em will be used.", | |
688 "format": "google-datetime", | |
689 "type": "string" | |
690 }, | |
691 "context": { | |
692 "$ref": "ErrorContext", | |
693 "description": "[Optional] A description of the context in w
hich the error occurred." | |
694 }, | |
695 "message": { | |
696 "description": "[Required] The error message.\nIf no `contex
t.reportLocation` is provided, the message must contain a\nheader (typically con
sisting of the exception type name and an error\nmessage) and an exception stack
trace in one of the supported programming\nlanguages and formats.\nSupported la
nguages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.\nSupported stack tr
ace formats are:\n\n* **Java**: Must be the return value of [`Throwable.printSta
ckTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#p
rintStackTrace%28%29).\n* **Python**: Must be the return value of [`traceback.fo
rmat_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_e
xc).\n* **JavaScript**: Must be the value of [`error.stack`](https://github.com/
v8/v8/wiki/Stack-Trace-API)\nas returned by V8.\n* **Ruby**: Must contain frames
returned by [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.h
tml#method-i-backtrace).\n* **C#**: Must be the return value of [`Exception.ToSt
ring()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx
).\n* **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`\na
nd contain the result of [`(string)$exception`](http://php.net/manual/en/excepti
on.tostring.php).\n* **Go**: Must be the return value of [`runtime.Stack()`](htt
ps://golang.org/pkg/runtime/debug/#Stack).", | |
697 "type": "string" | |
698 } | |
699 }, | |
700 "type": "object" | |
701 }, | |
702 "ErrorContext": { | |
703 "description": "A description of the context in which an error occur
red.\nThis data should be provided by the application when reporting an error,\n
unless the\nerror report has been generated automatically from Google App Engine
logs.", | |
704 "id": "ErrorContext", | |
705 "properties": { | |
706 "httpRequest": { | |
707 "$ref": "HttpRequestContext", | |
708 "description": "The HTTP request which was processed when th
e error was\ntriggered." | |
709 }, | |
710 "user": { | |
711 "description": "The user who caused or was affected by the c
rash.\nThis can be a user ID, an email address, or an arbitrary token that\nuniq
uely identifies the user.\nWhen sending an error report, leave this field empty
if the user was not\nlogged in. In this case the\nError Reporting system will us
e other data, such as remote IP address, to\ndistinguish affected users. See `af
fected_users_count` in\n`ErrorGroupStats`.", | |
712 "type": "string" | |
713 }, | |
714 "sourceReferences": { | |
715 "description": "Source code that was used to build the execu
table which has\ncaused the given error message.", | |
716 "items": { | |
717 "$ref": "SourceReference" | |
718 }, | |
719 "type": "array" | |
720 }, | |
721 "reportLocation": { | |
722 "$ref": "SourceLocation", | |
723 "description": "The location in the source code where the de
cision was made to\nreport the error, usually the place where it was logged.\nFo
r a logged exception this would be the source line where the\nexception is logge
d, usually close to the place where it was\ncaught." | |
724 } | |
725 }, | |
726 "type": "object" | |
727 }, | |
728 "TrackingIssue": { | |
729 "description": "Information related to tracking the progress on reso
lving the error.", | |
730 "id": "TrackingIssue", | |
731 "properties": { | |
732 "url": { | |
733 "description": "A URL pointing to a related entry in an issu
e tracking system.\nExample: https://github.com/user/project/issues/4", | |
734 "type": "string" | |
735 } | |
736 }, | |
737 "type": "object" | 737 "type": "object" |
738 } | 738 } |
739 }, | 739 }, |
740 "servicePath": "", | 740 "servicePath": "", |
741 "title": "Stackdriver Error Reporting API", | 741 "title": "Stackdriver Error Reporting API", |
742 "version": "v1beta1" | 742 "version": "v1beta1" |
743 } | 743 } |
OLD | NEW |