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

Side by Side Diff: discovery/googleapis_beta/logging__v2beta1.json

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 months 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
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform.read-only": { 5 "https://www.googleapis.com/auth/logging.write": {
6 "description": "View your data across Google Cloud Platform services" 6 "description": "Submit log data for your projects"
7 },
8 "https://www.googleapis.com/auth/logging.read": {
9 "description": "View log data for your projects"
7 }, 10 },
8 "https://www.googleapis.com/auth/logging.admin": { 11 "https://www.googleapis.com/auth/logging.admin": {
9 "description": "Administrate log data for your projects" 12 "description": "Administrate log data for your projects"
10 }, 13 },
11 "https://www.googleapis.com/auth/logging.read": { 14 "https://www.googleapis.com/auth/cloud-platform.read-only": {
12 "description": "View log data for your projects" 15 "description": "View your data across Google Cloud Platform services"
13 },
14 "https://www.googleapis.com/auth/logging.write": {
15 "description": "Submit log data for your projects"
16 }, 16 },
17 "https://www.googleapis.com/auth/cloud-platform": { 17 "https://www.googleapis.com/auth/cloud-platform": {
18 "description": "View and manage your data across Google Clou d Platform services" 18 "description": "View and manage your data across Google Clou d Platform services"
19 } 19 }
20 } 20 }
21 } 21 }
22 }, 22 },
23 "basePath": "", 23 "basePath": "",
24 "baseUrl": "https://logging.googleapis.com/", 24 "baseUrl": "https://logging.googleapis.com/",
25 "batchPath": "batch", 25 "batchPath": "batch",
26 "canonicalName": "Logging", 26 "canonicalName": "Logging",
27 "description": "Writes log entries and manages your Stackdriver Logging conf iguration.", 27 "description": "Writes log entries and manages your Stackdriver Logging conf iguration.",
28 "discoveryVersion": "v1", 28 "discoveryVersion": "v1",
29 "documentationLink": "https://cloud.google.com/logging/docs/", 29 "documentationLink": "https://cloud.google.com/logging/docs/",
30 "icons": { 30 "icons": {
31 "x16": "http://www.google.com/images/icons/product/search-16.gif", 31 "x16": "http://www.google.com/images/icons/product/search-16.gif",
32 "x32": "http://www.google.com/images/icons/product/search-32.gif" 32 "x32": "http://www.google.com/images/icons/product/search-32.gif"
33 }, 33 },
34 "id": "logging:v2beta1", 34 "id": "logging:v2beta1",
35 "kind": "discovery#restDescription", 35 "kind": "discovery#restDescription",
36 "name": "logging", 36 "name": "logging",
37 "ownerDomain": "google.com", 37 "ownerDomain": "google.com",
38 "ownerName": "Google", 38 "ownerName": "Google",
39 "parameters": { 39 "parameters": {
40 "upload_protocol": { 40 "fields": {
41 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 41 "description": "Selector specifying which fields to include in a par tial response.",
42 "location": "query", 42 "location": "query",
43 "type": "string" 43 "type": "string"
44 }, 44 },
45 "prettyPrint": {
46 "default": "true",
47 "description": "Returns response with indentations and line breaks." ,
48 "location": "query",
49 "type": "boolean"
50 },
51 "uploadType": { 45 "uploadType": {
52 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 46 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
53 "location": "query", 47 "location": "query",
54 "type": "string" 48 "type": "string"
55 }, 49 },
56 "fields": { 50 "callback": {
57 "description": "Selector specifying which fields to include in a par tial response.", 51 "description": "JSONP",
58 "location": "query", 52 "location": "query",
59 "type": "string" 53 "type": "string"
60 }, 54 },
61 "$.xgafv": { 55 "$.xgafv": {
62 "description": "V1 error format.", 56 "description": "V1 error format.",
63 "enum": [ 57 "enum": [
64 "1", 58 "1",
65 "2" 59 "2"
66 ], 60 ],
67 "enumDescriptions": [ 61 "enumDescriptions": [
68 "v1 error format", 62 "v1 error format",
69 "v2 error format" 63 "v2 error format"
70 ], 64 ],
71 "location": "query", 65 "location": "query",
72 "type": "string" 66 "type": "string"
73 }, 67 },
74 "callback": {
75 "description": "JSONP",
76 "location": "query",
77 "type": "string"
78 },
79 "alt": { 68 "alt": {
80 "default": "json", 69 "default": "json",
81 "description": "Data format for response.", 70 "description": "Data format for response.",
82 "enum": [ 71 "enum": [
83 "json", 72 "json",
84 "media", 73 "media",
85 "proto" 74 "proto"
86 ], 75 ],
87 "enumDescriptions": [ 76 "enumDescriptions": [
88 "Responses with Content-Type of application/json", 77 "Responses with Content-Type of application/json",
89 "Media download with context-dependent Content-Type", 78 "Media download with context-dependent Content-Type",
90 "Responses with Content-Type of application/x-protobuf" 79 "Responses with Content-Type of application/x-protobuf"
91 ], 80 ],
92 "location": "query", 81 "location": "query",
93 "type": "string" 82 "type": "string"
94 }, 83 },
84 "key": {
85 "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.",
86 "location": "query",
87 "type": "string"
88 },
95 "access_token": { 89 "access_token": {
96 "description": "OAuth access token.", 90 "description": "OAuth access token.",
97 "location": "query", 91 "location": "query",
98 "type": "string" 92 "type": "string"
99 }, 93 },
100 "key": {
101 "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.",
102 "location": "query",
103 "type": "string"
104 },
105 "quotaUser": { 94 "quotaUser": {
106 "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.", 95 "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.",
107 "location": "query", 96 "location": "query",
108 "type": "string" 97 "type": "string"
109 }, 98 },
110 "pp": { 99 "pp": {
111 "default": "true", 100 "default": "true",
112 "description": "Pretty-print response.", 101 "description": "Pretty-print response.",
113 "location": "query", 102 "location": "query",
114 "type": "boolean" 103 "type": "boolean"
115 }, 104 },
105 "bearer_token": {
106 "description": "OAuth bearer token.",
107 "location": "query",
108 "type": "string"
109 },
116 "oauth_token": { 110 "oauth_token": {
117 "description": "OAuth 2.0 token for the current user.", 111 "description": "OAuth 2.0 token for the current user.",
118 "location": "query", 112 "location": "query",
119 "type": "string" 113 "type": "string"
120 }, 114 },
121 "bearer_token": { 115 "upload_protocol": {
122 "description": "OAuth bearer token.", 116 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
123 "location": "query", 117 "location": "query",
124 "type": "string" 118 "type": "string"
119 },
120 "prettyPrint": {
121 "default": "true",
122 "description": "Returns response with indentations and line breaks." ,
123 "location": "query",
124 "type": "boolean"
125 } 125 }
126 }, 126 },
127 "protocol": "rest", 127 "protocol": "rest",
128 "resources": { 128 "resources": {
129 "monitoredResourceDescriptors": {
130 "methods": {
131 "list": {
132 "description": "Lists the descriptors for monitored resource types used by Stackdriver Logging.",
133 "httpMethod": "GET",
134 "id": "logging.monitoredResourceDescriptors.list",
135 "parameterOrder": [],
136 "parameters": {
137 "pageToken": {
138 "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other m ethod parameters should be identical to those in the previous call.",
139 "location": "query",
140 "type": "string"
141 },
142 "pageSize": {
143 "description": "Optional. The maximum number of resu lts to return from this request. Non-positive values are ignored. The presence o f nextPageToken in the response indicates that more results might be available." ,
144 "format": "int32",
145 "location": "query",
146 "type": "integer"
147 }
148 },
149 "path": "v2beta1/monitoredResourceDescriptors",
150 "response": {
151 "$ref": "ListMonitoredResourceDescriptorsResponse"
152 },
153 "scopes": [
154 "https://www.googleapis.com/auth/cloud-platform",
155 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
156 "https://www.googleapis.com/auth/logging.admin",
157 "https://www.googleapis.com/auth/logging.read"
158 ]
159 }
160 }
161 },
129 "organizations": { 162 "organizations": {
130 "resources": { 163 "resources": {
131 "logs": { 164 "logs": {
132 "methods": { 165 "methods": {
133 "delete": { 166 "delete": {
134 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.", 167 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.",
135 "httpMethod": "DELETE", 168 "httpMethod": "DELETE",
136 "id": "logging.organizations.logs.delete", 169 "id": "logging.organizations.logs.delete",
137 "parameterOrder": [ 170 "parameterOrder": [
138 "logName" 171 "logName"
(...skipping 17 matching lines...) Expand all
156 ] 189 ]
157 }, 190 },
158 "list": { 191 "list": {
159 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 192 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
160 "httpMethod": "GET", 193 "httpMethod": "GET",
161 "id": "logging.organizations.logs.list", 194 "id": "logging.organizations.logs.list",
162 "parameterOrder": [ 195 "parameterOrder": [
163 "parent" 196 "parent"
164 ], 197 ],
165 "parameters": { 198 "parameters": {
199 "parent": {
200 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
201 "location": "path",
202 "pattern": "^organizations/[^/]+$",
203 "required": true,
204 "type": "string"
205 },
166 "pageToken": { 206 "pageToken": {
167 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", 207 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
168 "location": "query", 208 "location": "query",
169 "type": "string" 209 "type": "string"
170 }, 210 },
171 "pageSize": { 211 "pageSize": {
172 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 212 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
173 "format": "int32", 213 "format": "int32",
174 "location": "query", 214 "location": "query",
175 "type": "integer" 215 "type": "integer"
176 },
177 "parent": {
178 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
179 "location": "path",
180 "pattern": "^organizations/[^/]+$",
181 "required": true,
182 "type": "string"
183 } 216 }
184 }, 217 },
185 "path": "v2beta1/{+parent}/logs", 218 "path": "v2beta1/{+parent}/logs",
186 "response": { 219 "response": {
187 "$ref": "ListLogsResponse" 220 "$ref": "ListLogsResponse"
188 }, 221 },
189 "scopes": [ 222 "scopes": [
190 "https://www.googleapis.com/auth/cloud-platform" , 223 "https://www.googleapis.com/auth/cloud-platform" ,
191 "https://www.googleapis.com/auth/cloud-platform. read-only", 224 "https://www.googleapis.com/auth/cloud-platform. read-only",
192 "https://www.googleapis.com/auth/logging.admin", 225 "https://www.googleapis.com/auth/logging.admin",
193 "https://www.googleapis.com/auth/logging.read" 226 "https://www.googleapis.com/auth/logging.read"
194 ] 227 ]
195 } 228 }
196 } 229 }
197 } 230 }
198 } 231 }
199 }, 232 },
200 "entries": { 233 "entries": {
201 "methods": { 234 "methods": {
235 "write": {
236 "description": "Writes log entries to Stackdriver Logging.",
237 "httpMethod": "POST",
238 "id": "logging.entries.write",
239 "parameterOrder": [],
240 "parameters": {},
241 "path": "v2beta1/entries:write",
242 "request": {
243 "$ref": "WriteLogEntriesRequest"
244 },
245 "response": {
246 "$ref": "WriteLogEntriesResponse"
247 },
248 "scopes": [
249 "https://www.googleapis.com/auth/cloud-platform",
250 "https://www.googleapis.com/auth/logging.admin",
251 "https://www.googleapis.com/auth/logging.write"
252 ]
253 },
202 "list": { 254 "list": {
203 "description": "Lists log entries. Use this method to retrie ve log entries from Stackdriver Logging. For ways to export log entries, see Exp orting Logs.", 255 "description": "Lists log entries. Use this method to retrie ve log entries from Stackdriver Logging. For ways to export log entries, see Exp orting Logs.",
204 "httpMethod": "POST", 256 "httpMethod": "POST",
205 "id": "logging.entries.list", 257 "id": "logging.entries.list",
206 "parameterOrder": [], 258 "parameterOrder": [],
207 "parameters": {}, 259 "parameters": {},
208 "path": "v2beta1/entries:list", 260 "path": "v2beta1/entries:list",
209 "request": { 261 "request": {
210 "$ref": "ListLogEntriesRequest" 262 "$ref": "ListLogEntriesRequest"
211 }, 263 },
212 "response": { 264 "response": {
213 "$ref": "ListLogEntriesResponse" 265 "$ref": "ListLogEntriesResponse"
214 }, 266 },
215 "scopes": [ 267 "scopes": [
216 "https://www.googleapis.com/auth/cloud-platform", 268 "https://www.googleapis.com/auth/cloud-platform",
217 "https://www.googleapis.com/auth/cloud-platform.read-onl y", 269 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
218 "https://www.googleapis.com/auth/logging.admin", 270 "https://www.googleapis.com/auth/logging.admin",
219 "https://www.googleapis.com/auth/logging.read" 271 "https://www.googleapis.com/auth/logging.read"
220 ] 272 ]
221 },
222 "write": {
223 "description": "Writes log entries to Stackdriver Logging.",
224 "httpMethod": "POST",
225 "id": "logging.entries.write",
226 "parameterOrder": [],
227 "parameters": {},
228 "path": "v2beta1/entries:write",
229 "request": {
230 "$ref": "WriteLogEntriesRequest"
231 },
232 "response": {
233 "$ref": "WriteLogEntriesResponse"
234 },
235 "scopes": [
236 "https://www.googleapis.com/auth/cloud-platform",
237 "https://www.googleapis.com/auth/logging.admin",
238 "https://www.googleapis.com/auth/logging.write"
239 ]
240 } 273 }
241 } 274 }
242 }, 275 },
243 "projects": { 276 "projects": {
244 "resources": { 277 "resources": {
245 "metrics": { 278 "sinks": {
246 "methods": { 279 "methods": {
247 "list": { 280 "update": {
248 "description": "Lists logs-based metrics.", 281 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.",
249 "httpMethod": "GET", 282 "httpMethod": "PUT",
250 "id": "logging.projects.metrics.list", 283 "id": "logging.projects.sinks.update",
284 "parameterOrder": [
285 "sinkName"
286 ],
287 "parameters": {
288 "uniqueWriterIdentity": {
289 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew values of this field:\nIf the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity.\nIf the ol d value is false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value is true and the new va lue is set to false or defaulted to false.",
290 "location": "query",
291 "type": "boolean"
292 },
293 "sinkName": {
294 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
295 "location": "path",
296 "pattern": "^projects/[^/]+/sinks/[^/]+$",
297 "required": true,
298 "type": "string"
299 }
300 },
301 "path": "v2beta1/{+sinkName}",
302 "request": {
303 "$ref": "LogSink"
304 },
305 "response": {
306 "$ref": "LogSink"
307 },
308 "scopes": [
309 "https://www.googleapis.com/auth/cloud-platform" ,
310 "https://www.googleapis.com/auth/logging.admin"
311 ]
312 },
313 "create": {
314 "description": "Creates a sink that exports specifie d log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
315 "httpMethod": "POST",
316 "id": "logging.projects.sinks.create",
251 "parameterOrder": [ 317 "parameterOrder": [
252 "parent" 318 "parent"
253 ], 319 ],
254 "parameters": { 320 "parameters": {
255 "pageToken": {
256 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
257 "location": "query",
258 "type": "string"
259 },
260 "pageSize": {
261 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
262 "format": "int32",
263 "location": "query",
264 "type": "integer"
265 },
266 "parent": { 321 "parent": {
267 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n", 322 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam ples: \"projects/my-logging-project\", \"organizations/123456789\".",
268 "location": "path", 323 "location": "path",
269 "pattern": "^projects/[^/]+$", 324 "pattern": "^projects/[^/]+$",
270 "required": true, 325 "required": true,
271 "type": "string" 326 "type": "string"
327 },
328 "uniqueWriterIdentity": {
329 "description": "Optional. Determines the kin d of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value r eturned as writer_identity is the same group or service account used by Stackdri ver Logging before the addition of writer identities to this API. The sink's des tination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only fo r exports from the new sink. For more information, see writer_identity in LogSin k.",
330 "location": "query",
331 "type": "boolean"
272 } 332 }
273 }, 333 },
274 "path": "v2beta1/{+parent}/metrics", 334 "path": "v2beta1/{+parent}/sinks",
335 "request": {
336 "$ref": "LogSink"
337 },
275 "response": { 338 "response": {
276 "$ref": "ListLogMetricsResponse" 339 "$ref": "LogSink"
340 },
341 "scopes": [
342 "https://www.googleapis.com/auth/cloud-platform" ,
343 "https://www.googleapis.com/auth/logging.admin"
344 ]
345 },
346 "delete": {
347 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
348 "httpMethod": "DELETE",
349 "id": "logging.projects.sinks.delete",
350 "parameterOrder": [
351 "sinkName"
352 ],
353 "parameters": {
354 "sinkName": {
355 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
356 "location": "path",
357 "pattern": "^projects/[^/]+/sinks/[^/]+$",
358 "required": true,
359 "type": "string"
360 }
361 },
362 "path": "v2beta1/{+sinkName}",
363 "response": {
364 "$ref": "Empty"
365 },
366 "scopes": [
367 "https://www.googleapis.com/auth/cloud-platform" ,
368 "https://www.googleapis.com/auth/logging.admin"
369 ]
370 },
371 "get": {
372 "description": "Gets a sink.",
373 "httpMethod": "GET",
374 "id": "logging.projects.sinks.get",
375 "parameterOrder": [
376 "sinkName"
377 ],
378 "parameters": {
379 "sinkName": {
380 "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK _ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project- id/sinks/my-sink-id\".",
381 "location": "path",
382 "pattern": "^projects/[^/]+/sinks/[^/]+$",
383 "required": true,
384 "type": "string"
385 }
386 },
387 "path": "v2beta1/{+sinkName}",
388 "response": {
389 "$ref": "LogSink"
277 }, 390 },
278 "scopes": [ 391 "scopes": [
279 "https://www.googleapis.com/auth/cloud-platform" , 392 "https://www.googleapis.com/auth/cloud-platform" ,
280 "https://www.googleapis.com/auth/cloud-platform. read-only", 393 "https://www.googleapis.com/auth/cloud-platform. read-only",
281 "https://www.googleapis.com/auth/logging.admin", 394 "https://www.googleapis.com/auth/logging.admin",
282 "https://www.googleapis.com/auth/logging.read" 395 "https://www.googleapis.com/auth/logging.read"
283 ] 396 ]
284 }, 397 },
285 "get": { 398 "list": {
286 "description": "Gets a logs-based metric.", 399 "description": "Lists sinks.",
287 "httpMethod": "GET", 400 "httpMethod": "GET",
288 "id": "logging.projects.metrics.get", 401 "id": "logging.projects.sinks.list",
289 "parameterOrder": [
290 "metricName"
291 ],
292 "parameters": {
293 "metricName": {
294 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
295 "location": "path",
296 "pattern": "^projects/[^/]+/metrics/[^/]+$",
297 "required": true,
298 "type": "string"
299 }
300 },
301 "path": "v2beta1/{+metricName}",
302 "response": {
303 "$ref": "LogMetric"
304 },
305 "scopes": [
306 "https://www.googleapis.com/auth/cloud-platform" ,
307 "https://www.googleapis.com/auth/cloud-platform. read-only",
308 "https://www.googleapis.com/auth/logging.admin",
309 "https://www.googleapis.com/auth/logging.read"
310 ]
311 },
312 "update": {
313 "description": "Creates or updates a logs-based metr ic.",
314 "httpMethod": "PUT",
315 "id": "logging.projects.metrics.update",
316 "parameterOrder": [
317 "metricName"
318 ],
319 "parameters": {
320 "metricName": {
321 "description": "The resource name of the met ric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metri c must be provided in the request and it's name field must be the same as [METRI C_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created .",
322 "location": "path",
323 "pattern": "^projects/[^/]+/metrics/[^/]+$",
324 "required": true,
325 "type": "string"
326 }
327 },
328 "path": "v2beta1/{+metricName}",
329 "request": {
330 "$ref": "LogMetric"
331 },
332 "response": {
333 "$ref": "LogMetric"
334 },
335 "scopes": [
336 "https://www.googleapis.com/auth/cloud-platform" ,
337 "https://www.googleapis.com/auth/logging.admin",
338 "https://www.googleapis.com/auth/logging.write"
339 ]
340 },
341 "create": {
342 "description": "Creates a logs-based metric.",
343 "httpMethod": "POST",
344 "id": "logging.projects.metrics.create",
345 "parameterOrder": [ 402 "parameterOrder": [
346 "parent" 403 "parent"
347 ], 404 ],
348 "parameters": { 405 "parameters": {
349 "parent": { 406 "parent": {
350 "description": "The resource name of the pro ject in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric m ust be provided in the request.", 407 "description": "Required. The parent resourc e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID] \"\n",
351 "location": "path", 408 "location": "path",
352 "pattern": "^projects/[^/]+$", 409 "pattern": "^projects/[^/]+$",
353 "required": true, 410 "required": true,
354 "type": "string"
355 }
356 },
357 "path": "v2beta1/{+parent}/metrics",
358 "request": {
359 "$ref": "LogMetric"
360 },
361 "response": {
362 "$ref": "LogMetric"
363 },
364 "scopes": [
365 "https://www.googleapis.com/auth/cloud-platform" ,
366 "https://www.googleapis.com/auth/logging.admin",
367 "https://www.googleapis.com/auth/logging.write"
368 ]
369 },
370 "delete": {
371 "description": "Deletes a logs-based metric.",
372 "httpMethod": "DELETE",
373 "id": "logging.projects.metrics.delete",
374 "parameterOrder": [
375 "metricName"
376 ],
377 "parameters": {
378 "metricName": {
379 "description": "The resource name of the met ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
380 "location": "path",
381 "pattern": "^projects/[^/]+/metrics/[^/]+$",
382 "required": true,
383 "type": "string"
384 }
385 },
386 "path": "v2beta1/{+metricName}",
387 "response": {
388 "$ref": "Empty"
389 },
390 "scopes": [
391 "https://www.googleapis.com/auth/cloud-platform" ,
392 "https://www.googleapis.com/auth/logging.admin",
393 "https://www.googleapis.com/auth/logging.write"
394 ]
395 }
396 }
397 },
398 "logs": {
399 "methods": {
400 "list": {
401 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
402 "httpMethod": "GET",
403 "id": "logging.projects.logs.list",
404 "parameterOrder": [
405 "parent"
406 ],
407 "parameters": {
408 "parent": {
409 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
410 "location": "path",
411 "pattern": "^projects/[^/]+$",
412 "required": true,
413 "type": "string" 411 "type": "string"
414 }, 412 },
415 "pageToken": { 413 "pageToken": {
416 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", 414 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
417 "location": "query", 415 "location": "query",
418 "type": "string" 416 "type": "string"
419 }, 417 },
420 "pageSize": { 418 "pageSize": {
421 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 419 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
422 "format": "int32", 420 "format": "int32",
423 "location": "query", 421 "location": "query",
424 "type": "integer" 422 "type": "integer"
425 } 423 }
426 }, 424 },
427 "path": "v2beta1/{+parent}/logs", 425 "path": "v2beta1/{+parent}/sinks",
428 "response": { 426 "response": {
429 "$ref": "ListLogsResponse" 427 "$ref": "ListSinksResponse"
430 }, 428 },
431 "scopes": [ 429 "scopes": [
432 "https://www.googleapis.com/auth/cloud-platform" , 430 "https://www.googleapis.com/auth/cloud-platform" ,
433 "https://www.googleapis.com/auth/cloud-platform. read-only", 431 "https://www.googleapis.com/auth/cloud-platform. read-only",
434 "https://www.googleapis.com/auth/logging.admin", 432 "https://www.googleapis.com/auth/logging.admin",
435 "https://www.googleapis.com/auth/logging.read" 433 "https://www.googleapis.com/auth/logging.read"
436 ] 434 ]
437 }, 435 }
436 }
437 },
438 "logs": {
439 "methods": {
438 "delete": { 440 "delete": {
439 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.", 441 "description": "Deletes all the log entries in a log . The log reappears if it receives new entries. Log entries written shortly befo re the delete operation might not be deleted.",
440 "httpMethod": "DELETE", 442 "httpMethod": "DELETE",
441 "id": "logging.projects.logs.delete", 443 "id": "logging.projects.logs.delete",
442 "parameterOrder": [ 444 "parameterOrder": [
443 "logName" 445 "logName"
444 ], 446 ],
445 "parameters": { 447 "parameters": {
446 "logName": { 448 "logName": {
447 "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/ [ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[ LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/ logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information abou t log names, see LogEntry.", 449 "description": "Required. The resource name of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/ [ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[ LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/ logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information abou t log names, see LogEntry.",
448 "location": "path", 450 "location": "path",
449 "pattern": "^projects/[^/]+/logs/[^/]+$", 451 "pattern": "^projects/[^/]+/logs/[^/]+$",
450 "required": true, 452 "required": true,
451 "type": "string" 453 "type": "string"
452 } 454 }
453 }, 455 },
454 "path": "v2beta1/{+logName}", 456 "path": "v2beta1/{+logName}",
455 "response": { 457 "response": {
456 "$ref": "Empty" 458 "$ref": "Empty"
457 }, 459 },
458 "scopes": [ 460 "scopes": [
459 "https://www.googleapis.com/auth/cloud-platform" , 461 "https://www.googleapis.com/auth/cloud-platform" ,
460 "https://www.googleapis.com/auth/logging.admin" 462 "https://www.googleapis.com/auth/logging.admin"
461 ] 463 ]
462 } 464 },
463 }
464 },
465 "sinks": {
466 "methods": {
467 "list": { 465 "list": {
468 "description": "Lists sinks.", 466 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
469 "httpMethod": "GET", 467 "httpMethod": "GET",
470 "id": "logging.projects.sinks.list", 468 "id": "logging.projects.logs.list",
471 "parameterOrder": [ 469 "parameterOrder": [
472 "parent" 470 "parent"
473 ], 471 ],
474 "parameters": { 472 "parameters": {
475 "parent": { 473 "parent": {
476 "description": "Required. The parent resourc e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID] \"\n", 474 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
477 "location": "path", 475 "location": "path",
478 "pattern": "^projects/[^/]+$", 476 "pattern": "^projects/[^/]+$",
479 "required": true, 477 "required": true,
480 "type": "string" 478 "type": "string"
481 }, 479 },
482 "pageToken": { 480 "pageToken": {
483 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", 481 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
484 "location": "query", 482 "location": "query",
485 "type": "string" 483 "type": "string"
486 }, 484 },
487 "pageSize": { 485 "pageSize": {
488 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 486 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
489 "format": "int32", 487 "format": "int32",
490 "location": "query", 488 "location": "query",
491 "type": "integer" 489 "type": "integer"
492 } 490 }
493 }, 491 },
494 "path": "v2beta1/{+parent}/sinks", 492 "path": "v2beta1/{+parent}/logs",
495 "response": { 493 "response": {
496 "$ref": "ListSinksResponse" 494 "$ref": "ListLogsResponse"
497 }, 495 },
498 "scopes": [ 496 "scopes": [
499 "https://www.googleapis.com/auth/cloud-platform" , 497 "https://www.googleapis.com/auth/cloud-platform" ,
500 "https://www.googleapis.com/auth/cloud-platform. read-only", 498 "https://www.googleapis.com/auth/cloud-platform. read-only",
501 "https://www.googleapis.com/auth/logging.admin", 499 "https://www.googleapis.com/auth/logging.admin",
502 "https://www.googleapis.com/auth/logging.read" 500 "https://www.googleapis.com/auth/logging.read"
503 ] 501 ]
504 }, 502 }
505 "get": { 503 }
506 "description": "Gets a sink.", 504 },
507 "httpMethod": "GET", 505 "metrics": {
508 "id": "logging.projects.sinks.get", 506 "methods": {
507 "delete": {
508 "description": "Deletes a logs-based metric.",
509 "httpMethod": "DELETE",
510 "id": "logging.projects.metrics.delete",
509 "parameterOrder": [ 511 "parameterOrder": [
510 "sinkName" 512 "metricName"
511 ], 513 ],
512 "parameters": { 514 "parameters": {
513 "sinkName": { 515 "metricName": {
514 "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK _ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project- id/sinks/my-sink-id\".", 516 "description": "The resource name of the met ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
515 "location": "path", 517 "location": "path",
516 "pattern": "^projects/[^/]+/sinks/[^/]+$", 518 "pattern": "^projects/[^/]+/metrics/[^/]+$",
517 "required": true, 519 "required": true,
518 "type": "string" 520 "type": "string"
519 } 521 }
520 }, 522 },
521 "path": "v2beta1/{+sinkName}", 523 "path": "v2beta1/{+metricName}",
522 "response": { 524 "response": {
523 "$ref": "LogSink" 525 "$ref": "Empty"
524 }, 526 },
525 "scopes": [ 527 "scopes": [
526 "https://www.googleapis.com/auth/cloud-platform" , 528 "https://www.googleapis.com/auth/cloud-platform" ,
529 "https://www.googleapis.com/auth/logging.admin",
530 "https://www.googleapis.com/auth/logging.write"
531 ]
532 },
533 "get": {
534 "description": "Gets a logs-based metric.",
535 "httpMethod": "GET",
536 "id": "logging.projects.metrics.get",
537 "parameterOrder": [
538 "metricName"
539 ],
540 "parameters": {
541 "metricName": {
542 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
543 "location": "path",
544 "pattern": "^projects/[^/]+/metrics/[^/]+$",
545 "required": true,
546 "type": "string"
547 }
548 },
549 "path": "v2beta1/{+metricName}",
550 "response": {
551 "$ref": "LogMetric"
552 },
553 "scopes": [
554 "https://www.googleapis.com/auth/cloud-platform" ,
527 "https://www.googleapis.com/auth/cloud-platform. read-only", 555 "https://www.googleapis.com/auth/cloud-platform. read-only",
528 "https://www.googleapis.com/auth/logging.admin", 556 "https://www.googleapis.com/auth/logging.admin",
529 "https://www.googleapis.com/auth/logging.read" 557 "https://www.googleapis.com/auth/logging.read"
530 ] 558 ]
531 }, 559 },
532 "update": { 560 "list": {
533 "description": "Updates a sink. If the named sink do esn't exist, then this method is identical to sinks.create. If the named sink do es exist, then this method replaces the following fields in the existing sink wi th values from the new sink: destination, filter, output_version_format, start_t ime, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", 561 "description": "Lists logs-based metrics.",
534 "httpMethod": "PUT", 562 "httpMethod": "GET",
535 "id": "logging.projects.sinks.update", 563 "id": "logging.projects.metrics.list",
536 "parameterOrder": [
537 "sinkName"
538 ],
539 "parameters": {
540 "sinkName": {
541 "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".",
542 "location": "path",
543 "pattern": "^projects/[^/]+/sinks/[^/]+$",
544 "required": true,
545 "type": "string"
546 },
547 "uniqueWriterIdentity": {
548 "description": "Optional. See sinks.create f or a description of this field. When updating a sink, the effect of this field o n the value of writer_identity in the updated sink depends on both the old and n ew values of this field:\nIf the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity.\nIf the ol d value is false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value is true and the new va lue is set to false or defaulted to false.",
549 "location": "query",
550 "type": "boolean"
551 }
552 },
553 "path": "v2beta1/{+sinkName}",
554 "request": {
555 "$ref": "LogSink"
556 },
557 "response": {
558 "$ref": "LogSink"
559 },
560 "scopes": [
561 "https://www.googleapis.com/auth/cloud-platform" ,
562 "https://www.googleapis.com/auth/logging.admin"
563 ]
564 },
565 "create": {
566 "description": "Creates a sink that exports specifie d log entries to a destination. The export of newly-ingested log entries begins immediately, unless the current time is outside the sink's start and end times o r the sink's writer_identity is not permitted to write to the destination. A sin k can export log entries only from the resource owning the sink.",
567 "httpMethod": "POST",
568 "id": "logging.projects.sinks.create",
569 "parameterOrder": [ 564 "parameterOrder": [
570 "parent" 565 "parent"
571 ], 566 ],
572 "parameters": { 567 "parameters": {
573 "parent": { 568 "parent": {
574 "description": "Required. The resource in wh ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam ples: \"projects/my-logging-project\", \"organizations/123456789\".", 569 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
575 "location": "path", 570 "location": "path",
576 "pattern": "^projects/[^/]+$", 571 "pattern": "^projects/[^/]+$",
577 "required": true, 572 "required": true,
578 "type": "string" 573 "type": "string"
579 }, 574 },
580 "uniqueWriterIdentity": { 575 "pageToken": {
581 "description": "Optional. Determines the kin d of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value r eturned as writer_identity is the same group or service account used by Stackdri ver Logging before the addition of writer identities to this API. The sink's des tination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only fo r exports from the new sink. For more information, see writer_identity in LogSin k.", 576 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
582 "location": "query", 577 "location": "query",
583 "type": "boolean" 578 "type": "string"
579 },
580 "pageSize": {
581 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
582 "format": "int32",
583 "location": "query",
584 "type": "integer"
584 } 585 }
585 }, 586 },
586 "path": "v2beta1/{+parent}/sinks", 587 "path": "v2beta1/{+parent}/metrics",
587 "request": {
588 "$ref": "LogSink"
589 },
590 "response": { 588 "response": {
591 "$ref": "LogSink" 589 "$ref": "ListLogMetricsResponse"
592 }, 590 },
593 "scopes": [ 591 "scopes": [
594 "https://www.googleapis.com/auth/cloud-platform" , 592 "https://www.googleapis.com/auth/cloud-platform" ,
595 "https://www.googleapis.com/auth/logging.admin" 593 "https://www.googleapis.com/auth/cloud-platform. read-only",
594 "https://www.googleapis.com/auth/logging.admin",
595 "https://www.googleapis.com/auth/logging.read"
596 ] 596 ]
597 }, 597 },
598 "delete": { 598 "update": {
599 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.", 599 "description": "Creates or updates a logs-based metr ic.",
600 "httpMethod": "DELETE", 600 "httpMethod": "PUT",
601 "id": "logging.projects.sinks.delete", 601 "id": "logging.projects.metrics.update",
602 "parameterOrder": [ 602 "parameterOrder": [
603 "sinkName" 603 "metricName"
604 ], 604 ],
605 "parameters": { 605 "parameters": {
606 "sinkName": { 606 "metricName": {
607 "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifie r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID] /sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\" folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m y-sink-id\".", 607 "description": "The resource name of the met ric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metri c must be provided in the request and it's name field must be the same as [METRI C_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created .",
608 "location": "path", 608 "location": "path",
609 "pattern": "^projects/[^/]+/sinks/[^/]+$", 609 "pattern": "^projects/[^/]+/metrics/[^/]+$",
610 "required": true, 610 "required": true,
611 "type": "string" 611 "type": "string"
612 } 612 }
613 }, 613 },
614 "path": "v2beta1/{+sinkName}", 614 "path": "v2beta1/{+metricName}",
615 "request": {
616 "$ref": "LogMetric"
617 },
615 "response": { 618 "response": {
616 "$ref": "Empty" 619 "$ref": "LogMetric"
617 }, 620 },
618 "scopes": [ 621 "scopes": [
619 "https://www.googleapis.com/auth/cloud-platform" , 622 "https://www.googleapis.com/auth/cloud-platform" ,
620 "https://www.googleapis.com/auth/logging.admin" 623 "https://www.googleapis.com/auth/logging.admin",
624 "https://www.googleapis.com/auth/logging.write"
625 ]
626 },
627 "create": {
628 "description": "Creates a logs-based metric.",
629 "httpMethod": "POST",
630 "id": "logging.projects.metrics.create",
631 "parameterOrder": [
632 "parent"
633 ],
634 "parameters": {
635 "parent": {
636 "description": "The resource name of the pro ject in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric m ust be provided in the request.",
637 "location": "path",
638 "pattern": "^projects/[^/]+$",
639 "required": true,
640 "type": "string"
641 }
642 },
643 "path": "v2beta1/{+parent}/metrics",
644 "request": {
645 "$ref": "LogMetric"
646 },
647 "response": {
648 "$ref": "LogMetric"
649 },
650 "scopes": [
651 "https://www.googleapis.com/auth/cloud-platform" ,
652 "https://www.googleapis.com/auth/logging.admin",
653 "https://www.googleapis.com/auth/logging.write"
621 ] 654 ]
622 } 655 }
623 } 656 }
624 } 657 }
625 } 658 }
626 }, 659 },
627 "billingAccounts": { 660 "billingAccounts": {
628 "resources": { 661 "resources": {
629 "logs": { 662 "logs": {
630 "methods": { 663 "methods": {
(...skipping 23 matching lines...) Expand all
654 ] 687 ]
655 }, 688 },
656 "list": { 689 "list": {
657 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 690 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
658 "httpMethod": "GET", 691 "httpMethod": "GET",
659 "id": "logging.billingAccounts.logs.list", 692 "id": "logging.billingAccounts.logs.list",
660 "parameterOrder": [ 693 "parameterOrder": [
661 "parent" 694 "parent"
662 ], 695 ],
663 "parameters": { 696 "parameters": {
697 "parent": {
698 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
699 "location": "path",
700 "pattern": "^billingAccounts/[^/]+$",
701 "required": true,
702 "type": "string"
703 },
664 "pageToken": { 704 "pageToken": {
665 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.", 705 "description": "Optional. If present, then r etrieve the next batch of results from the preceding call to this method. pageTo ken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.",
666 "location": "query", 706 "location": "query",
667 "type": "string" 707 "type": "string"
668 }, 708 },
669 "pageSize": { 709 "pageSize": {
670 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.", 710 "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The pr esence of nextPageToken in the response indicates that more results might be ava ilable.",
671 "format": "int32", 711 "format": "int32",
672 "location": "query", 712 "location": "query",
673 "type": "integer" 713 "type": "integer"
674 },
675 "parent": {
676 "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID ]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n",
677 "location": "path",
678 "pattern": "^billingAccounts/[^/]+$",
679 "required": true,
680 "type": "string"
681 } 714 }
682 }, 715 },
683 "path": "v2beta1/{+parent}/logs", 716 "path": "v2beta1/{+parent}/logs",
684 "response": { 717 "response": {
685 "$ref": "ListLogsResponse" 718 "$ref": "ListLogsResponse"
686 }, 719 },
687 "scopes": [ 720 "scopes": [
688 "https://www.googleapis.com/auth/cloud-platform" , 721 "https://www.googleapis.com/auth/cloud-platform" ,
689 "https://www.googleapis.com/auth/cloud-platform. read-only", 722 "https://www.googleapis.com/auth/cloud-platform. read-only",
690 "https://www.googleapis.com/auth/logging.admin", 723 "https://www.googleapis.com/auth/logging.admin",
691 "https://www.googleapis.com/auth/logging.read" 724 "https://www.googleapis.com/auth/logging.read"
692 ] 725 ]
693 } 726 }
694 } 727 }
695 } 728 }
696 } 729 }
697 },
698 "monitoredResourceDescriptors": {
699 "methods": {
700 "list": {
701 "description": "Lists the descriptors for monitored resource types used by Stackdriver Logging.",
702 "httpMethod": "GET",
703 "id": "logging.monitoredResourceDescriptors.list",
704 "parameterOrder": [],
705 "parameters": {
706 "pageToken": {
707 "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other m ethod parameters should be identical to those in the previous call.",
708 "location": "query",
709 "type": "string"
710 },
711 "pageSize": {
712 "description": "Optional. The maximum number of resu lts to return from this request. Non-positive values are ignored. The presence o f nextPageToken in the response indicates that more results might be available." ,
713 "format": "int32",
714 "location": "query",
715 "type": "integer"
716 }
717 },
718 "path": "v2beta1/monitoredResourceDescriptors",
719 "response": {
720 "$ref": "ListMonitoredResourceDescriptorsResponse"
721 },
722 "scopes": [
723 "https://www.googleapis.com/auth/cloud-platform",
724 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
725 "https://www.googleapis.com/auth/logging.admin",
726 "https://www.googleapis.com/auth/logging.read"
727 ]
728 }
729 }
730 } 730 }
731 }, 731 },
732 "revision": "20170605", 732 "revision": "20170626",
733 "rootUrl": "https://logging.googleapis.com/", 733 "rootUrl": "https://logging.googleapis.com/",
734 "schemas": { 734 "schemas": {
735 "WriteLogEntriesRequest": { 735 "ListLogEntriesRequest": {
736 "description": "The parameters to WriteLogEntries.", 736 "description": "The parameters to ListLogEntries.",
737 "id": "WriteLogEntriesRequest", 737 "id": "ListLogEntriesRequest",
738 "properties": { 738 "properties": {
739 "pageToken": {
740 "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.",
741 "type": "string"
742 },
743 "pageSize": {
744 "description": "Optional. The maximum number of results to r eturn from this request. Non-positive values are ignored. The presence of next_p age_token in the response indicates that more results might be available.",
745 "format": "int32",
746 "type": "integer"
747 },
748 "orderBy": {
749 "description": "Optional. How the results should be sorted. Presently, the only permitted values are \"timestamp asc\" (default) and \"times tamp desc\". The first option returns entries in order of increasing values of L ogEntry.timestamp (oldest first), and the second option returns entries in order of decreasing timestamps (newest first). Entries with equal timestamps are retu rned in order of their insert_id values.",
750 "type": "string"
751 },
752 "resourceNames": {
753 "description": "Required. Names of one or more parent resour ces from which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizati ons/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FO LDER_ID]\"\nProjects listed in the project_ids field are added to this list.",
754 "items": {
755 "type": "string"
756 },
757 "type": "array"
758 },
759 "projectIds": {
760 "description": "Deprecated. Use resource_names instead. One or more project identifiers or project numbers from which to retrieve log entrie s. Example: \"my-project-1A\". If present, these project identifiers are convert ed to resource name format and added to the list of resources in resource_names. ",
761 "items": {
762 "type": "string"
763 },
764 "type": "array"
765 },
766 "filter": {
767 "description": "Optional. A filter that chooses which log en tries to return. See Advanced Logs Filters. Only log entries that match the filt er are returned. An empty filter matches all log entries in the resources listed in resource_names. Referencing a parent resource that is not listed in resource _names will cause the filter to return no results. The maximum length of the fil ter is 20000 characters.",
768 "type": "string"
769 }
770 },
771 "type": "object"
772 },
773 "RequestLog": {
774 "description": "Complete log information about a single HTTP request to an App Engine application.",
775 "id": "RequestLog",
776 "properties": {
777 "taskName": {
778 "description": "Task name of the request, in the case of an offline request.",
779 "type": "string"
780 },
781 "urlMapEntry": {
782 "description": "File or class that handled the request.",
783 "type": "string"
784 },
785 "instanceIndex": {
786 "description": "If the instance processing this request belo ngs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1.",
787 "format": "int32",
788 "type": "integer"
789 },
790 "finished": {
791 "description": "Whether this request is finished or active." ,
792 "type": "boolean"
793 },
794 "host": {
795 "description": "Internet host and port number of the resourc e being requested.",
796 "type": "string"
797 },
798 "httpVersion": {
799 "description": "HTTP version of request. Example: \"HTTP/1.1 \".",
800 "type": "string"
801 },
802 "startTime": {
803 "description": "Time when the request started.",
804 "format": "google-datetime",
805 "type": "string"
806 },
807 "latency": {
808 "description": "Latency of the request.",
809 "format": "google-duration",
810 "type": "string"
811 },
812 "ip": {
813 "description": "Origin IP address.",
814 "type": "string"
815 },
816 "appId": {
817 "description": "Application that handled this request.",
818 "type": "string"
819 },
820 "appEngineRelease": {
821 "description": "App Engine release version.",
822 "type": "string"
823 },
824 "method": {
825 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
826 "type": "string"
827 },
828 "cost": {
829 "description": "An indication of the relative cost of servin g this request.",
830 "format": "double",
831 "type": "number"
832 },
833 "instanceId": {
834 "description": "An identifier for the instance that handled the request.",
835 "type": "string"
836 },
837 "megaCycles": {
838 "description": "Number of CPU megacycles used to process req uest.",
839 "format": "int64",
840 "type": "string"
841 },
842 "first": {
843 "description": "Whether this is the first RequestLog entry f or this request. If an active request has several RequestLog entries written to Stackdriver Logging, then this field will be set for one of them.",
844 "type": "boolean"
845 },
846 "versionId": {
847 "description": "Version of the application that handled this request.",
848 "type": "string"
849 },
850 "moduleId": {
851 "description": "Module of the application that handled this request.",
852 "type": "string"
853 },
854 "endTime": {
855 "description": "Time when the request finished.",
856 "format": "google-datetime",
857 "type": "string"
858 },
859 "userAgent": {
860 "description": "User agent that made the request.",
861 "type": "string"
862 },
863 "wasLoadingRequest": {
864 "description": "Whether this was a loading request for the i nstance.",
865 "type": "boolean"
866 },
867 "sourceReference": {
868 "description": "Source code for the application that handled this request. There can be more than one source reference per deployed applicat ion if source code is distributed among multiple repositories.",
869 "items": {
870 "$ref": "SourceReference"
871 },
872 "type": "array"
873 },
874 "responseSize": {
875 "description": "Size in bytes sent back to client by request .",
876 "format": "int64",
877 "type": "string"
878 },
879 "traceId": {
880 "description": "Stackdriver Trace identifier for this reques t.",
881 "type": "string"
882 },
883 "line": {
884 "description": "A list of log lines emitted by the applicati on while serving this request.",
885 "items": {
886 "$ref": "LogLine"
887 },
888 "type": "array"
889 },
890 "taskQueueName": {
891 "description": "Queue name of the request, in the case of an offline request.",
892 "type": "string"
893 },
894 "referrer": {
895 "description": "Referrer URL of request.",
896 "type": "string"
897 },
898 "requestId": {
899 "description": "Globally unique identifier for a request, wh ich is based on the request start time. Request IDs for requests which started l ater will compare greater as strings than those for requests which started earli er.",
900 "type": "string"
901 },
902 "nickname": {
903 "description": "The logged-in user who made the request.Most likely, this is the part of the user's email before the @ sign. The field value is the same for different requests from the same user, but different users can have similar names. This information is also available to the application via th e App Engine Users API.This field will be populated starting with App Engine 1.9 .21.",
904 "type": "string"
905 },
906 "status": {
907 "description": "HTTP response status code. Example: 200, 404 .",
908 "format": "int32",
909 "type": "integer"
910 },
911 "resource": {
912 "description": "Contains the path and query portion of the U RL that was requested. For example, if the URL was \"http://example.com/app?name =val\", the resource would be \"/app?name=val\". The fragment identifier, which is identified by the # character, is not included.",
913 "type": "string"
914 },
915 "pendingTime": {
916 "description": "Time this request spent in the pending reque st queue.",
917 "format": "google-duration",
918 "type": "string"
919 }
920 },
921 "type": "object"
922 },
923 "ListMonitoredResourceDescriptorsResponse": {
924 "description": "Result returned from ListMonitoredResourceDescriptor s.",
925 "id": "ListMonitoredResourceDescriptorsResponse",
926 "properties": {
927 "nextPageToken": {
928 "description": "If there might be more results than those ap pearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken." ,
929 "type": "string"
930 },
931 "resourceDescriptors": {
932 "description": "A list of resource descriptors.",
933 "items": {
934 "$ref": "MonitoredResourceDescriptor"
935 },
936 "type": "array"
937 }
938 },
939 "type": "object"
940 },
941 "SourceReference": {
942 "description": "A reference to a particular snapshot of the source t ree used to build and deploy an application.",
943 "id": "SourceReference",
944 "properties": {
945 "revisionId": {
946 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "",
947 "type": "string"
948 },
949 "repository": {
950 "description": "Optional. A URI string identifying the repos itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
951 "type": "string"
952 }
953 },
954 "type": "object"
955 },
956 "LogEntryOperation": {
957 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.",
958 "id": "LogEntryOperation",
959 "properties": {
960 "last": {
961 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
962 "type": "boolean"
963 },
964 "id": {
965 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.",
966 "type": "string"
967 },
968 "first": {
969 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.",
970 "type": "boolean"
971 },
972 "producer": {
973 "description": "Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for produce r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".",
974 "type": "string"
975 }
976 },
977 "type": "object"
978 },
979 "LogMetric": {
980 "description": "Describes a logs-based metric. The value of the metr ic is the number of log entries that match a logs filter in a given time interva l.",
981 "id": "LogMetric",
982 "properties": {
983 "version": {
984 "description": "Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter express ion. When a value for this field is missing, the default value of V2 should be a ssumed.",
985 "enum": [
986 "V2",
987 "V1"
988 ],
989 "enumDescriptions": [
990 "Stackdriver Logging API v2.",
991 "Stackdriver Logging API v1."
992 ],
993 "type": "string"
994 },
995 "filter": {
996 "description": "Required. An advanced logs filter which is u sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\ "\nThe maximum length of the filter is 20000 characters.",
997 "type": "string"
998 },
999 "name": {
1000 "description": "Required. The client-assigned metric identif ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite d to 100 characters and can include only the following characters: A-Z, a-z, 0-9 , and the special characters _-.,+!*',()%/. The forward-slash character (/) deno tes a hierarchy of name pieces, and it cannot be the first character of the name .The metric identifier in this field must not be URL-encoded (https://en.wikiped ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".",
1001 "type": "string"
1002 },
1003 "description": {
1004 "description": "Optional. A description of this metric, whic h is used in documentation.",
1005 "type": "string"
1006 }
1007 },
1008 "type": "object"
1009 },
1010 "WriteLogEntriesResponse": {
1011 "description": "Result returned from WriteLogEntries. empty",
1012 "id": "WriteLogEntriesResponse",
1013 "properties": {},
1014 "type": "object"
1015 },
1016 "MonitoredResource": {
1017 "description": "An object representing a resource that can be used f or monitoring, logging, billing, or other purposes. Examples include virtual mac hine instances, databases, and storage devices such as disks. The type field ide ntifies a MonitoredResourceDescriptor object that describes the resource's schem a. Information in the labels field identifies the actual resource and its attrib utes according to the schema. For example, a particular Compute Engine VM instan ce could be represented by the following object, because the MonitoredResourceDe scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type \": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n",
1018 "id": "MonitoredResource",
1019 "properties": {
1020 "type": {
1021 "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For exa mple, the type of a Compute Engine VM instance is gce_instance.",
1022 "type": "string"
1023 },
739 "labels": { 1024 "labels": {
740 "additionalProperties": { 1025 "additionalProperties": {
741 "type": "string" 1026 "type": "string"
742 }, 1027 },
743 "description": "Optional. Default labels that are added to t he labels field of all log entries in entries. If a log entry already has a labe l with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.", 1028 "description": "Required. Values for all of the labels liste d in the associated monitored resource descriptor. For example, Compute Engine V M instances use the labels \"project_id\", \"instance_id\", and \"zone\".",
744 "type": "object" 1029 "type": "object"
745 },
746 "resource": {
747 "$ref": "MonitoredResource",
748 "description": "Optional. A default monitored resource objec t that is assigned to all log entries in entries that do not specify a value for resource. Example:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\ ": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry ."
749 },
750 "logName": {
751 "description": "Optional. A default log resource name that i s assigned to all log entries in entries that do not specify a value for log_nam e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l ogs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folder s/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"proj ects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourc emanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
752 "type": "string"
753 },
754 "entries": {
755 "description": "Required. The log entries to write. Values s upplied for the fields log_name, resource, and labels in this entries.write requ est are inserted into those log entries in this list that do not provide their o wn values.Stackdriver Logging also creates and inserts values for timestamp and insert_id if the entries do not provide them. The created insert_id for the N'th entry in this list will be greater than earlier entries and less than later ent ries. Otherwise, the order of log entries in this list does not matter.To improv e throughput and to avoid exceeding the quota limit for calls to entries.write, you should write multiple log entries at once rather than calling this method fo r each individual log entry.",
756 "items": {
757 "$ref": "LogEntry"
758 },
759 "type": "array"
760 },
761 "partialSuccess": {
762 "description": "Optional. Whether valid entries should be wr itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI ED errors. If any entry is not written, then the response status is the error as sociated with one of the failed entries and the response includes error details keyed by the entries' zero-based index in the entries.write method.",
763 "type": "boolean"
764 } 1030 }
765 }, 1031 },
766 "type": "object" 1032 "type": "object"
767 }, 1033 },
768 "LogSink": { 1034 "LogSink": {
769 "description": "Describes a sink used to export log entries to one o f the following destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a Cloud Pub/Sub topic. A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing accou nt, or folder.", 1035 "description": "Describes a sink used to export log entries to one o f the following destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a Cloud Pub/Sub topic. A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing accou nt, or folder.",
770 "id": "LogSink", 1036 "id": "LogSink",
771 "properties": { 1037 "properties": {
772 "name": { 1038 "name": {
773 "description": "Required. The client-assigned sink identifie r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden tifiers are limited to 100 characters and can include only the following charact ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per iods.", 1039 "description": "Required. The client-assigned sink identifie r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden tifiers are limited to 100 characters and can include only the following charact ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per iods.",
774 "type": "string" 1040 "type": "string"
775 }, 1041 },
776 "includeChildren": { 1042 "includeChildren": {
777 "description": "Optional. This field applies only to sinks o wned by organizations and folders. If the field is false, the default, only the logs owned by the sink's parent resource are available for export. If the field is true, then logs from all the projects, folders, and billing accounts containe d in the sink's parent resource are also available for export. Whether a particu lar log entry from the children is exported depends on the sink's filter express ion. For example, if this field is true, then the filter resource.type=gce_insta nce would export all Compute Engine VM instance log entries from all projects in the sink's parent. To only export entries from certain child projects, filter o n the project part of the log name:\nlogName:(\"projects/test-project1/\" OR \"p rojects/test-project2/\") AND\nresource.type=gce_instance\n", 1043 "description": "Optional. This field applies only to sinks o wned by organizations and folders. If the field is false, the default, only the logs owned by the sink's parent resource are available for export. If the field is true, then logs from all the projects, folders, and billing accounts containe d in the sink's parent resource are also available for export. Whether a particu lar log entry from the children is exported depends on the sink's filter express ion. For example, if this field is true, then the filter resource.type=gce_insta nce would export all Compute Engine VM instance log entries from all projects in the sink's parent. To only export entries from certain child projects, filter o n the project part of the log name:\nlogName:(\"projects/test-project1/\" OR \"p rojects/test-project2/\") AND\nresource.type=gce_instance\n",
778 "type": "boolean" 1044 "type": "boolean"
779 }, 1045 },
1046 "destination": {
1047 "description": "Required. The export destination:\n\"storage .googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/ datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPI C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per mission to write to the destination or else the log entries are not exported. Fo r more information, see Exporting Logs With Sinks.",
1048 "type": "string"
1049 },
780 "filter": { 1050 "filter": {
781 "description": "Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. The filter must use the log entry format specified by the out put_version_format parameter. For example, in the v2 format:\nlogName=\"projects /[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n", 1051 "description": "Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. The filter must use the log entry format specified by the out put_version_format parameter. For example, in the v2 format:\nlogName=\"projects /[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n",
782 "type": "string" 1052 "type": "string"
783 }, 1053 },
784 "destination": {
785 "description": "Required. The export destination:\n\"storage .googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/ datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPI C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per mission to write to the destination or else the log entries are not exported. Fo r more information, see Exporting Logs With Sinks.",
786 "type": "string"
787 },
788 "endTime": { 1054 "endTime": {
789 "description": "Optional. The time at which this sink will s top exporting log entries. Log entries are exported only if their timestamp is e arlier than the end time. If this field is not supplied, there is no end time. I f both a start time and an end time are provided, then the end time must be late r than the start time.", 1055 "description": "Optional. The time at which this sink will s top exporting log entries. Log entries are exported only if their timestamp is e arlier than the end time. If this field is not supplied, there is no end time. I f both a start time and an end time are provided, then the end time must be late r than the start time.",
790 "format": "google-datetime", 1056 "format": "google-datetime",
791 "type": "string" 1057 "type": "string"
792 }, 1058 },
793 "startTime": { 1059 "startTime": {
794 "description": "Optional. The time at which this sink will b egin exporting log entries. Log entries are exported only if their timestamp is not earlier than the start time. The default value of this field is the time the sink is created or updated.", 1060 "description": "Optional. The time at which this sink will b egin exporting log entries. Log entries are exported only if their timestamp is not earlier than the start time. The default value of this field is the time the sink is created or updated.",
795 "format": "google-datetime", 1061 "format": "google-datetime",
796 "type": "string" 1062 "type": "string"
797 }, 1063 },
(...skipping 11 matching lines...) Expand all
809 "enumDescriptions": [ 1075 "enumDescriptions": [
810 "An unspecified format version that will default to V2." , 1076 "An unspecified format version that will default to V2." ,
811 "LogEntry version 2 format.", 1077 "LogEntry version 2 format.",
812 "LogEntry version 1 format." 1078 "LogEntry version 1 format."
813 ], 1079 ],
814 "type": "string" 1080 "type": "string"
815 } 1081 }
816 }, 1082 },
817 "type": "object" 1083 "type": "object"
818 }, 1084 },
1085 "WriteLogEntriesRequest": {
1086 "description": "The parameters to WriteLogEntries.",
1087 "id": "WriteLogEntriesRequest",
1088 "properties": {
1089 "entries": {
1090 "description": "Required. The log entries to write. Values s upplied for the fields log_name, resource, and labels in this entries.write requ est are inserted into those log entries in this list that do not provide their o wn values.Stackdriver Logging also creates and inserts values for timestamp and insert_id if the entries do not provide them. The created insert_id for the N'th entry in this list will be greater than earlier entries and less than later ent ries. Otherwise, the order of log entries in this list does not matter.To improv e throughput and to avoid exceeding the quota limit for calls to entries.write, you should write multiple log entries at once rather than calling this method fo r each individual log entry.",
1091 "items": {
1092 "$ref": "LogEntry"
1093 },
1094 "type": "array"
1095 },
1096 "logName": {
1097 "description": "Optional. A default log resource name that i s assigned to all log entries in entries that do not specify a value for log_nam e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l ogs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folder s/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"proj ects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourc emanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.",
1098 "type": "string"
1099 },
1100 "partialSuccess": {
1101 "description": "Optional. Whether valid entries should be wr itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI ED errors. If any entry is not written, then the response status is the error as sociated with one of the failed entries and the response includes error details keyed by the entries' zero-based index in the entries.write method.",
1102 "type": "boolean"
1103 },
1104 "labels": {
1105 "additionalProperties": {
1106 "type": "string"
1107 },
1108 "description": "Optional. Default labels that are added to t he labels field of all log entries in entries. If a log entry already has a labe l with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.",
1109 "type": "object"
1110 },
1111 "resource": {
1112 "$ref": "MonitoredResource",
1113 "description": "Optional. A default monitored resource objec t that is assigned to all log entries in entries that do not specify a value for resource. Example:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\ ": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry ."
1114 }
1115 },
1116 "type": "object"
1117 },
819 "ListLogsResponse": { 1118 "ListLogsResponse": {
820 "description": "Result returned from ListLogs.", 1119 "description": "Result returned from ListLogs.",
821 "id": "ListLogsResponse", 1120 "id": "ListLogsResponse",
822 "properties": { 1121 "properties": {
823 "nextPageToken": { 1122 "nextPageToken": {
824 "description": "If there might be more results than those ap pearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken." , 1123 "description": "If there might be more results than those ap pearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken." ,
825 "type": "string" 1124 "type": "string"
826 }, 1125 },
827 "logNames": { 1126 "logNames": {
828 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".", 1127 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".",
(...skipping 20 matching lines...) Expand all
849 }, 1148 },
850 "type": "array" 1149 "type": "array"
851 } 1150 }
852 }, 1151 },
853 "type": "object" 1152 "type": "object"
854 }, 1153 },
855 "HttpRequest": { 1154 "HttpRequest": {
856 "description": "A common proto for logging HTTP requests. Only conta ins semantics defined by the HTTP specification. Product-specific logging inform ation MUST be defined in a separate message.", 1155 "description": "A common proto for logging HTTP requests. Only conta ins semantics defined by the HTTP specification. Product-specific logging inform ation MUST be defined in a separate message.",
857 "id": "HttpRequest", 1156 "id": "HttpRequest",
858 "properties": { 1157 "properties": {
859 "userAgent": {
860 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
861 "type": "string"
862 },
863 "latency": {
864 "description": "The request processing latency on the server , from the time the request was received until the response was sent.",
865 "format": "google-duration",
866 "type": "string"
867 },
868 "cacheFillBytes": {
869 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.",
870 "format": "int64",
871 "type": "string"
872 },
873 "requestMethod": {
874 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".",
875 "type": "string"
876 },
877 "responseSize": {
878 "description": "The size of the HTTP response message sent b ack to the client, in bytes, including the response headers and the response bod y.",
879 "format": "int64",
880 "type": "string"
881 },
882 "requestSize": {
883 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.",
884 "format": "int64",
885 "type": "string"
886 },
887 "requestUrl": { 1158 "requestUrl": {
888 "description": "The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: \"http://exa mple.com/some/info?color=red\".", 1159 "description": "The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: \"http://exa mple.com/some/info?color=red\".",
889 "type": "string" 1160 "type": "string"
890 }, 1161 },
1162 "remoteIp": {
1163 "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E: 8329\".",
1164 "type": "string"
1165 },
891 "serverIp": { 1166 "serverIp": {
892 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.", 1167 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
893 "type": "string" 1168 "type": "string"
894 }, 1169 },
895 "remoteIp": {
896 "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E: 8329\".",
897 "type": "string"
898 },
899 "cacheLookup": { 1170 "cacheLookup": {
900 "description": "Whether or not a cache lookup was attempted. ", 1171 "description": "Whether or not a cache lookup was attempted. ",
901 "type": "boolean" 1172 "type": "boolean"
902 }, 1173 },
903 "cacheHit": { 1174 "cacheHit": {
904 "description": "Whether or not an entity was served from cac he (with or without validation).", 1175 "description": "Whether or not an entity was served from cac he (with or without validation).",
905 "type": "boolean" 1176 "type": "boolean"
906 }, 1177 },
907 "cacheValidatedWithOriginServer": { 1178 "cacheValidatedWithOriginServer": {
908 "description": "Whether or not the response was validated wi th the origin server before being served from cache. This field is only meaningf ul if cache_hit is True.", 1179 "description": "Whether or not the response was validated wi th the origin server before being served from cache. This field is only meaningf ul if cache_hit is True.",
909 "type": "boolean" 1180 "type": "boolean"
910 }, 1181 },
911 "status": { 1182 "status": {
912 "description": "The response code indicating the status of r esponse. Examples: 200, 404.", 1183 "description": "The response code indicating the status of r esponse. Examples: 200, 404.",
913 "format": "int32", 1184 "format": "int32",
914 "type": "integer" 1185 "type": "integer"
915 }, 1186 },
916 "referer": { 1187 "referer": {
917 "description": "The referer URL of the request, as defined i n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616 -sec14.html).", 1188 "description": "The referer URL of the request, as defined i n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616 -sec14.html).",
918 "type": "string" 1189 "type": "string"
1190 },
1191 "userAgent": {
1192 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
1193 "type": "string"
1194 },
1195 "latency": {
1196 "description": "The request processing latency on the server , from the time the request was received until the response was sent.",
1197 "format": "google-duration",
1198 "type": "string"
1199 },
1200 "cacheFillBytes": {
1201 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.",
1202 "format": "int64",
1203 "type": "string"
1204 },
1205 "requestMethod": {
1206 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".",
1207 "type": "string"
1208 },
1209 "responseSize": {
1210 "description": "The size of the HTTP response message sent b ack to the client, in bytes, including the response headers and the response bod y.",
1211 "format": "int64",
1212 "type": "string"
1213 },
1214 "requestSize": {
1215 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.",
1216 "format": "int64",
1217 "type": "string"
919 } 1218 }
920 }, 1219 },
921 "type": "object" 1220 "type": "object"
922 }, 1221 },
923 "LabelDescriptor": { 1222 "LabelDescriptor": {
924 "description": "A description of a label.", 1223 "description": "A description of a label.",
925 "id": "LabelDescriptor", 1224 "id": "LabelDescriptor",
926 "properties": { 1225 "properties": {
927 "key": { 1226 "key": {
928 "description": "The label key.", 1227 "description": "The label key.",
(...skipping 17 matching lines...) Expand all
946 ], 1245 ],
947 "type": "string" 1246 "type": "string"
948 } 1247 }
949 }, 1248 },
950 "type": "object" 1249 "type": "object"
951 }, 1250 },
952 "MonitoredResourceDescriptor": { 1251 "MonitoredResourceDescriptor": {
953 "description": "An object that describes the schema of a MonitoredRe source object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of \"gce_i nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id entify particular VM instances.Different APIs can support different monitored re source types. APIs generally provide a list method that returns the monitored re source descriptors used by the API.", 1252 "description": "An object that describes the schema of a MonitoredRe source object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of \"gce_i nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id entify particular VM instances.Different APIs can support different monitored re source types. APIs generally provide a list method that returns the monitored re source descriptors used by the API.",
954 "id": "MonitoredResourceDescriptor", 1253 "id": "MonitoredResourceDescriptor",
955 "properties": { 1254 "properties": {
1255 "labels": {
1256 "description": "Required. A set of labels used to describe i nstances of this monitored resource type. For example, an individual Google Clou d SQL database is identified by values for the labels \"database_id\" and \"zone \".",
1257 "items": {
1258 "$ref": "LabelDescriptor"
1259 },
1260 "type": "array"
1261 },
1262 "name": {
1263 "description": "Optional. The resource name of the monitored resource descriptor: \"projects/{project_id}/monitoredResourceDescriptors/{type }\" where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format \"monitored ResourceDescriptors/{type}\".",
1264 "type": "string"
1265 },
1266 "description": {
1267 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.",
1268 "type": "string"
1269 },
1270 "displayName": {
1271 "description": "Optional. A concise name for the monitored r esource type that might be displayed in user interfaces. It should be a Title Ca sed Noun Phrase, without any article or other determiners. For example, \"Google Cloud SQL Database\".",
1272 "type": "string"
1273 },
956 "type": { 1274 "type": {
957 "description": "Required. The monitored resource type. For e xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.", 1275 "description": "Required. The monitored resource type. For e xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.",
958 "type": "string" 1276 "type": "string"
959 },
960 "labels": {
961 "description": "Required. A set of labels used to describe i nstances of this monitored resource type. For example, an individual Google Clou d SQL database is identified by values for the labels \"database_id\" and \"zone \".",
962 "items": {
963 "$ref": "LabelDescriptor"
964 },
965 "type": "array"
966 },
967 "name": {
968 "description": "Optional. The resource name of the monitored resource descriptor: \"projects/{project_id}/monitoredResourceDescriptors/{type }\" where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format \"monitored ResourceDescriptors/{type}\".",
969 "type": "string"
970 },
971 "displayName": {
972 "description": "Optional. A concise name for the monitored r esource type that might be displayed in user interfaces. It should be a Title Ca sed Noun Phrase, without any article or other determiners. For example, \"Google Cloud SQL Database\".",
973 "type": "string"
974 },
975 "description": {
976 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.",
977 "type": "string"
978 } 1277 }
979 }, 1278 },
980 "type": "object" 1279 "type": "object"
981 }, 1280 },
982 "LogEntrySourceLocation": { 1281 "LogEntrySourceLocation": {
983 "description": "Additional information about the source code locatio n that produced the log entry.", 1282 "description": "Additional information about the source code locatio n that produced the log entry.",
984 "id": "LogEntrySourceLocation", 1283 "id": "LogEntrySourceLocation",
985 "properties": { 1284 "properties": {
986 "file": {
987 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
988 "type": "string"
989 },
990 "function": { 1285 "function": {
991 "description": "Optional. Human-readable name of the functio n or method being invoked, with optional context such as the class or package na me. This information may be used in contexts such as the logs viewer, where a fi le and line number are less meaningful. The format can vary by language. For exa mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python). ", 1286 "description": "Optional. Human-readable name of the functio n or method being invoked, with optional context such as the class or package na me. This information may be used in contexts such as the logs viewer, where a fi le and line number are less meaningful. The format can vary by language. For exa mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python). ",
992 "type": "string" 1287 "type": "string"
993 }, 1288 },
994 "line": { 1289 "line": {
995 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.", 1290 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.",
996 "format": "int64", 1291 "format": "int64",
997 "type": "string" 1292 "type": "string"
1293 },
1294 "file": {
1295 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
1296 "type": "string"
998 } 1297 }
999 }, 1298 },
1000 "type": "object" 1299 "type": "object"
1001 }, 1300 },
1002 "ListLogEntriesResponse": { 1301 "ListLogEntriesResponse": {
1003 "description": "Result returned from ListLogEntries.", 1302 "description": "Result returned from ListLogEntries.",
1004 "id": "ListLogEntriesResponse", 1303 "id": "ListLogEntriesResponse",
1005 "properties": { 1304 "properties": {
1305 "nextPageToken": {
1306 "description": "If there might be more results than those ap pearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.I f a value for next_page_token appears and the entries field is empty, it means t hat the search found no log entries so far but it did not have time to search al l the possible log entries. Retry the method with this value for page_token to c ontinue the search. Alternatively, consider speeding up the search by changing y our filter to specify a single log name or resource type, or to narrow the time range of the search.",
1307 "type": "string"
1308 },
1006 "entries": { 1309 "entries": {
1007 "description": "A list of log entries.", 1310 "description": "A list of log entries.",
1008 "items": { 1311 "items": {
1009 "$ref": "LogEntry" 1312 "$ref": "LogEntry"
1010 }, 1313 },
1011 "type": "array" 1314 "type": "array"
1012 },
1013 "nextPageToken": {
1014 "description": "If there might be more results than those ap pearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.I f a value for next_page_token appears and the entries field is empty, it means t hat the search found no log entries so far but it did not have time to search al l the possible log entries. Retry the method with this value for page_token to c ontinue the search. Alternatively, consider speeding up the search by changing y our filter to specify a single log name or resource type, or to narrow the time range of the search.",
1015 "type": "string"
1016 } 1315 }
1017 }, 1316 },
1018 "type": "object" 1317 "type": "object"
1019 }, 1318 },
1020 "LogLine": { 1319 "LogLine": {
1021 "description": "Application log line emitted while processing a requ est.", 1320 "description": "Application log line emitted while processing a requ est.",
1022 "id": "LogLine", 1321 "id": "LogLine",
1023 "properties": { 1322 "properties": {
1323 "logMessage": {
1324 "description": "App-provided log message.",
1325 "type": "string"
1326 },
1024 "severity": { 1327 "severity": {
1025 "description": "Severity of this log entry.", 1328 "description": "Severity of this log entry.",
1026 "enum": [ 1329 "enum": [
1027 "DEFAULT", 1330 "DEFAULT",
1028 "DEBUG", 1331 "DEBUG",
1029 "INFO", 1332 "INFO",
1030 "NOTICE", 1333 "NOTICE",
1031 "WARNING", 1334 "WARNING",
1032 "ERROR", 1335 "ERROR",
1033 "CRITICAL", 1336 "CRITICAL",
1034 "ALERT", 1337 "ALERT",
1035 "EMERGENCY" 1338 "EMERGENCY"
1036 ], 1339 ],
1037 "enumDescriptions": [ 1340 "enumDescriptions": [
1038 "(0) The log entry has no assigned severity level.", 1341 "(0) The log entry has no assigned severity level.",
1039 "(100) Debug or trace information.", 1342 "(100) Debug or trace information.",
1040 "(200) Routine information, such as ongoing status or pe rformance.", 1343 "(200) Routine information, such as ongoing status or pe rformance.",
1041 "(300) Normal but significant events, such as start up, shut down, or a configuration change.", 1344 "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
1042 "(400) Warning events might cause problems.", 1345 "(400) Warning events might cause problems.",
1043 "(500) Error events are likely to cause problems.", 1346 "(500) Error events are likely to cause problems.",
1044 "(600) Critical events cause more severe problems or out ages.", 1347 "(600) Critical events cause more severe problems or out ages.",
1045 "(700) A person must take an action immediately.", 1348 "(700) A person must take an action immediately.",
1046 "(800) One or more systems are unusable." 1349 "(800) One or more systems are unusable."
1047 ], 1350 ],
1048 "type": "string" 1351 "type": "string"
1049 }, 1352 },
1050 "logMessage": {
1051 "description": "App-provided log message.",
1052 "type": "string"
1053 },
1054 "sourceLocation": { 1353 "sourceLocation": {
1055 "$ref": "SourceLocation", 1354 "$ref": "SourceLocation",
1056 "description": "Where in the source code this log message wa s written." 1355 "description": "Where in the source code this log message wa s written."
1057 }, 1356 },
1058 "time": { 1357 "time": {
1059 "description": "Approximate time when this log entry was mad e.", 1358 "description": "Approximate time when this log entry was mad e.",
1060 "format": "google-datetime", 1359 "format": "google-datetime",
1061 "type": "string" 1360 "type": "string"
1062 } 1361 }
1063 }, 1362 },
1064 "type": "object" 1363 "type": "object"
1065 }, 1364 },
1066 "ListLogMetricsResponse": { 1365 "ListLogMetricsResponse": {
1067 "description": "Result returned from ListLogMetrics.", 1366 "description": "Result returned from ListLogMetrics.",
1068 "id": "ListLogMetricsResponse", 1367 "id": "ListLogMetricsResponse",
1069 "properties": { 1368 "properties": {
1369 "nextPageToken": {
1370 "description": "If there might be more results than appear i n this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.",
1371 "type": "string"
1372 },
1070 "metrics": { 1373 "metrics": {
1071 "description": "A list of logs-based metrics.", 1374 "description": "A list of logs-based metrics.",
1072 "items": { 1375 "items": {
1073 "$ref": "LogMetric" 1376 "$ref": "LogMetric"
1074 }, 1377 },
1075 "type": "array" 1378 "type": "array"
1076 },
1077 "nextPageToken": {
1078 "description": "If there might be more results than appear i n this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken.",
1079 "type": "string"
1080 } 1379 }
1081 }, 1380 },
1082 "type": "object" 1381 "type": "object"
1083 }, 1382 },
1084 "Empty": { 1383 "Empty": {
1085 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Fo o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J SON representation for Empty is empty JSON object {}.", 1384 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Fo o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J SON representation for Empty is empty JSON object {}.",
1086 "id": "Empty", 1385 "id": "Empty",
1087 "properties": {}, 1386 "properties": {},
1088 "type": "object" 1387 "type": "object"
1089 }, 1388 },
1090 "LogEntry": { 1389 "LogEntry": {
1091 "description": "An individual entry in a log.", 1390 "description": "An individual entry in a log.",
1092 "id": "LogEntry", 1391 "id": "LogEntry",
1093 "properties": { 1392 "properties": {
1094 "receiveTimestamp": {
1095 "description": "Output only. The time the log entry was rece ived by Stackdriver Logging.",
1096 "format": "google-datetime",
1097 "type": "string"
1098 },
1099 "timestamp": {
1100 "description": "Optional. The time the event described by th e log entry occurred. If omitted in a new log entry, Stackdriver Logging will in sert the time the log entry is received. Stackdriver Logging might reject log en tries whose time stamps are more than a couple of hours in the future. Log entri es with time stamps in the past are accepted.",
1101 "format": "google-datetime",
1102 "type": "string"
1103 },
1104 "logName": {
1105 "description": "Required. The resource name of the log to wh ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza tions/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/ logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-enc oded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemana ger.googleapis.com%2Factivity\". [LOG_ID] must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatib ility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leadi ng slash will never return any results.",
1106 "type": "string"
1107 },
1108 "resource": {
1109 "$ref": "MonitoredResource",
1110 "description": "Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error."
1111 },
1112 "httpRequest": {
1113 "$ref": "HttpRequest",
1114 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
1115 },
1116 "jsonPayload": {
1117 "additionalProperties": {
1118 "description": "Properties of the object.",
1119 "type": "any"
1120 },
1121 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.",
1122 "type": "object"
1123 },
1124 "insertId": {
1125 "description": "Optional. A unique identifier for the log en try. If you provide a value, then Stackdriver Logging considers other log entrie s in the same project, with the same timestamp, and with the same insert_id to b e duplicates which can be removed. If omitted in new log entries, then Stackdriv er Logging will insert its own unique identifier. The insert_id is used to order log entries that have the same timestamp value.",
1126 "type": "string"
1127 },
1128 "operation": {
1129 "$ref": "LogEntryOperation",
1130 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable."
1131 },
1132 "textPayload": {
1133 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
1134 "type": "string"
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 Google Cloud Platform services use this field for their log en try payloads.",
1142 "type": "object"
1143 },
1144 "labels": { 1393 "labels": {
1145 "additionalProperties": { 1394 "additionalProperties": {
1146 "type": "string" 1395 "type": "string"
1147 }, 1396 },
1148 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.", 1397 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.",
1149 "type": "object" 1398 "type": "object"
1150 }, 1399 },
1151 "trace": { 1400 "trace": {
1152 "description": "Optional. Resource name of the trace associa ted with the log entry, if any. If it contains a relative resource name, the nam e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr ojectid/traces/06796866738c859f2f19b7cfb3214824", 1401 "description": "Optional. Resource name of the trace associa ted with the log entry, if any. If it contains a relative resource name, the nam e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr ojectid/traces/06796866738c859f2f19b7cfb3214824",
1153 "type": "string" 1402 "type": "string"
(...skipping 20 matching lines...) Expand all
1174 "(500) Error events are likely to cause problems.", 1423 "(500) Error events are likely to cause problems.",
1175 "(600) Critical events cause more severe problems or out ages.", 1424 "(600) Critical events cause more severe problems or out ages.",
1176 "(700) A person must take an action immediately.", 1425 "(700) A person must take an action immediately.",
1177 "(800) One or more systems are unusable." 1426 "(800) One or more systems are unusable."
1178 ], 1427 ],
1179 "type": "string" 1428 "type": "string"
1180 }, 1429 },
1181 "sourceLocation": { 1430 "sourceLocation": {
1182 "$ref": "LogEntrySourceLocation", 1431 "$ref": "LogEntrySourceLocation",
1183 "description": "Optional. Source code location information a ssociated with the log entry, if any." 1432 "description": "Optional. Source code location information a ssociated with the log entry, if any."
1433 },
1434 "receiveTimestamp": {
1435 "description": "Output only. The time the log entry was rece ived by Stackdriver Logging.",
1436 "format": "google-datetime",
1437 "type": "string"
1438 },
1439 "timestamp": {
1440 "description": "Optional. The time the event described by th e log entry occurred. If omitted in a new log entry, Stackdriver Logging will in sert the time the log entry is received. Stackdriver Logging might reject log en tries whose time stamps are more than a couple of hours in the future. Log entri es with time stamps in the past are accepted.",
1441 "format": "google-datetime",
1442 "type": "string"
1443 },
1444 "logName": {
1445 "description": "Required. The resource name of the log to wh ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza tions/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/ logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-enc oded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemana ger.googleapis.com%2Factivity\". [LOG_ID] must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatib ility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leadi ng slash will never return any results.",
1446 "type": "string"
1447 },
1448 "resource": {
1449 "$ref": "MonitoredResource",
1450 "description": "Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error."
1451 },
1452 "httpRequest": {
1453 "$ref": "HttpRequest",
1454 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
1455 },
1456 "jsonPayload": {
1457 "additionalProperties": {
1458 "description": "Properties of the object.",
1459 "type": "any"
1460 },
1461 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.",
1462 "type": "object"
1463 },
1464 "insertId": {
1465 "description": "Optional. A unique identifier for the log en try. If you provide a value, then Stackdriver Logging considers other log entrie s in the same project, with the same timestamp, and with the same insert_id to b e duplicates which can be removed. If omitted in new log entries, then Stackdriv er Logging will insert its own unique identifier. The insert_id is used to order log entries that have the same timestamp value.",
1466 "type": "string"
1467 },
1468 "operation": {
1469 "$ref": "LogEntryOperation",
1470 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable."
1471 },
1472 "textPayload": {
1473 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
1474 "type": "string"
1475 },
1476 "protoPayload": {
1477 "additionalProperties": {
1478 "description": "Properties of the object. Contains field @type with type URL.",
1479 "type": "any"
1480 },
1481 "description": "The log entry payload, represented as a prot ocol buffer. Some Google Cloud Platform services use this field for their log en try payloads.",
1482 "type": "object"
1184 } 1483 }
1185 }, 1484 },
1186 "type": "object" 1485 "type": "object"
1187 }, 1486 },
1188 "SourceLocation": { 1487 "SourceLocation": {
1189 "description": "Specifies a location in a source code file.", 1488 "description": "Specifies a location in a source code file.",
1190 "id": "SourceLocation", 1489 "id": "SourceLocation",
1191 "properties": { 1490 "properties": {
1192 "file": { 1491 "file": {
1193 "description": "Source file name. Depending on the runtime e nvironment, this might be a simple name or a fully-qualified name.", 1492 "description": "Source file name. Depending on the runtime e nvironment, this might be a simple name or a fully-qualified name.",
1194 "type": "string" 1493 "type": "string"
1195 }, 1494 },
1196 "functionName": { 1495 "functionName": {
1197 "description": "Human-readable name of the function or metho d being invoked, with optional context such as the class or package name. This i nformation is used in contexts such as the logs viewer, where a file and line nu mber are less meaningful. The format can vary by language. For example: qual.if. ied.Class.method (Java), dir/package.func (Go), function (Python).", 1496 "description": "Human-readable name of the function or metho d being invoked, with optional context such as the class or package name. This i nformation is used in contexts such as the logs viewer, where a file and line nu mber are less meaningful. The format can vary by language. For example: qual.if. ied.Class.method (Java), dir/package.func (Go), function (Python).",
1198 "type": "string" 1497 "type": "string"
1199 }, 1498 },
1200 "line": { 1499 "line": {
1201 "description": "Line within the source file.", 1500 "description": "Line within the source file.",
1202 "format": "int64", 1501 "format": "int64",
1203 "type": "string" 1502 "type": "string"
1204 } 1503 }
1205 }, 1504 },
1206 "type": "object" 1505 "type": "object"
1207 },
1208 "ListLogEntriesRequest": {
1209 "description": "The parameters to ListLogEntries.",
1210 "id": "ListLogEntriesRequest",
1211 "properties": {
1212 "pageSize": {
1213 "description": "Optional. The maximum number of results to r eturn from this request. Non-positive values are ignored. The presence of next_p age_token in the response indicates that more results might be available.",
1214 "format": "int32",
1215 "type": "integer"
1216 },
1217 "orderBy": {
1218 "description": "Optional. How the results should be sorted. Presently, the only permitted values are \"timestamp asc\" (default) and \"times tamp desc\". The first option returns entries in order of increasing values of L ogEntry.timestamp (oldest first), and the second option returns entries in order of decreasing timestamps (newest first). Entries with equal timestamps are retu rned in order of their insert_id values.",
1219 "type": "string"
1220 },
1221 "resourceNames": {
1222 "description": "Required. Names of one or more parent resour ces from which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizati ons/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FO LDER_ID]\"\nProjects listed in the project_ids field are added to this list.",
1223 "items": {
1224 "type": "string"
1225 },
1226 "type": "array"
1227 },
1228 "filter": {
1229 "description": "Optional. A filter that chooses which log en tries to return. See Advanced Logs Filters. Only log entries that match the filt er are returned. An empty filter matches all log entries in the resources listed in resource_names. Referencing a parent resource that is not listed in resource _names will cause the filter to return no results. The maximum length of the fil ter is 20000 characters.",
1230 "type": "string"
1231 },
1232 "projectIds": {
1233 "description": "Deprecated. Use resource_names instead. One or more project identifiers or project numbers from which to retrieve log entrie s. Example: \"my-project-1A\". If present, these project identifiers are convert ed to resource name format and added to the list of resources in resource_names. ",
1234 "items": {
1235 "type": "string"
1236 },
1237 "type": "array"
1238 },
1239 "pageToken": {
1240 "description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.",
1241 "type": "string"
1242 }
1243 },
1244 "type": "object"
1245 },
1246 "RequestLog": {
1247 "description": "Complete log information about a single HTTP request to an App Engine application.",
1248 "id": "RequestLog",
1249 "properties": {
1250 "megaCycles": {
1251 "description": "Number of CPU megacycles used to process req uest.",
1252 "format": "int64",
1253 "type": "string"
1254 },
1255 "first": {
1256 "description": "Whether this is the first RequestLog entry f or this request. If an active request has several RequestLog entries written to Stackdriver Logging, then this field will be set for one of them.",
1257 "type": "boolean"
1258 },
1259 "versionId": {
1260 "description": "Version of the application that handled this request.",
1261 "type": "string"
1262 },
1263 "moduleId": {
1264 "description": "Module of the application that handled this request.",
1265 "type": "string"
1266 },
1267 "endTime": {
1268 "description": "Time when the request finished.",
1269 "format": "google-datetime",
1270 "type": "string"
1271 },
1272 "userAgent": {
1273 "description": "User agent that made the request.",
1274 "type": "string"
1275 },
1276 "wasLoadingRequest": {
1277 "description": "Whether this was a loading request for the i nstance.",
1278 "type": "boolean"
1279 },
1280 "sourceReference": {
1281 "description": "Source code for the application that handled this request. There can be more than one source reference per deployed applicat ion if source code is distributed among multiple repositories.",
1282 "items": {
1283 "$ref": "SourceReference"
1284 },
1285 "type": "array"
1286 },
1287 "responseSize": {
1288 "description": "Size in bytes sent back to client by request .",
1289 "format": "int64",
1290 "type": "string"
1291 },
1292 "traceId": {
1293 "description": "Stackdriver Trace identifier for this reques t.",
1294 "type": "string"
1295 },
1296 "line": {
1297 "description": "A list of log lines emitted by the applicati on while serving this request.",
1298 "items": {
1299 "$ref": "LogLine"
1300 },
1301 "type": "array"
1302 },
1303 "referrer": {
1304 "description": "Referrer URL of request.",
1305 "type": "string"
1306 },
1307 "taskQueueName": {
1308 "description": "Queue name of the request, in the case of an offline request.",
1309 "type": "string"
1310 },
1311 "requestId": {
1312 "description": "Globally unique identifier for a request, wh ich is based on the request start time. Request IDs for requests which started l ater will compare greater as strings than those for requests which started earli er.",
1313 "type": "string"
1314 },
1315 "nickname": {
1316 "description": "The logged-in user who made the request.Most likely, this is the part of the user's email before the @ sign. The field value is the same for different requests from the same user, but different users can have similar names. This information is also available to the application via th e App Engine Users API.This field will be populated starting with App Engine 1.9 .21.",
1317 "type": "string"
1318 },
1319 "pendingTime": {
1320 "description": "Time this request spent in the pending reque st queue.",
1321 "format": "google-duration",
1322 "type": "string"
1323 },
1324 "resource": {
1325 "description": "Contains the path and query portion of the U RL that was requested. For example, if the URL was \"http://example.com/app?name =val\", the resource would be \"/app?name=val\". The fragment identifier, which is identified by the # character, is not included.",
1326 "type": "string"
1327 },
1328 "status": {
1329 "description": "HTTP response status code. Example: 200, 404 .",
1330 "format": "int32",
1331 "type": "integer"
1332 },
1333 "taskName": {
1334 "description": "Task name of the request, in the case of an offline request.",
1335 "type": "string"
1336 },
1337 "urlMapEntry": {
1338 "description": "File or class that handled the request.",
1339 "type": "string"
1340 },
1341 "instanceIndex": {
1342 "description": "If the instance processing this request belo ngs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1.",
1343 "format": "int32",
1344 "type": "integer"
1345 },
1346 "host": {
1347 "description": "Internet host and port number of the resourc e being requested.",
1348 "type": "string"
1349 },
1350 "finished": {
1351 "description": "Whether this request is finished or active." ,
1352 "type": "boolean"
1353 },
1354 "httpVersion": {
1355 "description": "HTTP version of request. Example: \"HTTP/1.1 \".",
1356 "type": "string"
1357 },
1358 "startTime": {
1359 "description": "Time when the request started.",
1360 "format": "google-datetime",
1361 "type": "string"
1362 },
1363 "latency": {
1364 "description": "Latency of the request.",
1365 "format": "google-duration",
1366 "type": "string"
1367 },
1368 "ip": {
1369 "description": "Origin IP address.",
1370 "type": "string"
1371 },
1372 "appId": {
1373 "description": "Application that handled this request.",
1374 "type": "string"
1375 },
1376 "appEngineRelease": {
1377 "description": "App Engine release version.",
1378 "type": "string"
1379 },
1380 "method": {
1381 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
1382 "type": "string"
1383 },
1384 "cost": {
1385 "description": "An indication of the relative cost of servin g this request.",
1386 "format": "double",
1387 "type": "number"
1388 },
1389 "instanceId": {
1390 "description": "An identifier for the instance that handled the request.",
1391 "type": "string"
1392 }
1393 },
1394 "type": "object"
1395 },
1396 "ListMonitoredResourceDescriptorsResponse": {
1397 "description": "Result returned from ListMonitoredResourceDescriptor s.",
1398 "id": "ListMonitoredResourceDescriptorsResponse",
1399 "properties": {
1400 "nextPageToken": {
1401 "description": "If there might be more results than those ap pearing in this response, then nextPageToken is included. To get the next set of results, call this method again using the value of nextPageToken as pageToken." ,
1402 "type": "string"
1403 },
1404 "resourceDescriptors": {
1405 "description": "A list of resource descriptors.",
1406 "items": {
1407 "$ref": "MonitoredResourceDescriptor"
1408 },
1409 "type": "array"
1410 }
1411 },
1412 "type": "object"
1413 },
1414 "SourceReference": {
1415 "description": "A reference to a particular snapshot of the source t ree used to build and deploy an application.",
1416 "id": "SourceReference",
1417 "properties": {
1418 "repository": {
1419 "description": "Optional. A URI string identifying the repos itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
1420 "type": "string"
1421 },
1422 "revisionId": {
1423 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "",
1424 "type": "string"
1425 }
1426 },
1427 "type": "object"
1428 },
1429 "WriteLogEntriesResponse": {
1430 "description": "Result returned from WriteLogEntries. empty",
1431 "id": "WriteLogEntriesResponse",
1432 "properties": {},
1433 "type": "object"
1434 },
1435 "LogEntryOperation": {
1436 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.",
1437 "id": "LogEntryOperation",
1438 "properties": {
1439 "last": {
1440 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
1441 "type": "boolean"
1442 },
1443 "id": {
1444 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.",
1445 "type": "string"
1446 },
1447 "producer": {
1448 "description": "Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for produce r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".",
1449 "type": "string"
1450 },
1451 "first": {
1452 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.",
1453 "type": "boolean"
1454 }
1455 },
1456 "type": "object"
1457 },
1458 "LogMetric": {
1459 "description": "Describes a logs-based metric. The value of the metr ic is the number of log entries that match a logs filter in a given time interva l.",
1460 "id": "LogMetric",
1461 "properties": {
1462 "filter": {
1463 "description": "Required. An advanced logs filter which is u sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\ "\nThe maximum length of the filter is 20000 characters.",
1464 "type": "string"
1465 },
1466 "name": {
1467 "description": "Required. The client-assigned metric identif ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite d to 100 characters and can include only the following characters: A-Z, a-z, 0-9 , and the special characters _-.,+!*',()%/. The forward-slash character (/) deno tes a hierarchy of name pieces, and it cannot be the first character of the name .The metric identifier in this field must not be URL-encoded (https://en.wikiped ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".",
1468 "type": "string"
1469 },
1470 "description": {
1471 "description": "Optional. A description of this metric, whic h is used in documentation.",
1472 "type": "string"
1473 },
1474 "version": {
1475 "description": "Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter express ion. When a value for this field is missing, the default value of V2 should be a ssumed.",
1476 "enum": [
1477 "V2",
1478 "V1"
1479 ],
1480 "enumDescriptions": [
1481 "Stackdriver Logging API v2.",
1482 "Stackdriver Logging API v1."
1483 ],
1484 "type": "string"
1485 }
1486 },
1487 "type": "object"
1488 },
1489 "MonitoredResource": {
1490 "description": "An object representing a resource that can be used f or monitoring, logging, billing, or other purposes. Examples include virtual mac hine instances, databases, and storage devices such as disks. The type field ide ntifies a MonitoredResourceDescriptor object that describes the resource's schem a. Information in the labels field identifies the actual resource and its attrib utes according to the schema. For example, a particular Compute Engine VM instan ce could be represented by the following object, because the MonitoredResourceDe scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type \": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n",
1491 "id": "MonitoredResource",
1492 "properties": {
1493 "type": {
1494 "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For exa mple, the type of a Compute Engine VM instance is gce_instance.",
1495 "type": "string"
1496 },
1497 "labels": {
1498 "additionalProperties": {
1499 "type": "string"
1500 },
1501 "description": "Required. Values for all of the labels liste d in the associated monitored resource descriptor. For example, Compute Engine V M instances use the labels \"project_id\", \"instance_id\", and \"zone\".",
1502 "type": "object"
1503 }
1504 },
1505 "type": "object"
1506 } 1506 }
1507 }, 1507 },
1508 "servicePath": "", 1508 "servicePath": "",
1509 "title": "Stackdriver Logging API", 1509 "title": "Stackdriver Logging API",
1510 "version": "v2beta1" 1510 "version": "v2beta1"
1511 } 1511 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/language__v1beta2.json ('k') | discovery/googleapis_beta/oslogin__v1alpha.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698