on develop help sign in
Adding StackDriver Error Reporting service definition
commita1fd3c7a0afdb4a972e5bae7969dae6e3009b73d authorBrendan Hay <brendan.g.hay@gmail.com> dateMon 9 May 2016, 11:30 (10 years ago) parent3e53509
1 file changed+646
gen/model/clouderrorreporting/v1beta1/clouderrorreporting-api.json+646
gen/model/clouderrorreporting/v1beta1/clouderrorreporting-api.jsonnew file+646
@@ -0,0 +1,646 @@
1+{
2+ "id": "clouderrorreporting:v1beta1",
3+ "auth": {
4+ "oauth2": {
5+ "scopes": {
6+ "https://www.googleapis.com/auth/cloud-platform": {
7+ "description": "View and manage your data across Google Cloud Platform services"
8+ }
9+ }
10+ }
11+ },
12+ "description": "Google Stackdriver Error Reporting groups and counts similar errors from cloud services. The Google Stackdriver Error Reporting API provides read access to error groups and their associated errors.\n",
13+ "protocol": "rest",
14+ "title": "Google Cloud Error Reporting API",
15+ "resources": {
16+ "projects": {
17+ "resources": {
18+ "events": {
19+ "methods": {
20+ "list": {
21+ "id": "clouderrorreporting.projects.events.list",
22+ "response": {
23+ "$ref": "ListEventsResponse"
24+ },
25+ "parameterOrder": [
26+ "projectName"
27+ ],
28+ "description": "Lists the specified events.",
29+ "httpMethod": "GET",
30+ "flatPath": "v1beta1/projects/{projectsId}/events",
31+ "parameters": {
32+ "timeRange.period": {
33+ "enum": [
34+ "PERIOD_UNSPECIFIED",
35+ "PERIOD_1_HOUR",
36+ "PERIOD_6_HOURS",
37+ "PERIOD_1_DAY",
38+ "PERIOD_1_WEEK",
39+ "PERIOD_30_DAYS"
40+ ],
41+ "description": "Restricts the query to the specified time range.",
42+ "type": "string",
43+ "location": "query"
44+ },
45+ "projectName": {
46+ "required": true,
47+ "description": "The resource name of the Google Cloud Platform project. Required.\nExample: projects/my-project",
48+ "pattern": "^projects/[^/]*$",
49+ "type": "string",
50+ "location": "path"
51+ },
52+ "serviceFilter.service": {
53+ "description": "The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
54+ "type": "string",
55+ "location": "query"
56+ },
57+ "groupId": {
58+ "description": "The group for which events shall be returned. Required.",
59+ "type": "string",
60+ "location": "query"
61+ },
62+ "pageSize": {
63+ "description": "The maximum number of results to return per response.",
64+ "type": "integer",
65+ "location": "query",
66+ "format": "int32"
67+ },
68+ "serviceFilter.version": {
69+ "description": "The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
70+ "type": "string",
71+ "location": "query"
72+ },
73+ "pageToken": {
74+ "description": "A `next_page_token` provided by a previous response.",
75+ "type": "string",
76+ "location": "query"
77+ }
78+ },
79+ "scopes": [
80+ "https://www.googleapis.com/auth/cloud-platform"
81+ ],
82+ "path": "v1beta1/{+projectName}/events"
83+ }
84+ }
85+ },
86+ "groupStats": {
87+ "methods": {
88+ "list": {
89+ "id": "clouderrorreporting.projects.groupStats.list",
90+ "response": {
91+ "$ref": "ListGroupStatsResponse"
92+ },
93+ "parameterOrder": [
94+ "projectName"
95+ ],
96+ "description": "Lists the specified groups.",
97+ "httpMethod": "GET",
98+ "flatPath": "v1beta1/projects/{projectsId}/groupStats",
99+ "parameters": {
100+ "alignment": {
101+ "enum": [
102+ "ERROR_COUNT_ALIGNMENT_UNSPECIFIED",
103+ "ALIGNMENT_EQUAL_ROUNDED",
104+ "ALIGNMENT_EQUAL_AT_END"
105+ ],
106+ "description": "The alignment of the timed counts to be returned.\nDefault is `ALIGNMENT_EQUAL_AT_END`.",
107+ "type": "string",
108+ "location": "query"
109+ },
110+ "timeRange.period": {
111+ "enum": [
112+ "PERIOD_UNSPECIFIED",
113+ "PERIOD_1_HOUR",
114+ "PERIOD_6_HOURS",
115+ "PERIOD_1_DAY",
116+ "PERIOD_1_WEEK",
117+ "PERIOD_30_DAYS"
118+ ],
119+ "description": "Restricts the query to the specified time range.",
120+ "type": "string",
121+ "location": "query"
122+ },
123+ "projectName": {
124+ "required": true,
125+ "description": "The resource name of the Google Cloud Platform project. Written as\n`projects/` plus the\n[Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840).\nRequired. Example: `projects/my-project-123`.",
126+ "pattern": "^projects/[^/]*$",
127+ "type": "string",
128+ "location": "path"
129+ },
130+ "order": {
131+ "enum": [
132+ "GROUP_ORDER_UNSPECIFIED",
133+ "COUNT_DESC",
134+ "LAST_SEEN_DESC",
135+ "CREATED_DESC",
136+ "AFFECTED_USERS_DESC"
137+ ],
138+ "description": "The sort order in which the results are returned.\nDefault is `COUNT_DESC`.",
139+ "type": "string",
140+ "location": "query"
141+ },
142+ "serviceFilter.service": {
143+ "description": "The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
144+ "type": "string",
145+ "location": "query"
146+ },
147+ "groupId": {
148+ "description": "List all `ErrorGroupStats` with these IDs.\nIf not specified, all error group stats with a non-zero error count\nfor the given selection criteria are returned.",
149+ "repeated": true,
150+ "type": "string",
151+ "location": "query"
152+ },
153+ "alignmentTime": {
154+ "description": "Time where the timed counts shall be aligned if rounded alignment\nis chosen. Default is 00:00 UTC.",
155+ "type": "string",
156+ "location": "query",
157+ "format": "google-datetime"
158+ },
159+ "pageSize": {
160+ "description": "The maximum number of results to return per response.\nDefault is 20.",
161+ "type": "integer",
162+ "location": "query",
163+ "format": "int32"
164+ },
165+ "serviceFilter.version": {
166+ "description": "The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
167+ "type": "string",
168+ "location": "query"
169+ },
170+ "timedCountDuration": {
171+ "description": "The preferred duration for a single returned `TimedCount`.\nIf not set, no timed counts are returned.",
172+ "type": "string",
173+ "location": "query",
174+ "format": "google-duration"
175+ },
176+ "pageToken": {
177+ "description": "A `next_page_token` provided by a previous response. To view additional\nresults, pass this token along with the identical query parameters as the\nfirst request.",
178+ "type": "string",
179+ "location": "query"
180+ }
181+ },
182+ "scopes": [
183+ "https://www.googleapis.com/auth/cloud-platform"
184+ ],
185+ "path": "v1beta1/{+projectName}/groupStats"
186+ }
187+ }
188+ },
189+ "groups": {
190+ "methods": {
191+ "update": {
192+ "id": "clouderrorreporting.projects.groups.update",
193+ "response": {
194+ "$ref": "ErrorGroup"
195+ },
196+ "parameterOrder": [
197+ "name"
198+ ],
199+ "description": "Replace the data for the specified group.\nFails if the group does not exist.",
200+ "request": {
201+ "$ref": "ErrorGroup"
202+ },
203+ "httpMethod": "PUT",
204+ "flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
205+ "parameters": {
206+ "name": {
207+ "required": true,
208+ "description": "Group resource name.\nExample: `projects/my-project-123/groups/my-groupid`",
209+ "pattern": "^projects/[^/]*/groups/[^/]*$",
210+ "type": "string",
211+ "location": "path"
212+ }
213+ },
214+ "scopes": [
215+ "https://www.googleapis.com/auth/cloud-platform"
216+ ],
217+ "path": "v1beta1/{+name}"
218+ },
219+ "get": {
220+ "id": "clouderrorreporting.projects.groups.get",
221+ "response": {
222+ "$ref": "ErrorGroup"
223+ },
224+ "parameterOrder": [
225+ "groupName"
226+ ],
227+ "description": "Get the specified group.",
228+ "httpMethod": "GET",
229+ "flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
230+ "parameters": {
231+ "groupName": {
232+ "required": true,
233+ "description": "Group resource name. Required.\nExample: `projects/my-project-123/groups/my-group`",
234+ "pattern": "^projects/[^/]*/groups/[^/]*$",
235+ "type": "string",
236+ "location": "path"
237+ }
238+ },
239+ "scopes": [
240+ "https://www.googleapis.com/auth/cloud-platform"
241+ ],
242+ "path": "v1beta1/{+groupName}"
243+ }
244+ }
245+ }
246+ },
247+ "methods": {
248+ "deleteEvents": {
249+ "id": "clouderrorreporting.projects.deleteEvents",
250+ "response": {
251+ "$ref": "DeleteEventsResponse"
252+ },
253+ "parameterOrder": [
254+ "projectName"
255+ ],
256+ "description": "Deletes all error events of a given project.",
257+ "httpMethod": "DELETE",
258+ "flatPath": "v1beta1/projects/{projectsId}/events",
259+ "parameters": {
260+ "projectName": {
261+ "required": true,
262+ "description": "The resource name of the Google Cloud Platform project. Required.\nExample: `projects/my-project`.",
263+ "pattern": "^projects/[^/]*$",
264+ "type": "string",
265+ "location": "path"
266+ }
267+ },
268+ "scopes": [
269+ "https://www.googleapis.com/auth/cloud-platform"
270+ ],
271+ "path": "v1beta1/{+projectName}/events"
272+ }
273+ }
274+ }
275+ },
276+ "schemas": {
277+ "SourceLocation": {
278+ "description": "Indicates a location in the source code of the service for which\nerrors are reported.\nThis data should be provided by the application when reporting an error,\nunless the error report has been generated automatically from Google App\nEngine logs. All fields are optional.",
279+ "properties": {
280+ "functionName": {
281+ "description": "Human-readable name of a function or method.\nThe value can include optional context like the class or package name.\nFor example, `my.package.MyClass.method` in case of Java.",
282+ "type": "string"
283+ },
284+ "filePath": {
285+ "description": "The source code filename, which can include a truncated relative path, or\na full path from a production machine.",
286+ "type": "string"
287+ },
288+ "lineNumber": {
289+ "description": "1-based. 0 indicates that the line number is unknown.",
290+ "type": "integer",
291+ "format": "int32"
292+ }
293+ },
294+ "type": "object",
295+ "id": "SourceLocation"
296+ },
297+ "ErrorGroupStats": {
298+ "description": "Data extracted for a specific group based on certain selection criteria,\nsuch as a given time period and/or service filter.",
299+ "properties": {
300+ "representative": {
301+ "description": "An arbitrary event that is chosen as representative 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 sufficiently similar\nto each other such that showing an arbitrary representative provides\ninsight into the characteristics of the group as a whole.",
302+ "$ref": "ErrorEvent"
303+ },
304+ "numAffectedServices": {
305+ "description": "The total number of services with a non-zero error count for the given\nselection criteria.",
306+ "type": "integer",
307+ "format": "int32"
308+ },
309+ "affectedUsersCount": {
310+ "description": "Approximate number of affected users in the given group that\nmatch the selection 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 users 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 are\nimplicitly affected, such as due to a crash of the whole service,\nthis is not reflected here.",
311+ "type": "string",
312+ "format": "int64"
313+ },
314+ "count": {
315+ "description": "Approximate total number of events in the given group that match\nthe selection criteria.",
316+ "type": "string",
317+ "format": "int64"
318+ },
319+ "firstSeenTime": {
320+ "description": "Approximate first occurrence that was seen for this group and\nwhich matches the given selection criteria.",
321+ "type": "string",
322+ "format": "google-datetime"
323+ },
324+ "lastSeenTime": {
325+ "description": "Approximate last occurrence that was seen for this group\nand which matches the given selection criteria.",
326+ "type": "string",
327+ "format": "google-datetime"
328+ },
329+ "group": {
330+ "description": "Group data that is independent of the selection criteria.",
331+ "$ref": "ErrorGroup"
332+ },
333+ "affectedServices": {
334+ "description": "Service contexts with a non-zero error count for the given selection\ncriteria. This list can be truncated if multiple services are affected.\nRefer to `num_affected_services` for the total count.",
335+ "type": "array",
336+ "items": {
337+ "$ref": "ServiceContext"
338+ }
339+ },
340+ "timedCounts": {
341+ "description": "Approximate number of occurrences over time.\nTimed counts returned by ListGroups are guaranteed to be:\n\n- Inside the requested time interval\n- Non-overlapping, and\n- Ordered by ascending time.",
342+ "type": "array",
343+ "items": {
344+ "$ref": "TimedCount"
345+ }
346+ }
347+ },
348+ "type": "object",
349+ "id": "ErrorGroupStats"
350+ },
351+ "ErrorContext": {
352+ "description": "A description of the context in which an error occurred.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.\nAll fields are optional.",
353+ "properties": {
354+ "reportLocation": {
355+ "description": "The location in the source code where the decision was made to\nreport the error, usually the place where it was logged.\nFor a logged exception this would be the source line where the\nexception is logged, usually close to the place where it was\ncaught. This value is in contrast to `Exception.cause_location`,\nwhich describes the source line where the exception was thrown.",
356+ "$ref": "SourceLocation"
357+ },
358+ "httpRequest": {
359+ "description": "The HTTP request which was processed when the error was triggered.",
360+ "$ref": "HttpRequestContext"
361+ },
362+ "user": {
363+ "description": "The user who caused or was affected by the crash.\nThis can be a user ID, an email address, or an arbitrary token that\nuniquely 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 use other data, such as remote IP address, to\ndistinguish affected users. See `affected_users_count` in\n`ErrorGroupStats`.",
364+ "type": "string"
365+ }
366+ },
367+ "type": "object",
368+ "id": "ErrorContext"
369+ },
370+ "ServiceContext": {
371+ "description": "Describes a running service that sends errors.\nIts version changes over time and multiple versions can run in parallel.",
372+ "properties": {
373+ "service": {
374+ "description": "An identifier of the service, such as the name of the executable, job, or\nGoogle App Engine module name. This field is expected to have a low number\nof values that are relatively stable over time, as opposed to\n`version`, which can be changed whenever new code is deployed.\n\nContains the module name for error reports extracted from Google\nApp Engine logs or `default` if the App Engine default module is used. If\nempty, the value is set to `default`.",
375+ "type": "string"
376+ },
377+ "version": {
378+ "description": "Represents the source code version that the developer provided,\nwhich could represent a version label or a Git SHA-1 hash, for example.\nIf the developer did not provide a version, the value is set to\n`default`. For App Engine, the version is set to the version of the\napp.",
379+ "type": "string"
380+ }
381+ },
382+ "type": "object",
383+ "id": "ServiceContext"
384+ },
385+ "ErrorGroup": {
386+ "description": "Description of a group of similar error events.",
387+ "properties": {
388+ "groupId": {
389+ "description": "Group IDs are unique for a given project. If the same kind of error\noccurs in different service contexts, it will receive the same group ID.",
390+ "type": "string"
391+ },
392+ "trackingIssues": {
393+ "description": "Associated tracking issues.",
394+ "type": "array",
395+ "items": {
396+ "$ref": "TrackingIssue"
397+ }
398+ },
399+ "name": {
400+ "description": "Group resource name.\nExample: `projects/my-project-123/groups/my-groupid`",
401+ "type": "string"
402+ }
403+ },
404+ "type": "object",
405+ "id": "ErrorGroup"
406+ },
407+ "TrackingIssue": {
408+ "description": "Information related to tracking the progress on resolving the error.",
409+ "properties": {
410+ "url": {
411+ "description": "A URL pointing to a related entry in an issue tracking system.\nExample: https://github.com/user/project/issues/4",
412+ "type": "string"
413+ }
414+ },
415+ "type": "object",
416+ "id": "TrackingIssue"
417+ },
418+ "DeleteEventsResponse": {
419+ "description": "Response message for deleting error events.",
420+ "properties": {},
421+ "type": "object",
422+ "id": "DeleteEventsResponse"
423+ },
424+ "ErrorEvent": {
425+ "description": "An error event which is returned by the Error Reporting system.",
426+ "properties": {
427+ "context": {
428+ "description": "Data about the context in which the error occurred.",
429+ "$ref": "ErrorContext"
430+ },
431+ "serviceContext": {
432+ "description": "The service_context for which this error was reported.",
433+ "$ref": "ServiceContext"
434+ },
435+ "eventTime": {
436+ "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.",
437+ "type": "string",
438+ "format": "google-datetime"
439+ },
440+ "message": {
441+ "description": "The stack trace that was reported or logged by the service.",
442+ "type": "string"
443+ }
444+ },
445+ "type": "object",
446+ "id": "ErrorEvent"
447+ },
448+ "ListEventsResponse": {
449+ "description": "Contains a set of requested error events.",
450+ "properties": {
451+ "nextPageToken": {
452+ "description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
453+ "type": "string"
454+ },
455+ "errorEvents": {
456+ "description": "The error events which match the given request.",
457+ "type": "array",
458+ "items": {
459+ "$ref": "ErrorEvent"
460+ }
461+ }
462+ },
463+ "type": "object",
464+ "id": "ListEventsResponse"
465+ },
466+ "TimedCount": {
467+ "description": "The number of errors in a given time period.\nAll numbers are approximate since the error events are sampled\nbefore counting them.",
468+ "properties": {
469+ "endTime": {
470+ "description": "End of the time period to which `count` refers (excluded).",
471+ "type": "string",
472+ "format": "google-datetime"
473+ },
474+ "startTime": {
475+ "description": "Start of the time period to which `count` refers (included).",
476+ "type": "string",
477+ "format": "google-datetime"
478+ },
479+ "count": {
480+ "description": "Approximate number of occurrences in the given time period.",
481+ "type": "string",
482+ "format": "int64"
483+ }
484+ },
485+ "type": "object",
486+ "id": "TimedCount"
487+ },
488+ "HttpRequestContext": {
489+ "description": "HTTP request data that is related to a reported error.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.\nAll fields are optional.",
490+ "properties": {
491+ "method": {
492+ "description": "The type of HTTP request, such as `GET`, `POST`, etc.",
493+ "type": "string"
494+ },
495+ "responseStatusCode": {
496+ "description": "The HTTP response status code for the request.",
497+ "type": "integer",
498+ "format": "int32"
499+ },
500+ "remoteIp": {
501+ "description": "The IP address from which the request originated.\nThis can be IPv4, IPv6, or a token which is derived from the\nIP address, depending on the data that has been provided\nin the error report.",
502+ "type": "string"
503+ },
504+ "url": {
505+ "description": "The URL of the request.",
506+ "type": "string"
507+ },
508+ "userAgent": {
509+ "description": "The user agent information that is provided with the request.",
510+ "type": "string"
511+ },
512+ "referrer": {
513+ "description": "The referrer information that is provided with the request.",
514+ "type": "string"
515+ }
516+ },
517+ "type": "object",
518+ "id": "HttpRequestContext"
519+ },
520+ "ListGroupStatsResponse": {
521+ "description": "Contains a set of requested error group stats.",
522+ "properties": {
523+ "nextPageToken": {
524+ "description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
525+ "type": "string"
526+ },
527+ "errorGroupStats": {
528+ "description": "The error group stats which match the given request.",
529+ "type": "array",
530+ "items": {
531+ "$ref": "ErrorGroupStats"
532+ }
533+ }
534+ },
535+ "type": "object",
536+ "id": "ListGroupStatsResponse"
537+ }
538+ },
539+ "revision": "20160422",
540+ "basePath": "",
541+ "icons": {
542+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
543+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
544+ },
545+ "version_module": "True",
546+ "canonicalName": "Clouderrorreporting",
547+ "discoveryVersion": "v1",
548+ "parameters": {
549+ "access_token": {
550+ "description": "OAuth access token.",
551+ "location": "query",
552+ "type": "string"
553+ },
554+ "prettyPrint": {
555+ "default": "true",
556+ "description": "Returns response with indentations and line breaks.",
557+ "location": "query",
558+ "type": "boolean"
559+ },
560+ "key": {
561+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
562+ "location": "query",
563+ "type": "string"
564+ },
565+ "quotaUser": {
566+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
567+ "location": "query",
568+ "type": "string"
569+ },
570+ "pp": {
571+ "default": "true",
572+ "description": "Pretty-print response.",
573+ "location": "query",
574+ "type": "boolean"
575+ },
576+ "fields": {
577+ "description": "Selector specifying which fields to include in a partial response.",
578+ "location": "query",
579+ "type": "string"
580+ },
581+ "alt": {
582+ "description": "Data format for response.",
583+ "location": "query",
584+ "enum": [
585+ "json",
586+ "media",
587+ "proto"
588+ ],
589+ "default": "json",
590+ "enumDescriptions": [
591+ "Responses with Content-Type of application/json",
592+ "Media download with context-dependent Content-Type",
593+ "Responses with Content-Type of application/x-protobuf"
594+ ],
595+ "type": "string"
596+ },
597+ "$.xgafv": {
598+ "enum": [
599+ "1",
600+ "2"
601+ ],
602+ "description": "V1 error format.",
603+ "enumDescriptions": [
604+ "v1 error format",
605+ "v2 error format"
606+ ],
607+ "location": "query",
608+ "type": "string"
609+ },
610+ "callback": {
611+ "description": "JSONP",
612+ "location": "query",
613+ "type": "string"
614+ },
615+ "uploadType": {
616+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
617+ "location": "query",
618+ "type": "string"
619+ },
620+ "oauth_token": {
621+ "description": "OAuth 2.0 token for the current user.",
622+ "location": "query",
623+ "type": "string"
624+ },
625+ "upload_protocol": {
626+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
627+ "location": "query",
628+ "type": "string"
629+ },
630+ "bearer_token": {
631+ "description": "OAuth bearer token.",
632+ "location": "query",
633+ "type": "string"
634+ }
635+ },
636+ "name": "clouderrorreporting",
637+ "baseUrl": "https://clouderrorreporting.googleapis.com/",
638+ "ownerDomain": "google.com",
639+ "documentationLink": "https://cloud.google.com/error-reporting/",
640+ "batchPath": "batch",
641+ "servicePath": "",
642+ "ownerName": "Google",
643+ "version": "v1beta1",
644+ "rootUrl": "https://clouderrorreporting.googleapis.com/",
645+ "kind": "discovery#restDescription"
646+}