Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Side by Side Diff: discovery/googleapis/logging__v2.json

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services"
7 },
8 "https://www.googleapis.com/auth/cloud-platform.read-only": {
9 "description": "View your data across Google Cloud Platform services"
10 },
11 "https://www.googleapis.com/auth/logging.read": {
12 "description": "View log data for your projects"
13 },
14 "https://www.googleapis.com/auth/logging.write": {
15 "description": "Submit log data for your projects"
16 },
17 "https://www.googleapis.com/auth/logging.admin": {
18 "description": "Administrate log data for your projects"
19 }
20 }
21 }
22 },
23 "basePath": "",
24 "baseUrl": "https://logging.googleapis.com/",
25 "batchPath": "batch",
26 "canonicalName": "Logging",
27 "description": "Writes log entries and manages your Stackdriver Logging conf iguration.",
28 "discoveryVersion": "v1",
29 "documentationLink": "https://cloud.google.com/logging/docs/",
30 "icons": {
31 "x16": "http://www.google.com/images/icons/product/search-16.gif",
32 "x32": "http://www.google.com/images/icons/product/search-32.gif"
33 },
34 "id": "logging:v2",
35 "kind": "discovery#restDescription",
36 "name": "logging",
37 "ownerDomain": "google.com",
38 "ownerName": "Google",
39 "parameters": {
40 "access_token": {
41 "description": "OAuth access token.",
42 "location": "query",
43 "type": "string"
44 },
45 "prettyPrint": {
46 "default": "true",
47 "description": "Returns response with indentations and line breaks." ,
48 "location": "query",
49 "type": "boolean"
50 },
51 "key": {
52 "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.",
53 "location": "query",
54 "type": "string"
55 },
56 "quotaUser": {
57 "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.",
58 "location": "query",
59 "type": "string"
60 },
61 "pp": {
62 "default": "true",
63 "description": "Pretty-print response.",
64 "location": "query",
65 "type": "boolean"
66 },
67 "fields": {
68 "description": "Selector specifying which fields to include in a par tial response.",
69 "location": "query",
70 "type": "string"
71 },
72 "alt": {
73 "default": "json",
74 "description": "Data format for response.",
75 "enum": [
76 "json",
77 "media",
78 "proto"
79 ],
80 "enumDescriptions": [
81 "Responses with Content-Type of application/json",
82 "Media download with context-dependent Content-Type",
83 "Responses with Content-Type of application/x-protobuf"
84 ],
85 "location": "query",
86 "type": "string"
87 },
88 "$.xgafv": {
89 "description": "V1 error format.",
90 "enum": [
91 "1",
92 "2"
93 ],
94 "enumDescriptions": [
95 "v1 error format",
96 "v2 error format"
97 ],
98 "location": "query",
99 "type": "string"
100 },
101 "callback": {
102 "description": "JSONP",
103 "location": "query",
104 "type": "string"
105 },
106 "oauth_token": {
107 "description": "OAuth 2.0 token for the current user.",
108 "location": "query",
109 "type": "string"
110 },
111 "uploadType": {
112 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
113 "location": "query",
114 "type": "string"
115 },
116 "bearer_token": {
117 "description": "OAuth bearer token.",
118 "location": "query",
119 "type": "string"
120 },
121 "upload_protocol": {
122 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
123 "location": "query",
124 "type": "string"
125 }
126 },
127 "protocol": "rest",
128 "resources": {
129 "projects": {
130 "resources": {
131 "metrics": {
132 "methods": {
133 "update": {
134 "description": "Creates or updates a logs-based metr ic.",
135 "httpMethod": "PUT",
136 "id": "logging.projects.metrics.update",
137 "parameterOrder": [
138 "metricName"
139 ],
140 "parameters": {
141 "metricName": {
142 "description": "The resource name of the met ric to update.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.\n\nT he updated metric must be provided in the request and have the\nsame identifier that is specified in `metricName`.\nIf the metric does not exist, it is created. ",
143 "location": "path",
144 "pattern": "^projects/[^/]+/metrics/[^/]+$",
145 "required": true,
146 "type": "string"
147 }
148 },
149 "path": "v2/{+metricName}",
150 "request": {
151 "$ref": "LogMetric"
152 },
153 "response": {
154 "$ref": "LogMetric"
155 },
156 "scopes": [
157 "https://www.googleapis.com/auth/cloud-platform" ,
158 "https://www.googleapis.com/auth/logging.admin",
159 "https://www.googleapis.com/auth/logging.write"
160 ]
161 },
162 "get": {
163 "description": "Gets a logs-based metric.",
164 "httpMethod": "GET",
165 "id": "logging.projects.metrics.get",
166 "parameterOrder": [
167 "metricName"
168 ],
169 "parameters": {
170 "metricName": {
171 "description": "The resource name of the des ired metric.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.",
172 "location": "path",
173 "pattern": "^projects/[^/]+/metrics/[^/]+$",
174 "required": true,
175 "type": "string"
176 }
177 },
178 "path": "v2/{+metricName}",
179 "response": {
180 "$ref": "LogMetric"
181 },
182 "scopes": [
183 "https://www.googleapis.com/auth/cloud-platform" ,
184 "https://www.googleapis.com/auth/cloud-platform. read-only",
185 "https://www.googleapis.com/auth/logging.admin",
186 "https://www.googleapis.com/auth/logging.read"
187 ]
188 },
189 "create": {
190 "description": "Creates a logs-based metric.",
191 "httpMethod": "POST",
192 "id": "logging.projects.metrics.create",
193 "parameterOrder": [
194 "parent"
195 ],
196 "parameters": {
197 "parent": {
198 "description": "The resource name of the pro ject in which to create the metric.\nExample: `\"projects/my-project-id\"`.\n\nT he new metric must be provided in the request.",
199 "location": "path",
200 "pattern": "^projects/[^/]+$",
201 "required": true,
202 "type": "string"
203 }
204 },
205 "path": "v2/{+parent}/metrics",
206 "request": {
207 "$ref": "LogMetric"
208 },
209 "response": {
210 "$ref": "LogMetric"
211 },
212 "scopes": [
213 "https://www.googleapis.com/auth/cloud-platform" ,
214 "https://www.googleapis.com/auth/logging.admin",
215 "https://www.googleapis.com/auth/logging.write"
216 ]
217 },
218 "list": {
219 "description": "Lists logs-based metrics.",
220 "httpMethod": "GET",
221 "id": "logging.projects.metrics.list",
222 "parameterOrder": [
223 "parent"
224 ],
225 "parameters": {
226 "pageSize": {
227 "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might b e available.",
228 "format": "int32",
229 "location": "query",
230 "type": "integer"
231 },
232 "parent": {
233 "description": "Required. The resource name containing the metrics.\nExample: `\"projects/my-project-id\"`.",
234 "location": "path",
235 "pattern": "^projects/[^/]+$",
236 "required": true,
237 "type": "string"
238 },
239 "pageToken": {
240 "description": "Optional. If present, then r etrieve the next batch of results from the\npreceding call to this method. `pag eToken` must be the value of\n`nextPageToken` from the previous response. The v alues of other method\nparameters should be identical to those in the previous c all.",
241 "location": "query",
242 "type": "string"
243 }
244 },
245 "path": "v2/{+parent}/metrics",
246 "response": {
247 "$ref": "ListLogMetricsResponse"
248 },
249 "scopes": [
250 "https://www.googleapis.com/auth/cloud-platform" ,
251 "https://www.googleapis.com/auth/cloud-platform. read-only",
252 "https://www.googleapis.com/auth/logging.admin",
253 "https://www.googleapis.com/auth/logging.read"
254 ]
255 },
256 "delete": {
257 "description": "Deletes a logs-based metric.",
258 "httpMethod": "DELETE",
259 "id": "logging.projects.metrics.delete",
260 "parameterOrder": [
261 "metricName"
262 ],
263 "parameters": {
264 "metricName": {
265 "description": "The resource name of the met ric to delete.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.",
266 "location": "path",
267 "pattern": "^projects/[^/]+/metrics/[^/]+$",
268 "required": true,
269 "type": "string"
270 }
271 },
272 "path": "v2/{+metricName}",
273 "response": {
274 "$ref": "Empty"
275 },
276 "scopes": [
277 "https://www.googleapis.com/auth/cloud-platform" ,
278 "https://www.googleapis.com/auth/logging.admin",
279 "https://www.googleapis.com/auth/logging.write"
280 ]
281 }
282 }
283 },
284 "logs": {
285 "methods": {
286 "delete": {
287 "description": "Deletes a log and all its log entrie s.\nThe log will reappear if it receives new entries.",
288 "httpMethod": "DELETE",
289 "id": "logging.projects.logs.delete",
290 "parameterOrder": [
291 "logName"
292 ],
293 "parameters": {
294 "logName": {
295 "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
296 "location": "path",
297 "pattern": "^projects/[^/]+/logs/[^/]+$",
298 "required": true,
299 "type": "string"
300 }
301 },
302 "path": "v2/{+logName}",
303 "response": {
304 "$ref": "Empty"
305 },
306 "scopes": [
307 "https://www.googleapis.com/auth/cloud-platform" ,
308 "https://www.googleapis.com/auth/logging.admin"
309 ]
310 }
311 }
312 },
313 "sinks": {
314 "methods": {
315 "update": {
316 "description": "Updates or creates a sink.",
317 "httpMethod": "PUT",
318 "id": "logging.projects.sinks.update",
319 "parameterOrder": [
320 "sinkName"
321 ],
322 "parameters": {
323 "sinkName": {
324 "description": "Required. The resource name of the sink to update, including the parent\nresource and the sink identifier. If the sink does not exist, this method\ncreates the sink. Example: `\"projects /my-project-id/sinks/my-sink-id\"`.",
325 "location": "path",
326 "pattern": "^projects/[^/]+/sinks/[^/]+$",
327 "required": true,
328 "type": "string"
329 },
330 "uniqueWriterIdentity": {
331 "description": "Optional. Whether the sink w ill have a dedicated service account returned\nin the sink's writer_identity. Se t this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.",
332 "location": "query",
333 "type": "boolean"
334 }
335 },
336 "path": "v2/{+sinkName}",
337 "request": {
338 "$ref": "LogSink"
339 },
340 "response": {
341 "$ref": "LogSink"
342 },
343 "scopes": [
344 "https://www.googleapis.com/auth/cloud-platform" ,
345 "https://www.googleapis.com/auth/logging.admin"
346 ]
347 },
348 "get": {
349 "description": "Gets a sink.",
350 "httpMethod": "GET",
351 "id": "logging.projects.sinks.get",
352 "parameterOrder": [
353 "sinkName"
354 ],
355 "parameters": {
356 "sinkName": {
357 "description": "Required. The resource name of the sink to return.\nExample: `\"projects/my-project-id/sinks/my-sink-id\"`." ,
358 "location": "path",
359 "pattern": "^projects/[^/]+/sinks/[^/]+$",
360 "required": true,
361 "type": "string"
362 }
363 },
364 "path": "v2/{+sinkName}",
365 "response": {
366 "$ref": "LogSink"
367 },
368 "scopes": [
369 "https://www.googleapis.com/auth/cloud-platform" ,
370 "https://www.googleapis.com/auth/cloud-platform. read-only",
371 "https://www.googleapis.com/auth/logging.admin",
372 "https://www.googleapis.com/auth/logging.read"
373 ]
374 },
375 "create": {
376 "description": "Creates a sink.",
377 "httpMethod": "POST",
378 "id": "logging.projects.sinks.create",
379 "parameterOrder": [
380 "parent"
381 ],
382 "parameters": {
383 "uniqueWriterIdentity": {
384 "description": "Optional. Whether the sink w ill have a dedicated service account returned\nin the sink's writer_identity. Se t this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.",
385 "location": "query",
386 "type": "boolean"
387 },
388 "parent": {
389 "description": "Required. The resource in wh ich to create the sink.\nExample: `\"projects/my-project-id\"`.\nThe new sink mu st be provided in the request.",
390 "location": "path",
391 "pattern": "^projects/[^/]+$",
392 "required": true,
393 "type": "string"
394 }
395 },
396 "path": "v2/{+parent}/sinks",
397 "request": {
398 "$ref": "LogSink"
399 },
400 "response": {
401 "$ref": "LogSink"
402 },
403 "scopes": [
404 "https://www.googleapis.com/auth/cloud-platform" ,
405 "https://www.googleapis.com/auth/logging.admin"
406 ]
407 },
408 "list": {
409 "description": "Lists sinks.",
410 "httpMethod": "GET",
411 "id": "logging.projects.sinks.list",
412 "parameterOrder": [
413 "parent"
414 ],
415 "parameters": {
416 "pageSize": {
417 "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might b e available.",
418 "format": "int32",
419 "location": "query",
420 "type": "integer"
421 },
422 "parent": {
423 "description": "Required. The resource name where this sink was created.\nExample: `\"projects/my-logging-project\"`.",
424 "location": "path",
425 "pattern": "^projects/[^/]+$",
426 "required": true,
427 "type": "string"
428 },
429 "pageToken": {
430 "description": "Optional. If present, then r etrieve the next batch of results from the\npreceding call to this method. `pag eToken` must be the value of\n`nextPageToken` from the previous response. The v alues of other method\nparameters should be identical to those in the previous c all.",
431 "location": "query",
432 "type": "string"
433 }
434 },
435 "path": "v2/{+parent}/sinks",
436 "response": {
437 "$ref": "ListSinksResponse"
438 },
439 "scopes": [
440 "https://www.googleapis.com/auth/cloud-platform" ,
441 "https://www.googleapis.com/auth/cloud-platform. read-only",
442 "https://www.googleapis.com/auth/logging.admin",
443 "https://www.googleapis.com/auth/logging.read"
444 ]
445 },
446 "delete": {
447 "description": "Deletes a sink.",
448 "httpMethod": "DELETE",
449 "id": "logging.projects.sinks.delete",
450 "parameterOrder": [
451 "sinkName"
452 ],
453 "parameters": {
454 "sinkName": {
455 "description": "Required. The resource name of the sink to delete, including the parent\nresource and the sink identifier. Example:\n`\"projects/my-project-id/sinks/my-sink-id\"`. It is an error if the sink\ndoes not exist.",
456 "location": "path",
457 "pattern": "^projects/[^/]+/sinks/[^/]+$",
458 "required": true,
459 "type": "string"
460 }
461 },
462 "path": "v2/{+sinkName}",
463 "response": {
464 "$ref": "Empty"
465 },
466 "scopes": [
467 "https://www.googleapis.com/auth/cloud-platform" ,
468 "https://www.googleapis.com/auth/logging.admin"
469 ]
470 }
471 }
472 }
473 }
474 },
475 "organizations": {
476 "resources": {
477 "logs": {
478 "methods": {
479 "delete": {
480 "description": "Deletes a log and all its log entrie s.\nThe log will reappear if it receives new entries.",
481 "httpMethod": "DELETE",
482 "id": "logging.organizations.logs.delete",
483 "parameterOrder": [
484 "logName"
485 ],
486 "parameters": {
487 "logName": {
488 "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
489 "location": "path",
490 "pattern": "^organizations/[^/]+/logs/[^/]+$ ",
491 "required": true,
492 "type": "string"
493 }
494 },
495 "path": "v2/{+logName}",
496 "response": {
497 "$ref": "Empty"
498 },
499 "scopes": [
500 "https://www.googleapis.com/auth/cloud-platform" ,
501 "https://www.googleapis.com/auth/logging.admin"
502 ]
503 }
504 }
505 },
506 "sinks": {
507 "methods": {
508 "update": {
509 "description": "Updates or creates a sink.",
510 "httpMethod": "PUT",
511 "id": "logging.organizations.sinks.update",
512 "parameterOrder": [
513 "sinkName"
514 ],
515 "parameters": {
516 "sinkName": {
517 "description": "Required. The resource name of the sink to update, including the parent\nresource and the sink identifier. If the sink does not exist, this method\ncreates the sink. Example: `\"projects /my-project-id/sinks/my-sink-id\"`.",
518 "location": "path",
519 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
520 "required": true,
521 "type": "string"
522 },
523 "uniqueWriterIdentity": {
524 "description": "Optional. Whether the sink w ill have a dedicated service account returned\nin the sink's writer_identity. Se t this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.",
525 "location": "query",
526 "type": "boolean"
527 }
528 },
529 "path": "v2/{+sinkName}",
530 "request": {
531 "$ref": "LogSink"
532 },
533 "response": {
534 "$ref": "LogSink"
535 },
536 "scopes": [
537 "https://www.googleapis.com/auth/cloud-platform" ,
538 "https://www.googleapis.com/auth/logging.admin"
539 ]
540 },
541 "get": {
542 "description": "Gets a sink.",
543 "httpMethod": "GET",
544 "id": "logging.organizations.sinks.get",
545 "parameterOrder": [
546 "sinkName"
547 ],
548 "parameters": {
549 "sinkName": {
550 "description": "Required. The resource name of the sink to return.\nExample: `\"projects/my-project-id/sinks/my-sink-id\"`." ,
551 "location": "path",
552 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
553 "required": true,
554 "type": "string"
555 }
556 },
557 "path": "v2/{+sinkName}",
558 "response": {
559 "$ref": "LogSink"
560 },
561 "scopes": [
562 "https://www.googleapis.com/auth/cloud-platform" ,
563 "https://www.googleapis.com/auth/cloud-platform. read-only",
564 "https://www.googleapis.com/auth/logging.admin",
565 "https://www.googleapis.com/auth/logging.read"
566 ]
567 },
568 "create": {
569 "description": "Creates a sink.",
570 "httpMethod": "POST",
571 "id": "logging.organizations.sinks.create",
572 "parameterOrder": [
573 "parent"
574 ],
575 "parameters": {
576 "uniqueWriterIdentity": {
577 "description": "Optional. Whether the sink w ill have a dedicated service account returned\nin the sink's writer_identity. Se t this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.",
578 "location": "query",
579 "type": "boolean"
580 },
581 "parent": {
582 "description": "Required. The resource in wh ich to create the sink.\nExample: `\"projects/my-project-id\"`.\nThe new sink mu st be provided in the request.",
583 "location": "path",
584 "pattern": "^organizations/[^/]+$",
585 "required": true,
586 "type": "string"
587 }
588 },
589 "path": "v2/{+parent}/sinks",
590 "request": {
591 "$ref": "LogSink"
592 },
593 "response": {
594 "$ref": "LogSink"
595 },
596 "scopes": [
597 "https://www.googleapis.com/auth/cloud-platform" ,
598 "https://www.googleapis.com/auth/logging.admin"
599 ]
600 },
601 "list": {
602 "description": "Lists sinks.",
603 "httpMethod": "GET",
604 "id": "logging.organizations.sinks.list",
605 "parameterOrder": [
606 "parent"
607 ],
608 "parameters": {
609 "pageSize": {
610 "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might b e available.",
611 "format": "int32",
612 "location": "query",
613 "type": "integer"
614 },
615 "parent": {
616 "description": "Required. The resource name where this sink was created.\nExample: `\"projects/my-logging-project\"`.",
617 "location": "path",
618 "pattern": "^organizations/[^/]+$",
619 "required": true,
620 "type": "string"
621 },
622 "pageToken": {
623 "description": "Optional. If present, then r etrieve the next batch of results from the\npreceding call to this method. `pag eToken` must be the value of\n`nextPageToken` from the previous response. The v alues of other method\nparameters should be identical to those in the previous c all.",
624 "location": "query",
625 "type": "string"
626 }
627 },
628 "path": "v2/{+parent}/sinks",
629 "response": {
630 "$ref": "ListSinksResponse"
631 },
632 "scopes": [
633 "https://www.googleapis.com/auth/cloud-platform" ,
634 "https://www.googleapis.com/auth/cloud-platform. read-only",
635 "https://www.googleapis.com/auth/logging.admin",
636 "https://www.googleapis.com/auth/logging.read"
637 ]
638 },
639 "delete": {
640 "description": "Deletes a sink.",
641 "httpMethod": "DELETE",
642 "id": "logging.organizations.sinks.delete",
643 "parameterOrder": [
644 "sinkName"
645 ],
646 "parameters": {
647 "sinkName": {
648 "description": "Required. The resource name of the sink to delete, including the parent\nresource and the sink identifier. Example:\n`\"projects/my-project-id/sinks/my-sink-id\"`. It is an error if the sink\ndoes not exist.",
649 "location": "path",
650 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
651 "required": true,
652 "type": "string"
653 }
654 },
655 "path": "v2/{+sinkName}",
656 "response": {
657 "$ref": "Empty"
658 },
659 "scopes": [
660 "https://www.googleapis.com/auth/cloud-platform" ,
661 "https://www.googleapis.com/auth/logging.admin"
662 ]
663 }
664 }
665 }
666 }
667 },
668 "entries": {
669 "methods": {
670 "write": {
671 "description": "Writes log entries to Stackdriver Logging. All log entries are\nwritten by this method.",
672 "httpMethod": "POST",
673 "id": "logging.entries.write",
674 "parameterOrder": [],
675 "parameters": {},
676 "path": "v2/entries:write",
677 "request": {
678 "$ref": "WriteLogEntriesRequest"
679 },
680 "response": {
681 "$ref": "WriteLogEntriesResponse"
682 },
683 "scopes": [
684 "https://www.googleapis.com/auth/cloud-platform",
685 "https://www.googleapis.com/auth/logging.admin",
686 "https://www.googleapis.com/auth/logging.write"
687 ]
688 },
689 "list": {
690 "description": "Lists log entries. Use this method to retri eve log entries from Cloud\nLogging. For ways to export log entries, see\n[Expo rting Logs](/logging/docs/export).",
691 "httpMethod": "POST",
692 "id": "logging.entries.list",
693 "parameterOrder": [],
694 "parameters": {},
695 "path": "v2/entries:list",
696 "request": {
697 "$ref": "ListLogEntriesRequest"
698 },
699 "response": {
700 "$ref": "ListLogEntriesResponse"
701 },
702 "scopes": [
703 "https://www.googleapis.com/auth/cloud-platform",
704 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
705 "https://www.googleapis.com/auth/logging.admin",
706 "https://www.googleapis.com/auth/logging.read"
707 ]
708 }
709 }
710 },
711 "monitoredResourceDescriptors": {
712 "methods": {
713 "list": {
714 "description": "Lists the monitored resource descriptors use d by Stackdriver Logging.",
715 "httpMethod": "GET",
716 "id": "logging.monitoredResourceDescriptors.list",
717 "parameterOrder": [],
718 "parameters": {
719 "pageSize": {
720 "description": "Optional. The maximum number of resu lts to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be availa ble.",
721 "format": "int32",
722 "location": "query",
723 "type": "integer"
724 },
725 "pageToken": {
726 "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
727 "location": "query",
728 "type": "string"
729 }
730 },
731 "path": "v2/monitoredResourceDescriptors",
732 "response": {
733 "$ref": "ListMonitoredResourceDescriptorsResponse"
734 },
735 "scopes": [
736 "https://www.googleapis.com/auth/cloud-platform",
737 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
738 "https://www.googleapis.com/auth/logging.admin",
739 "https://www.googleapis.com/auth/logging.read"
740 ]
741 }
742 }
743 },
744 "billingAccounts": {
745 "resources": {
746 "logs": {
747 "methods": {
748 "delete": {
749 "description": "Deletes a log and all its log entrie s.\nThe log will reappear if it receives new entries.",
750 "httpMethod": "DELETE",
751 "id": "logging.billingAccounts.logs.delete",
752 "parameterOrder": [
753 "logName"
754 ],
755 "parameters": {
756 "logName": {
757 "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.",
758 "location": "path",
759 "pattern": "^billingAccounts/[^/]+/logs/[^/] +$",
760 "required": true,
761 "type": "string"
762 }
763 },
764 "path": "v2/{+logName}",
765 "response": {
766 "$ref": "Empty"
767 },
768 "scopes": [
769 "https://www.googleapis.com/auth/cloud-platform" ,
770 "https://www.googleapis.com/auth/logging.admin"
771 ]
772 }
773 }
774 },
775 "sinks": {
776 "methods": {
777 "update": {
778 "description": "Updates or creates a sink.",
779 "httpMethod": "PUT",
780 "id": "logging.billingAccounts.sinks.update",
781 "parameterOrder": [
782 "sinkName"
783 ],
784 "parameters": {
785 "sinkName": {
786 "description": "Required. The resource name of the sink to update, including the parent\nresource and the sink identifier. If the sink does not exist, this method\ncreates the sink. Example: `\"projects /my-project-id/sinks/my-sink-id\"`.",
787 "location": "path",
788 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
789 "required": true,
790 "type": "string"
791 },
792 "uniqueWriterIdentity": {
793 "description": "Optional. Whether the sink w ill have a dedicated service account returned\nin the sink's writer_identity. Se t this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.",
794 "location": "query",
795 "type": "boolean"
796 }
797 },
798 "path": "v2/{+sinkName}",
799 "request": {
800 "$ref": "LogSink"
801 },
802 "response": {
803 "$ref": "LogSink"
804 },
805 "scopes": [
806 "https://www.googleapis.com/auth/cloud-platform" ,
807 "https://www.googleapis.com/auth/logging.admin"
808 ]
809 },
810 "get": {
811 "description": "Gets a sink.",
812 "httpMethod": "GET",
813 "id": "logging.billingAccounts.sinks.get",
814 "parameterOrder": [
815 "sinkName"
816 ],
817 "parameters": {
818 "sinkName": {
819 "description": "Required. The resource name of the sink to return.\nExample: `\"projects/my-project-id/sinks/my-sink-id\"`." ,
820 "location": "path",
821 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
822 "required": true,
823 "type": "string"
824 }
825 },
826 "path": "v2/{+sinkName}",
827 "response": {
828 "$ref": "LogSink"
829 },
830 "scopes": [
831 "https://www.googleapis.com/auth/cloud-platform" ,
832 "https://www.googleapis.com/auth/cloud-platform. read-only",
833 "https://www.googleapis.com/auth/logging.admin",
834 "https://www.googleapis.com/auth/logging.read"
835 ]
836 },
837 "create": {
838 "description": "Creates a sink.",
839 "httpMethod": "POST",
840 "id": "logging.billingAccounts.sinks.create",
841 "parameterOrder": [
842 "parent"
843 ],
844 "parameters": {
845 "uniqueWriterIdentity": {
846 "description": "Optional. Whether the sink w ill have a dedicated service account returned\nin the sink's writer_identity. Se t this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.",
847 "location": "query",
848 "type": "boolean"
849 },
850 "parent": {
851 "description": "Required. The resource in wh ich to create the sink.\nExample: `\"projects/my-project-id\"`.\nThe new sink mu st be provided in the request.",
852 "location": "path",
853 "pattern": "^billingAccounts/[^/]+$",
854 "required": true,
855 "type": "string"
856 }
857 },
858 "path": "v2/{+parent}/sinks",
859 "request": {
860 "$ref": "LogSink"
861 },
862 "response": {
863 "$ref": "LogSink"
864 },
865 "scopes": [
866 "https://www.googleapis.com/auth/cloud-platform" ,
867 "https://www.googleapis.com/auth/logging.admin"
868 ]
869 },
870 "list": {
871 "description": "Lists sinks.",
872 "httpMethod": "GET",
873 "id": "logging.billingAccounts.sinks.list",
874 "parameterOrder": [
875 "parent"
876 ],
877 "parameters": {
878 "pageSize": {
879 "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might b e available.",
880 "format": "int32",
881 "location": "query",
882 "type": "integer"
883 },
884 "parent": {
885 "description": "Required. The resource name where this sink was created.\nExample: `\"projects/my-logging-project\"`.",
886 "location": "path",
887 "pattern": "^billingAccounts/[^/]+$",
888 "required": true,
889 "type": "string"
890 },
891 "pageToken": {
892 "description": "Optional. If present, then r etrieve the next batch of results from the\npreceding call to this method. `pag eToken` must be the value of\n`nextPageToken` from the previous response. The v alues of other method\nparameters should be identical to those in the previous c all.",
893 "location": "query",
894 "type": "string"
895 }
896 },
897 "path": "v2/{+parent}/sinks",
898 "response": {
899 "$ref": "ListSinksResponse"
900 },
901 "scopes": [
902 "https://www.googleapis.com/auth/cloud-platform" ,
903 "https://www.googleapis.com/auth/cloud-platform. read-only",
904 "https://www.googleapis.com/auth/logging.admin",
905 "https://www.googleapis.com/auth/logging.read"
906 ]
907 },
908 "delete": {
909 "description": "Deletes a sink.",
910 "httpMethod": "DELETE",
911 "id": "logging.billingAccounts.sinks.delete",
912 "parameterOrder": [
913 "sinkName"
914 ],
915 "parameters": {
916 "sinkName": {
917 "description": "Required. The resource name of the sink to delete, including the parent\nresource and the sink identifier. Example:\n`\"projects/my-project-id/sinks/my-sink-id\"`. It is an error if the sink\ndoes not exist.",
918 "location": "path",
919 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
920 "required": true,
921 "type": "string"
922 }
923 },
924 "path": "v2/{+sinkName}",
925 "response": {
926 "$ref": "Empty"
927 },
928 "scopes": [
929 "https://www.googleapis.com/auth/cloud-platform" ,
930 "https://www.googleapis.com/auth/logging.admin"
931 ]
932 }
933 }
934 }
935 }
936 }
937 },
938 "revision": "20161028",
939 "rootUrl": "https://logging.googleapis.com/",
940 "schemas": {
941 "ListLogEntriesResponse": {
942 "description": "Result returned from `ListLogEntries`.",
943 "id": "ListLogEntriesResponse",
944 "properties": {
945 "entries": {
946 "description": "A list of log entries.",
947 "items": {
948 "$ref": "LogEntry"
949 },
950 "type": "array"
951 },
952 "nextPageToken": {
953 "description": "If there might be more results than appear i n this response, then\n`nextPageToken` is included. To get the next set of resu lts, call this\nmethod again using the value of `nextPageToken` as `pageToken`." ,
954 "type": "string"
955 }
956 },
957 "type": "object"
958 },
959 "ListSinksResponse": {
960 "description": "Result returned from `ListSinks`.",
961 "id": "ListSinksResponse",
962 "properties": {
963 "nextPageToken": {
964 "description": "If there might be more results than appear i n this response, then\n`nextPageToken` is included. To get the next set of resu lts, call the same\nmethod again using the value of `nextPageToken` as `pageToke n`.",
965 "type": "string"
966 },
967 "sinks": {
968 "description": "A list of sinks.",
969 "items": {
970 "$ref": "LogSink"
971 },
972 "type": "array"
973 }
974 },
975 "type": "object"
976 },
977 "SourceLocation": {
978 "description": "Specifies a location in a source code file.",
979 "id": "SourceLocation",
980 "properties": {
981 "file": {
982 "description": "Source file name. Depending on the runtime e nvironment, this might be a\nsimple name or a fully-qualified name.",
983 "type": "string"
984 },
985 "functionName": {
986 "description": "Human-readable name of the function or metho d being invoked, with optional\ncontext such as the class or package name. This information is used in\ncontexts such as the logs viewer, where a file and line number are less\nmeaningful. The format can vary by language. For example:\n`qua l.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`\n(Python).",
987 "type": "string"
988 },
989 "line": {
990 "description": "Line within the source file.",
991 "format": "int64",
992 "type": "string"
993 }
994 },
995 "type": "object"
996 },
997 "LogSink": {
998 "description": "Describes a sink used to export log entries outside of Stackdriver Logging.\nA logs filter controls which log entries are exported. Sinks can have a\nstart time and an end time; these can be used to place log en tries from an\nexact time range into a particular destination. If both `start_t ime` and\n`end_time` are present, then `start_time` must be less than `end_time` .",
999 "id": "LogSink",
1000 "properties": {
1001 "destination": {
1002 "description": "Required. The export destination. See\n[Expo rting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).\nExamples:\n\n \"storage.googleapis.com/my-gcs-bucket\"\n \"bigquery.googleapis.com/projec ts/my-project-id/datasets/my-dataset\"\n \"pubsub.googleapis.com/projects/my- project/topics/my-topic\"",
1003 "type": "string"
1004 },
1005 "filter": {
1006 "description": "Optional. An [advanced logs filter](/logging /docs/view/advanced_filters).\nOnly log entries matching the filter are exported . The filter\nmust be consistent with the log entry format specified by the\n`ou tputVersionFormat` parameter, regardless of the format of the\nlog entry that wa s originally written to Stackdriver Logging.\nExample filter (V2 format):\n\n logName=projects/my-projectid/logs/syslog AND severity>=ERROR",
1007 "type": "string"
1008 },
1009 "endTime": {
1010 "description": "Optional. Time at which this sink will stop exporting log entries. If this\nvalue is present, then log entries are exported only if `entry.timestamp` <\n`end_time`.",
1011 "format": "google-datetime",
1012 "type": "string"
1013 },
1014 "name": {
1015 "description": "Required. The client-assigned sink identifie r, unique within the\nproject. Example: `\"my-syslog-errors-to-pubsub\"`. Sink identifiers are\nlimited to 1000 characters and can include only the following c haracters:\n`A-Z`, `a-z`, `0-9`, and the special characters `_-.`. The maximum length\nof the name is 100 characters.",
1016 "type": "string"
1017 },
1018 "startTime": {
1019 "description": "Optional. The time at which this sink will b egin exporting log entries. If\nthis value is present, then log entries are exp orted only if `start_time`\n<=`entry.timestamp`.",
1020 "format": "google-datetime",
1021 "type": "string"
1022 },
1023 "outputVersionFormat": {
1024 "description": "Optional. The log entry version to use for t his sink's exported log\nentries. This version does not have to correspond to t he version of the\nlog entry that was written to Stackdriver Logging. If omitted , the\nv2 format is used.",
1025 "enum": [
1026 "VERSION_FORMAT_UNSPECIFIED",
1027 "V2",
1028 "V1"
1029 ],
1030 "enumDescriptions": [
1031 "An unspecified version format will default to V2.",
1032 "`LogEntry` version 2 format.",
1033 "`LogEntry` version 1 format."
1034 ],
1035 "type": "string"
1036 },
1037 "writerIdentity": {
1038 "description": "Output only. An IAM identity&mdash;a service account or group&mdash;that\nwill write exported log entries to the destination on behalf of Stackdriver\nLogging. You must grant this identity write-access to the destination.\nConsult the destination service's documentation to determine the exact role\nthat must be granted.",
1039 "type": "string"
1040 }
1041 },
1042 "type": "object"
1043 },
1044 "LogMetric": {
1045 "description": "Describes a logs-based metric. The value of the met ric is the\nnumber of log entries that match a logs filter.",
1046 "id": "LogMetric",
1047 "properties": {
1048 "description": {
1049 "description": "Optional. A description of this metric, whic h is used in documentation.",
1050 "type": "string"
1051 },
1052 "filter": {
1053 "description": "Required. An [advanced logs filter](/logging /docs/view/advanced_filters).\nExample: `\"resource.type=gae_app AND severity>=E RROR\"`.",
1054 "type": "string"
1055 },
1056 "name": {
1057 "description": "Required. The client-assigned metric identif ier. Example:\n`\"severe_errors\"`. Metric identifiers are limited to 100\nchar acters and can include only the following characters: `A-Z`,\n`a-z`, `0-9`, and the special characters `_-.,+!*',()%/`. The\nforward-slash character (`/`) deno tes a hierarchy of name pieces,\nand it cannot be the first character of the nam e. The '%' character\nis used to URL encode unsafe and reserved characters and must be\nfollowed by two hexadecimal digits according to RFC 1738.",
1058 "type": "string"
1059 },
1060 "version": {
1061 "description": "Output only. The API version that created or updated this metric.\nThe version also dictates the syntax of the filter expres sion. When a value\nfor this field is missing, the default value of V2 should be assumed.",
1062 "enum": [
1063 "V2",
1064 "V1"
1065 ],
1066 "enumDescriptions": [
1067 "Stackdriver Logging API v2.",
1068 "Stackdriver Logging API v1."
1069 ],
1070 "type": "string"
1071 }
1072 },
1073 "type": "object"
1074 },
1075 "LogEntry": {
1076 "description": "An individual entry in a log.",
1077 "id": "LogEntry",
1078 "properties": {
1079 "textPayload": {
1080 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
1081 "type": "string"
1082 },
1083 "httpRequest": {
1084 "$ref": "HttpRequest",
1085 "description": "Optional. Information about the HTTP request associated with this\nlog entry, if applicable."
1086 },
1087 "jsonPayload": {
1088 "additionalProperties": {
1089 "description": "Properties of the object.",
1090 "type": "any"
1091 },
1092 "description": "The log entry payload, represented as a stru cture that\nis expressed as a JSON object.",
1093 "type": "object"
1094 },
1095 "labels": {
1096 "additionalProperties": {
1097 "type": "string"
1098 },
1099 "description": "Optional. A set of user-defined (key, value) data that provides additional\ninformation about the log entry.",
1100 "type": "object"
1101 },
1102 "logName": {
1103 "description": "Required. The resource name of the log to wh ich this log entry\nbelongs. The format of the name is\n`\"projects/<project-id> /logs/<log-id>\"`. Examples:\n`\"projects/my-projectid/logs/syslog\"`,\n`\"proj ects/my-projectid/logs/library.googleapis.com%2Fbook_log\"`.\n\nThe log ID part of resource name must be less than 512 characters\nlong and can only include the following characters: upper and\nlower case alphanumeric characters: [A-Za-z0-9 ]; and punctuation\ncharacters: forward-slash, underscore, hyphen, and period.\n Forward-slash (`/`) characters in the log ID must be URL-encoded.",
1104 "type": "string"
1105 },
1106 "severity": {
1107 "description": "Optional. The severity of the log entry. The default value is\n`LogSeverity.DEFAULT`.",
1108 "enum": [
1109 "DEFAULT",
1110 "DEBUG",
1111 "INFO",
1112 "NOTICE",
1113 "WARNING",
1114 "ERROR",
1115 "CRITICAL",
1116 "ALERT",
1117 "EMERGENCY"
1118 ],
1119 "enumDescriptions": [
1120 "(0) The log entry has no assigned severity level.",
1121 "(100) Debug or trace information.",
1122 "(200) Routine information, such as ongoing status or pe rformance.",
1123 "(300) Normal but significant events, such as start up, shut down, or\na configuration change.",
1124 "(400) Warning events might cause problems.",
1125 "(500) Error events are likely to cause problems.",
1126 "(600) Critical events cause more severe problems or out ages.",
1127 "(700) A person must take an action immediately.",
1128 "(800) One or more systems are unusable."
1129 ],
1130 "type": "string"
1131 },
1132 "resource": {
1133 "$ref": "MonitoredResource",
1134 "description": "Required. The monitored resource associated with this log entry.\nExample: a log entry that reports a database error would b e\nassociated with the monitored resource designating the particular\ndatabase t hat reported the error."
1135 },
1136 "protoPayload": {
1137 "additionalProperties": {
1138 "description": "Properties of the object. Contains field @type with type URL.",
1139 "type": "any"
1140 },
1141 "description": "The log entry payload, represented as a prot ocol buffer. Some\nGoogle Cloud Platform services use this field for their log\ nentry payloads.",
1142 "type": "object"
1143 },
1144 "timestamp": {
1145 "description": "Optional. The time the event described by th e log entry occurred. If\nomitted, Stackdriver Logging will use the time the lo g entry is received.",
1146 "format": "google-datetime",
1147 "type": "string"
1148 },
1149 "insertId": {
1150 "description": "Optional. A unique ID for the log entry. If you provide this\nfield, the logging service considers other log entries in the\ nsame project with the same ID as duplicates which can be removed. If\nomitted, Stackdriver Logging will generate a unique ID for this\nlog entry.",
1151 "type": "string"
1152 },
1153 "operation": {
1154 "$ref": "LogEntryOperation",
1155 "description": "Optional. Information about an operation ass ociated with the log entry, if\napplicable."
1156 }
1157 },
1158 "type": "object"
1159 },
1160 "LogLine": {
1161 "description": "Application log line emitted while processing a requ est.",
1162 "id": "LogLine",
1163 "properties": {
1164 "time": {
1165 "description": "Approximate time when this log entry was mad e.",
1166 "format": "google-datetime",
1167 "type": "string"
1168 },
1169 "severity": {
1170 "description": "Severity of this log entry.",
1171 "enum": [
1172 "DEFAULT",
1173 "DEBUG",
1174 "INFO",
1175 "NOTICE",
1176 "WARNING",
1177 "ERROR",
1178 "CRITICAL",
1179 "ALERT",
1180 "EMERGENCY"
1181 ],
1182 "enumDescriptions": [
1183 "(0) The log entry has no assigned severity level.",
1184 "(100) Debug or trace information.",
1185 "(200) Routine information, such as ongoing status or pe rformance.",
1186 "(300) Normal but significant events, such as start up, shut down, or\na configuration change.",
1187 "(400) Warning events might cause problems.",
1188 "(500) Error events are likely to cause problems.",
1189 "(600) Critical events cause more severe problems or out ages.",
1190 "(700) A person must take an action immediately.",
1191 "(800) One or more systems are unusable."
1192 ],
1193 "type": "string"
1194 },
1195 "sourceLocation": {
1196 "$ref": "SourceLocation",
1197 "description": "Where in the source code this log message wa s written."
1198 },
1199 "logMessage": {
1200 "description": "App-provided log message.",
1201 "type": "string"
1202 }
1203 },
1204 "type": "object"
1205 },
1206 "SourceReference": {
1207 "description": "A reference to a particular snapshot of the source t ree used to build and\ndeploy an application.",
1208 "id": "SourceReference",
1209 "properties": {
1210 "repository": {
1211 "description": "Optional. A URI string identifying the repos itory.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
1212 "type": "string"
1213 },
1214 "revisionId": {
1215 "description": "The canonical and persistent identifier of t he deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b \"",
1216 "type": "string"
1217 }
1218 },
1219 "type": "object"
1220 },
1221 "MonitoredResource": {
1222 "description": "An object representing a resource that can be used f or monitoring, logging,\nbilling, or other purposes. Examples include virtual ma chine instances,\ndatabases, and storage devices such as disks. The `type` field identifies a\nMonitoredResourceDescriptor object that describes the resource's\ nschema. Information in the `labels` field identifies the actual resource and\ni ts attributes according to the schema. For example, a particular Compute\nEngine VM instance could be represented by the following object, because the\nMonitore dResourceDescriptor for `\"gce_instance\"` has labels\n`\"instance_id\"` and `\" zone\"`:\n\n { \"type\": \"gce_instance\",\n \"labels\": { \"instance_id \": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}",
1223 "id": "MonitoredResource",
1224 "properties": {
1225 "labels": {
1226 "additionalProperties": {
1227 "type": "string"
1228 },
1229 "description": "Required. Values for all of the labels liste d in the associated monitored\nresource descriptor. For example, Cloud SQL datab ases use the labels\n`\"database_id\"` and `\"zone\"`.",
1230 "type": "object"
1231 },
1232 "type": {
1233 "description": "Required. The monitored resource type. This field must match\nthe `type` field of a MonitoredResourceDescriptor object. For\ nexample, the type of a Cloud SQL database is `\"cloudsql_database\"`.",
1234 "type": "string"
1235 }
1236 },
1237 "type": "object"
1238 },
1239 "WriteLogEntriesRequest": {
1240 "description": "The parameters to WriteLogEntries.",
1241 "id": "WriteLogEntriesRequest",
1242 "properties": {
1243 "labels": {
1244 "additionalProperties": {
1245 "type": "string"
1246 },
1247 "description": "Optional. Default labels that are added to t he `labels` field of all log\nentries in `entries`. If a log entry already has a label with the same key\nas a label in this parameter, then the log entry's lab el is not changed.\nSee LogEntry.",
1248 "type": "object"
1249 },
1250 "entries": {
1251 "description": "Required. The log entries to write. Values s upplied for the fields\n`log_name`, `resource`, and `labels` in this `entries.wr ite` request are\nadded to those log entries that do not provide their own value s for the\nfields.\n\nTo improve throughput and to avoid exceeding the\n[quota l imit](/logging/quota-policy) for calls to `entries.write`,\nyou should write mul tiple log entries at once rather than\ncalling this method for each individual l og entry.",
1252 "items": {
1253 "$ref": "LogEntry"
1254 },
1255 "type": "array"
1256 },
1257 "logName": {
1258 "description": "Optional. A default log resource name that i s assigned to all log entries\nin `entries` that do not specify a value for `log _name`. Example:\n`\"projects/my-project/logs/syslog\"`. See\nLogEntry.",
1259 "type": "string"
1260 },
1261 "partialSuccess": {
1262 "description": "Optional. Whether valid entries should be wr itten even if some other\nentries fail due to INVALID_ARGUMENT or PERMISSION_DEN IED errors. If any\nentry is not written, the response status will be the error associated\nwith one of the failed entries and include error details in the form of\nWriteLogEntriesPartialErrors.",
1263 "type": "boolean"
1264 },
1265 "resource": {
1266 "$ref": "MonitoredResource",
1267 "description": "Optional. A default monitored resource objec t that is assigned to all log\nentries in `entries` that do not specify a value for `resource`. Example:\n\n { \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\": \"us-central1-a\", \"instance_id\": \"00000000000000000000 \" }}\n\nSee LogEntry."
1268 }
1269 },
1270 "type": "object"
1271 },
1272 "LabelDescriptor": {
1273 "description": "A description of a label.",
1274 "id": "LabelDescriptor",
1275 "properties": {
1276 "description": {
1277 "description": "A human-readable description for the label." ,
1278 "type": "string"
1279 },
1280 "valueType": {
1281 "description": "The type of data that can be assigned to the label.",
1282 "enum": [
1283 "STRING",
1284 "BOOL",
1285 "INT64"
1286 ],
1287 "enumDescriptions": [
1288 "A variable-length string. This is the default.",
1289 "Boolean; true or false.",
1290 "A 64-bit signed integer."
1291 ],
1292 "type": "string"
1293 },
1294 "key": {
1295 "description": "The label key.",
1296 "type": "string"
1297 }
1298 },
1299 "type": "object"
1300 },
1301 "ListLogMetricsResponse": {
1302 "description": "Result returned from ListLogMetrics.",
1303 "id": "ListLogMetricsResponse",
1304 "properties": {
1305 "metrics": {
1306 "description": "A list of logs-based metrics.",
1307 "items": {
1308 "$ref": "LogMetric"
1309 },
1310 "type": "array"
1311 },
1312 "nextPageToken": {
1313 "description": "If there might be more results than appear i n this response, then\n`nextPageToken` is included. To get the next set of resu lts, call this\nmethod again using the value of `nextPageToken` as `pageToken`." ,
1314 "type": "string"
1315 }
1316 },
1317 "type": "object"
1318 },
1319 "MonitoredResourceDescriptor": {
1320 "description": "An object that describes the schema of a MonitoredRe source object using a\ntype name and a set of labels. For example, the monitore d resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\" gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zo ne\"` to identify particular VM instances.\n\nDifferent APIs can support differe nt monitored resource types. APIs generally\nprovide a `list` method that return s the monitored resource descriptors used\nby the API.",
1321 "id": "MonitoredResourceDescriptor",
1322 "properties": {
1323 "displayName": {
1324 "description": "Optional. A concise name for the monitored r esource type that might be\ndisplayed in user interfaces. It should be a Title C ased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Go ogle Cloud SQL Database\"`.",
1325 "type": "string"
1326 },
1327 "description": {
1328 "description": "Optional. A detailed description of the moni tored resource type that might\nbe used in documentation.",
1329 "type": "string"
1330 },
1331 "labels": {
1332 "description": "Required. A set of labels used to describe i nstances of this monitored\nresource type. For example, an individual Google Clo ud SQL database is\nidentified by values for the labels `\"database_id\"` and `\ "zone\"`.",
1333 "items": {
1334 "$ref": "LabelDescriptor"
1335 },
1336 "type": "array"
1337 },
1338 "type": {
1339 "description": "Required. The monitored resource type. For e xample, the type\n`\"cloudsql_database\"` represents databases in Google Cloud S QL.\nThe maximum length of this value is 256 characters.",
1340 "type": "string"
1341 },
1342 "name": {
1343 "description": "Optional. The resource name of the monitored resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{ty pe}\"` where\n{type} is the value of the `type` field in this object and\n{proje ct_id} is a project ID that provides API-specific context for\naccessing the typ e. APIs that do not use project information can use the\nresource name format ` \"monitoredResourceDescriptors/{type}\"`.",
1344 "type": "string"
1345 }
1346 },
1347 "type": "object"
1348 },
1349 "ListMonitoredResourceDescriptorsResponse": {
1350 "description": "Result returned from ListMonitoredResourceDescriptor s.",
1351 "id": "ListMonitoredResourceDescriptorsResponse",
1352 "properties": {
1353 "nextPageToken": {
1354 "description": "If there might be more results than appear i n this response, then\n`nextPageToken` is included. To get the next set of resu lts, call this\nmethod again using the value of `nextPageToken` as `pageToken`." ,
1355 "type": "string"
1356 },
1357 "resourceDescriptors": {
1358 "description": "A list of resource descriptors.",
1359 "items": {
1360 "$ref": "MonitoredResourceDescriptor"
1361 },
1362 "type": "array"
1363 }
1364 },
1365 "type": "object"
1366 },
1367 "LogEntryOperation": {
1368 "description": "Additional information about a potentially long-runn ing operation with which\na log entry is associated.",
1369 "id": "LogEntryOperation",
1370 "properties": {
1371 "producer": {
1372 "description": "Optional. An arbitrary producer identifier. The combination of\n`id` and `producer` must be globally unique. Examples for ` producer`:\n`\"MyDivision.MyBigCompany.com\"`, `\"github.com/MyProject/MyApplica tion\"`.",
1373 "type": "string"
1374 },
1375 "last": {
1376 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
1377 "type": "boolean"
1378 },
1379 "first": {
1380 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.",
1381 "type": "boolean"
1382 },
1383 "id": {
1384 "description": "Optional. An arbitrary operation identifier. Log entries with the\nsame identifier are assumed to be part of the same operat ion.",
1385 "type": "string"
1386 }
1387 },
1388 "type": "object"
1389 },
1390 "Empty": {
1391 "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use i t as the request\nor the response type of an API method. For instance:\n\n se rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty );\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
1392 "id": "Empty",
1393 "properties": {},
1394 "type": "object"
1395 },
1396 "HttpRequest": {
1397 "description": "A common proto for logging HTTP requests. Only conta ins semantics\ndefined by the HTTP specification. Product-specific logging\ninfo rmation MUST be defined in a separate message.",
1398 "id": "HttpRequest",
1399 "properties": {
1400 "cacheLookup": {
1401 "description": "Whether or not a cache lookup was attempted. ",
1402 "type": "boolean"
1403 },
1404 "responseSize": {
1405 "description": "The size of the HTTP response message sent b ack to the client, in bytes,\nincluding the response headers and the response bo dy.",
1406 "format": "int64",
1407 "type": "string"
1408 },
1409 "status": {
1410 "description": "The response code indicating the status of r esponse.\nExamples: 200, 404.",
1411 "format": "int32",
1412 "type": "integer"
1413 },
1414 "cacheValidatedWithOriginServer": {
1415 "description": "Whether or not the response was validated wi th the origin server before\nbeing served from cache. This field is only meaning ful if `cache_hit` is\nTrue.",
1416 "type": "boolean"
1417 },
1418 "referer": {
1419 "description": "The referer URL of the request, as defined i n\n[HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc26 16-sec14.html).",
1420 "type": "string"
1421 },
1422 "cacheHit": {
1423 "description": "Whether or not an entity was served from cac he\n(with or without validation).",
1424 "type": "boolean"
1425 },
1426 "requestUrl": {
1427 "description": "The scheme (http, https), the host name, the path and the query\nportion of the URL that was requested.\nExample: `\"http:// example.com/some/info?color=red\"`.",
1428 "type": "string"
1429 },
1430 "latency": {
1431 "description": "The request processing latency on the server , from the time the request was\nreceived until the response was sent.",
1432 "format": "google-duration",
1433 "type": "string"
1434 },
1435 "cacheFillBytes": {
1436 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a\ncache fill was attempted.",
1437 "format": "int64",
1438 "type": "string"
1439 },
1440 "requestMethod": {
1441 "description": "The request method. Examples: `\"GET\"`, `\" HEAD\"`, `\"PUT\"`, `\"POST\"`.",
1442 "type": "string"
1443 },
1444 "remoteIp": {
1445 "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP\nrequest. Examples: `\"192.168.1.1\"`, `\"FE80::0202:B3FF:F E1E:8329\"`.",
1446 "type": "string"
1447 },
1448 "serverIp": {
1449 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was\nsent to.",
1450 "type": "string"
1451 },
1452 "userAgent": {
1453 "description": "The user agent sent by the client. Example:\ n`\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\" `.",
1454 "type": "string"
1455 },
1456 "requestSize": {
1457 "description": "The size of the HTTP request message in byte s, including the request\nheaders and the request body.",
1458 "format": "int64",
1459 "type": "string"
1460 }
1461 },
1462 "type": "object"
1463 },
1464 "RequestLog": {
1465 "description": "Complete log information about a single HTTP request to an App Engine\napplication.",
1466 "id": "RequestLog",
1467 "properties": {
1468 "responseSize": {
1469 "description": "Size in bytes sent back to client by request .",
1470 "format": "int64",
1471 "type": "string"
1472 },
1473 "requestId": {
1474 "description": "Globally unique identifier for a request, wh ich is based on the request\nstart time. Request IDs for requests which started later will compare\ngreater as strings than those for requests which started ea rlier.",
1475 "type": "string"
1476 },
1477 "first": {
1478 "description": "Whether this is the first RequestLog entry f or this request. If an active\nrequest has several RequestLog entries written t o Cloud Logging, this field\nwill be set for one of them.",
1479 "type": "boolean"
1480 },
1481 "method": {
1482 "description": "Request method. Example: `\"GET\"`, `\"HEAD\ "`, `\"PUT\"`, `\"POST\"`, `\"DELETE\"`.",
1483 "type": "string"
1484 },
1485 "versionId": {
1486 "description": "Version of the application that handled this request.",
1487 "type": "string"
1488 },
1489 "status": {
1490 "description": "HTTP response status code. Example: 200, 404 .",
1491 "format": "int32",
1492 "type": "integer"
1493 },
1494 "wasLoadingRequest": {
1495 "description": "Whether this was a loading request for the i nstance.",
1496 "type": "boolean"
1497 },
1498 "ip": {
1499 "description": "Origin IP address.",
1500 "type": "string"
1501 },
1502 "nickname": {
1503 "description": "The logged-in user who made the request.\n\n Most likely, this is the part of the user's email before the `@` sign. The\nfie ld value is the same for different requests from the same user, but\ndifferent u sers can have similar names. This information is also\navailable to the applica tion via the App Engine Users API.\n\nThis field will be populated starting with App Engine 1.9.21.",
1504 "type": "string"
1505 },
1506 "taskQueueName": {
1507 "description": "Queue name of the request, in the case of an offline request.",
1508 "type": "string"
1509 },
1510 "pendingTime": {
1511 "description": "Time this request spent in the pending reque st queue.",
1512 "format": "google-duration",
1513 "type": "string"
1514 },
1515 "instanceIndex": {
1516 "description": "If the instance processing this request belo ngs to a manually scaled\nmodule, then this is the 0-based index of the instance . Otherwise, this\nvalue is -1.",
1517 "format": "int32",
1518 "type": "integer"
1519 },
1520 "sourceReference": {
1521 "description": "Source code for the application that handled this request. There can be\nmore than one source reference per deployed applica tion if source code is\ndistributed among multiple repositories.",
1522 "items": {
1523 "$ref": "SourceReference"
1524 },
1525 "type": "array"
1526 },
1527 "moduleId": {
1528 "description": "Module of the application that handled this request.",
1529 "type": "string"
1530 },
1531 "host": {
1532 "description": "Internet host and port number of the resourc e being requested.",
1533 "type": "string"
1534 },
1535 "latency": {
1536 "description": "Latency of the request.",
1537 "format": "google-duration",
1538 "type": "string"
1539 },
1540 "urlMapEntry": {
1541 "description": "File or class that handled the request.",
1542 "type": "string"
1543 },
1544 "endTime": {
1545 "description": "Time when the request finished.",
1546 "format": "google-datetime",
1547 "type": "string"
1548 },
1549 "line": {
1550 "description": "A list of log lines emitted by the applicati on while serving this request.",
1551 "items": {
1552 "$ref": "LogLine"
1553 },
1554 "type": "array"
1555 },
1556 "megaCycles": {
1557 "description": "Number of CPU megacycles used to process req uest.",
1558 "format": "int64",
1559 "type": "string"
1560 },
1561 "appId": {
1562 "description": "Application that handled this request.",
1563 "type": "string"
1564 },
1565 "traceId": {
1566 "description": "Cloud Trace identifier for this request.",
1567 "type": "string"
1568 },
1569 "taskName": {
1570 "description": "Task name of the request, in the case of an offline request.",
1571 "type": "string"
1572 },
1573 "cost": {
1574 "description": "An indication of the relative cost of servin g this request.",
1575 "format": "double",
1576 "type": "number"
1577 },
1578 "instanceId": {
1579 "description": "An identifier for the instance that handled the request.",
1580 "type": "string"
1581 },
1582 "startTime": {
1583 "description": "Time when the request started.",
1584 "format": "google-datetime",
1585 "type": "string"
1586 },
1587 "appEngineRelease": {
1588 "description": "App Engine release version.",
1589 "type": "string"
1590 },
1591 "resource": {
1592 "description": "Contains the path and query portion of the U RL that was requested. For\nexample, if the URL was \"http://example.com/app?nam e=val\", the resource\nwould be \"/app?name=val\". The fragment identifier, whi ch is identified by\nthe `#` character, is not included.",
1593 "type": "string"
1594 },
1595 "httpVersion": {
1596 "description": "HTTP version of request. Example: `\"HTTP/1. 1\"`.",
1597 "type": "string"
1598 },
1599 "referrer": {
1600 "description": "Referrer URL of request.",
1601 "type": "string"
1602 },
1603 "userAgent": {
1604 "description": "User agent that made the request.",
1605 "type": "string"
1606 },
1607 "finished": {
1608 "description": "Whether this request is finished or active." ,
1609 "type": "boolean"
1610 }
1611 },
1612 "type": "object"
1613 },
1614 "WriteLogEntriesResponse": {
1615 "description": "Result returned from WriteLogEntries.\nempty",
1616 "id": "WriteLogEntriesResponse",
1617 "properties": {},
1618 "type": "object"
1619 },
1620 "ListLogEntriesRequest": {
1621 "description": "The parameters to `ListLogEntries`.",
1622 "id": "ListLogEntriesRequest",
1623 "properties": {
1624 "filter": {
1625 "description": "Optional. A filter that chooses which log en tries to return. See [Advanced\nLogs Filters](/logging/docs/view/advanced_filte rs). Only log entries that\nmatch the filter are returned. An empty filter mat ches all log entries.",
1626 "type": "string"
1627 },
1628 "projectIds": {
1629 "description": "Deprecated. One or more project identifiers or project numbers from which\nto retrieve log entries. Examples: `\"my-project -1A\"`, `\"1234567890\"`. If\npresent, these project identifiers are converted t o resource format and\nadded to the list of resources in `resourceNames`. Caller s should use\n`resourceNames` rather than this parameter.",
1630 "items": {
1631 "type": "string"
1632 },
1633 "type": "array"
1634 },
1635 "resourceNames": {
1636 "description": "Required. One or more cloud resources from w hich to retrieve log entries.\nExample: `\"projects/my-project-1A\"`, `\"project s/1234567890\"`. Projects\nlisted in `projectIds` are added to this list.",
1637 "items": {
1638 "type": "string"
1639 },
1640 "type": "array"
1641 },
1642 "pageSize": {
1643 "description": "Optional. The maximum number of results to r eturn from this request.\nNon-positive values are ignored. The presence of `nex tPageToken` in the\nresponse indicates that more results might be available.",
1644 "format": "int32",
1645 "type": "integer"
1646 },
1647 "orderBy": {
1648 "description": "Optional. How the results should be sorted. Presently, the only permitted\nvalues are `\"timestamp asc\"` (default) and `\" timestamp desc\"`. The first\noption returns entries in order of increasing valu es of\n`LogEntry.timestamp` (oldest first), and the second option returns entrie s\nin order of decreasing timestamps (newest first). Entries with equal\ntimest amps are returned in order of `LogEntry.insertId`.",
1649 "type": "string"
1650 },
1651 "pageToken": {
1652 "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other m ethod\nparameters should be identical to those in the previous call.",
1653 "type": "string"
1654 }
1655 },
1656 "type": "object"
1657 }
1658 },
1659 "servicePath": "",
1660 "title": "Stackdriver Logging API",
1661 "version": "v2"
1662 }
OLDNEW
« no previous file with comments | « discovery/googleapis/identitytoolkit__v3.json ('k') | discovery/googleapis/manufacturers__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698