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

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

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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": {
6 "description": "View and manage your data across Google Clou d Platform services"
7 },
5 "https://www.googleapis.com/auth/logging.write": { 8 "https://www.googleapis.com/auth/logging.write": {
6 "description": "Submit log data for your projects" 9 "description": "Submit log data for your projects"
7 }, 10 },
8 "https://www.googleapis.com/auth/logging.read": { 11 "https://www.googleapis.com/auth/logging.read": {
9 "description": "View log data for your projects" 12 "description": "View log data for your projects"
10 }, 13 },
11 "https://www.googleapis.com/auth/logging.admin": { 14 "https://www.googleapis.com/auth/logging.admin": {
12 "description": "Administrate log data for your projects" 15 "description": "Administrate log data for your projects"
13 }, 16 },
14 "https://www.googleapis.com/auth/cloud-platform.read-only": { 17 "https://www.googleapis.com/auth/cloud-platform.read-only": {
15 "description": "View your data across Google Cloud Platform services" 18 "description": "View your data across Google Cloud Platform services"
16 },
17 "https://www.googleapis.com/auth/cloud-platform": {
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 "alt": {
41 "default": "json",
42 "description": "Data format for response.",
43 "enum": [
44 "json",
45 "media",
46 "proto"
47 ],
48 "enumDescriptions": [
49 "Responses with Content-Type of application/json",
50 "Media download with context-dependent Content-Type",
51 "Responses with Content-Type of application/x-protobuf"
52 ],
53 "location": "query",
54 "type": "string"
55 },
56 "key": {
57 "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.",
58 "location": "query",
59 "type": "string"
60 },
61 "access_token": {
62 "description": "OAuth access token.",
63 "location": "query",
64 "type": "string"
65 },
66 "quotaUser": {
67 "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.",
68 "location": "query",
69 "type": "string"
70 },
40 "pp": { 71 "pp": {
41 "default": "true", 72 "default": "true",
42 "description": "Pretty-print response.", 73 "description": "Pretty-print response.",
43 "location": "query", 74 "location": "query",
44 "type": "boolean" 75 "type": "boolean"
45 }, 76 },
46 "bearer_token": { 77 "bearer_token": {
47 "description": "OAuth bearer token.", 78 "description": "OAuth bearer token.",
48 "location": "query", 79 "location": "query",
49 "type": "string" 80 "type": "string"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 "v1 error format", 115 "v1 error format",
85 "v2 error format" 116 "v2 error format"
86 ], 117 ],
87 "location": "query", 118 "location": "query",
88 "type": "string" 119 "type": "string"
89 }, 120 },
90 "callback": { 121 "callback": {
91 "description": "JSONP", 122 "description": "JSONP",
92 "location": "query", 123 "location": "query",
93 "type": "string" 124 "type": "string"
94 },
95 "alt": {
96 "default": "json",
97 "description": "Data format for response.",
98 "enum": [
99 "json",
100 "media",
101 "proto"
102 ],
103 "enumDescriptions": [
104 "Responses with Content-Type of application/json",
105 "Media download with context-dependent Content-Type",
106 "Responses with Content-Type of application/x-protobuf"
107 ],
108 "location": "query",
109 "type": "string"
110 },
111 "access_token": {
112 "description": "OAuth access token.",
113 "location": "query",
114 "type": "string"
115 },
116 "key": {
117 "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.",
118 "location": "query",
119 "type": "string"
120 },
121 "quotaUser": {
122 "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.",
123 "location": "query",
124 "type": "string"
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 "$ref": "ListLogEntriesResponse" 246 "$ref": "ListLogEntriesResponse"
214 }, 247 },
215 "scopes": [ 248 "scopes": [
216 "https://www.googleapis.com/auth/cloud-platform", 249 "https://www.googleapis.com/auth/cloud-platform",
217 "https://www.googleapis.com/auth/cloud-platform.read-onl y", 250 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
218 "https://www.googleapis.com/auth/logging.admin", 251 "https://www.googleapis.com/auth/logging.admin",
219 "https://www.googleapis.com/auth/logging.read" 252 "https://www.googleapis.com/auth/logging.read"
220 ] 253 ]
221 }, 254 },
222 "write": { 255 "write": {
223 "description": "Writes log entries to Stackdriver Logging.", 256 "description": "Log entry resourcesWrites log entries to Sta ckdriver Logging. This API method is the only way to send log entries to Stackdr iver Logging. This method is used, directly or indirectly, by the Stackdriver Lo gging agent (fluentd) and all logging libraries configured to use Stackdriver Lo gging.",
224 "httpMethod": "POST", 257 "httpMethod": "POST",
225 "id": "logging.entries.write", 258 "id": "logging.entries.write",
226 "parameterOrder": [], 259 "parameterOrder": [],
227 "parameters": {}, 260 "parameters": {},
228 "path": "v2beta1/entries:write", 261 "path": "v2beta1/entries:write",
229 "request": { 262 "request": {
230 "$ref": "WriteLogEntriesRequest" 263 "$ref": "WriteLogEntriesRequest"
231 }, 264 },
232 "response": { 265 "response": {
233 "$ref": "WriteLogEntriesResponse" 266 "$ref": "WriteLogEntriesResponse"
234 }, 267 },
235 "scopes": [ 268 "scopes": [
236 "https://www.googleapis.com/auth/cloud-platform", 269 "https://www.googleapis.com/auth/cloud-platform",
237 "https://www.googleapis.com/auth/logging.admin", 270 "https://www.googleapis.com/auth/logging.admin",
238 "https://www.googleapis.com/auth/logging.write" 271 "https://www.googleapis.com/auth/logging.write"
239 ] 272 ]
240 } 273 }
241 } 274 }
242 }, 275 },
243 "projects": { 276 "projects": {
244 "resources": { 277 "resources": {
245 "sinks": { 278 "sinks": {
246 "methods": { 279 "methods": {
280 "delete": {
281 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
282 "httpMethod": "DELETE",
283 "id": "logging.projects.sinks.delete",
284 "parameterOrder": [
285 "sinkName"
286 ],
287 "parameters": {
288 "sinkName": {
289 "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\".",
290 "location": "path",
291 "pattern": "^projects/[^/]+/sinks/[^/]+$",
292 "required": true,
293 "type": "string"
294 }
295 },
296 "path": "v2beta1/{+sinkName}",
297 "response": {
298 "$ref": "Empty"
299 },
300 "scopes": [
301 "https://www.googleapis.com/auth/cloud-platform" ,
302 "https://www.googleapis.com/auth/logging.admin"
303 ]
304 },
247 "get": { 305 "get": {
248 "description": "Gets a sink.", 306 "description": "Gets a sink.",
249 "httpMethod": "GET", 307 "httpMethod": "GET",
250 "id": "logging.projects.sinks.get", 308 "id": "logging.projects.sinks.get",
251 "parameterOrder": [ 309 "parameterOrder": [
252 "sinkName" 310 "sinkName"
253 ], 311 ],
254 "parameters": { 312 "parameters": {
255 "sinkName": { 313 "sinkName": {
256 "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\".", 314 "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\".",
(...skipping 15 matching lines...) Expand all
272 ] 330 ]
273 }, 331 },
274 "list": { 332 "list": {
275 "description": "Lists sinks.", 333 "description": "Lists sinks.",
276 "httpMethod": "GET", 334 "httpMethod": "GET",
277 "id": "logging.projects.sinks.list", 335 "id": "logging.projects.sinks.list",
278 "parameterOrder": [ 336 "parameterOrder": [
279 "parent" 337 "parent"
280 ], 338 ],
281 "parameters": { 339 "parameters": {
282 "pageSize": {
283 "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.",
284 "format": "int32",
285 "location": "query",
286 "type": "integer"
287 },
288 "parent": { 340 "parent": {
289 "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", 341 "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",
290 "location": "path", 342 "location": "path",
291 "pattern": "^projects/[^/]+$", 343 "pattern": "^projects/[^/]+$",
292 "required": true, 344 "required": true,
293 "type": "string" 345 "type": "string"
294 }, 346 },
295 "pageToken": { 347 "pageToken": {
296 "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.", 348 "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.",
297 "location": "query", 349 "location": "query",
298 "type": "string" 350 "type": "string"
351 },
352 "pageSize": {
353 "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.",
354 "format": "int32",
355 "location": "query",
356 "type": "integer"
299 } 357 }
300 }, 358 },
301 "path": "v2beta1/{+parent}/sinks", 359 "path": "v2beta1/{+parent}/sinks",
302 "response": { 360 "response": {
303 "$ref": "ListSinksResponse" 361 "$ref": "ListSinksResponse"
304 }, 362 },
305 "scopes": [ 363 "scopes": [
306 "https://www.googleapis.com/auth/cloud-platform" , 364 "https://www.googleapis.com/auth/cloud-platform" ,
307 "https://www.googleapis.com/auth/cloud-platform. read-only", 365 "https://www.googleapis.com/auth/cloud-platform. read-only",
308 "https://www.googleapis.com/auth/logging.admin", 366 "https://www.googleapis.com/auth/logging.admin",
309 "https://www.googleapis.com/auth/logging.read" 367 "https://www.googleapis.com/auth/logging.read"
310 ] 368 ]
311 }, 369 },
312 "update": { 370 "update": {
313 "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destin ation, filter, output_version_format, start_time, and end_time. The updated sink might also have a new writer_identity; see the unique_writer_identity field.", 371 "description": "Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destin ation, and filter. The updated sink might also have a new writer_identity; see t he unique_writer_identity field.",
314 "httpMethod": "PUT", 372 "httpMethod": "PUT",
315 "id": "logging.projects.sinks.update", 373 "id": "logging.projects.sinks.update",
316 "parameterOrder": [ 374 "parameterOrder": [
317 "sinkName" 375 "sinkName"
318 ], 376 ],
319 "parameters": { 377 "parameters": {
378 "updateMask": {
379 "description": "Optional. Field mask that sp ecifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot b e updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At so me point in the future, behavior will be removed and specifying an empty updateM ask will be an error.For a detailed FieldMask definition, see https://developers .google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: up dateMask=filter.",
380 "format": "google-fieldmask",
381 "location": "query",
382 "type": "string"
383 },
320 "uniqueWriterIdentity": { 384 "uniqueWriterIdentity": {
321 "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.", 385 "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.",
322 "location": "query", 386 "location": "query",
323 "type": "boolean" 387 "type": "boolean"
324 }, 388 },
325 "sinkName": { 389 "sinkName": {
326 "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\".", 390 "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\".",
327 "location": "path", 391 "location": "path",
328 "pattern": "^projects/[^/]+/sinks/[^/]+$", 392 "pattern": "^projects/[^/]+/sinks/[^/]+$",
329 "required": true, 393 "required": true,
330 "type": "string" 394 "type": "string"
331 } 395 }
332 }, 396 },
333 "path": "v2beta1/{+sinkName}", 397 "path": "v2beta1/{+sinkName}",
334 "request": { 398 "request": {
335 "$ref": "LogSink" 399 "$ref": "LogSink"
336 }, 400 },
337 "response": { 401 "response": {
338 "$ref": "LogSink" 402 "$ref": "LogSink"
339 }, 403 },
340 "scopes": [ 404 "scopes": [
341 "https://www.googleapis.com/auth/cloud-platform" , 405 "https://www.googleapis.com/auth/cloud-platform" ,
342 "https://www.googleapis.com/auth/logging.admin" 406 "https://www.googleapis.com/auth/logging.admin"
343 ] 407 ]
344 }, 408 },
345 "create": { 409 "create": {
346 "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.", 410 "description": "Creates a sink that exports specifie d log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sin k.",
347 "httpMethod": "POST", 411 "httpMethod": "POST",
348 "id": "logging.projects.sinks.create", 412 "id": "logging.projects.sinks.create",
349 "parameterOrder": [ 413 "parameterOrder": [
350 "parent" 414 "parent"
351 ], 415 ],
352 "parameters": { 416 "parameters": {
353 "uniqueWriterIdentity": {
354 "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.",
355 "location": "query",
356 "type": "boolean"
357 },
358 "parent": { 417 "parent": {
359 "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\".", 418 "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\".",
360 "location": "path", 419 "location": "path",
361 "pattern": "^projects/[^/]+$", 420 "pattern": "^projects/[^/]+$",
362 "required": true, 421 "required": true,
363 "type": "string" 422 "type": "string"
423 },
424 "uniqueWriterIdentity": {
425 "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.",
426 "location": "query",
427 "type": "boolean"
364 } 428 }
365 }, 429 },
366 "path": "v2beta1/{+parent}/sinks", 430 "path": "v2beta1/{+parent}/sinks",
367 "request": { 431 "request": {
368 "$ref": "LogSink" 432 "$ref": "LogSink"
369 }, 433 },
370 "response": { 434 "response": {
371 "$ref": "LogSink" 435 "$ref": "LogSink"
372 }, 436 },
373 "scopes": [ 437 "scopes": [
374 "https://www.googleapis.com/auth/cloud-platform" , 438 "https://www.googleapis.com/auth/cloud-platform" ,
375 "https://www.googleapis.com/auth/logging.admin" 439 "https://www.googleapis.com/auth/logging.admin"
376 ] 440 ]
377 },
378 "delete": {
379 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
380 "httpMethod": "DELETE",
381 "id": "logging.projects.sinks.delete",
382 "parameterOrder": [
383 "sinkName"
384 ],
385 "parameters": {
386 "sinkName": {
387 "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\".",
388 "location": "path",
389 "pattern": "^projects/[^/]+/sinks/[^/]+$",
390 "required": true,
391 "type": "string"
392 }
393 },
394 "path": "v2beta1/{+sinkName}",
395 "response": {
396 "$ref": "Empty"
397 },
398 "scopes": [
399 "https://www.googleapis.com/auth/cloud-platform" ,
400 "https://www.googleapis.com/auth/logging.admin"
401 ]
402 } 441 }
403 } 442 }
404 }, 443 },
405 "logs": { 444 "logs": {
406 "methods": { 445 "methods": {
407 "delete": { 446 "delete": {
408 "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.", 447 "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.",
409 "httpMethod": "DELETE", 448 "httpMethod": "DELETE",
410 "id": "logging.projects.logs.delete", 449 "id": "logging.projects.logs.delete",
411 "parameterOrder": [ 450 "parameterOrder": [
(...skipping 18 matching lines...) Expand all
430 ] 469 ]
431 }, 470 },
432 "list": { 471 "list": {
433 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 472 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
434 "httpMethod": "GET", 473 "httpMethod": "GET",
435 "id": "logging.projects.logs.list", 474 "id": "logging.projects.logs.list",
436 "parameterOrder": [ 475 "parameterOrder": [
437 "parent" 476 "parent"
438 ], 477 ],
439 "parameters": { 478 "parameters": {
479 "pageToken": {
480 "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 "location": "query",
482 "type": "string"
483 },
440 "pageSize": { 484 "pageSize": {
441 "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.", 485 "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.",
442 "format": "int32", 486 "format": "int32",
443 "location": "query", 487 "location": "query",
444 "type": "integer" 488 "type": "integer"
445 }, 489 },
446 "parent": { 490 "parent": {
447 "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", 491 "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",
448 "location": "path", 492 "location": "path",
449 "pattern": "^projects/[^/]+$", 493 "pattern": "^projects/[^/]+$",
450 "required": true, 494 "required": true,
451 "type": "string" 495 "type": "string"
452 },
453 "pageToken": {
454 "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.",
455 "location": "query",
456 "type": "string"
457 } 496 }
458 }, 497 },
459 "path": "v2beta1/{+parent}/logs", 498 "path": "v2beta1/{+parent}/logs",
460 "response": { 499 "response": {
461 "$ref": "ListLogsResponse" 500 "$ref": "ListLogsResponse"
462 }, 501 },
463 "scopes": [ 502 "scopes": [
464 "https://www.googleapis.com/auth/cloud-platform" , 503 "https://www.googleapis.com/auth/cloud-platform" ,
465 "https://www.googleapis.com/auth/cloud-platform. read-only", 504 "https://www.googleapis.com/auth/cloud-platform. read-only",
466 "https://www.googleapis.com/auth/logging.admin", 505 "https://www.googleapis.com/auth/logging.admin",
467 "https://www.googleapis.com/auth/logging.read" 506 "https://www.googleapis.com/auth/logging.read"
468 ] 507 ]
469 } 508 }
470 } 509 }
471 }, 510 },
472 "metrics": { 511 "metrics": {
473 "methods": { 512 "methods": {
474 "get": {
475 "description": "Gets a logs-based metric.",
476 "httpMethod": "GET",
477 "id": "logging.projects.metrics.get",
478 "parameterOrder": [
479 "metricName"
480 ],
481 "parameters": {
482 "metricName": {
483 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
484 "location": "path",
485 "pattern": "^projects/[^/]+/metrics/[^/]+$",
486 "required": true,
487 "type": "string"
488 }
489 },
490 "path": "v2beta1/{+metricName}",
491 "response": {
492 "$ref": "LogMetric"
493 },
494 "scopes": [
495 "https://www.googleapis.com/auth/cloud-platform" ,
496 "https://www.googleapis.com/auth/cloud-platform. read-only",
497 "https://www.googleapis.com/auth/logging.admin",
498 "https://www.googleapis.com/auth/logging.read"
499 ]
500 },
501 "list": {
502 "description": "Lists logs-based metrics.",
503 "httpMethod": "GET",
504 "id": "logging.projects.metrics.list",
505 "parameterOrder": [
506 "parent"
507 ],
508 "parameters": {
509 "pageToken": {
510 "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.",
511 "location": "query",
512 "type": "string"
513 },
514 "pageSize": {
515 "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.",
516 "format": "int32",
517 "location": "query",
518 "type": "integer"
519 },
520 "parent": {
521 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
522 "location": "path",
523 "pattern": "^projects/[^/]+$",
524 "required": true,
525 "type": "string"
526 }
527 },
528 "path": "v2beta1/{+parent}/metrics",
529 "response": {
530 "$ref": "ListLogMetricsResponse"
531 },
532 "scopes": [
533 "https://www.googleapis.com/auth/cloud-platform" ,
534 "https://www.googleapis.com/auth/cloud-platform. read-only",
535 "https://www.googleapis.com/auth/logging.admin",
536 "https://www.googleapis.com/auth/logging.read"
537 ]
538 },
539 "update": { 513 "update": {
540 "description": "Creates or updates a logs-based metr ic.", 514 "description": "Creates or updates a logs-based metr ic.",
541 "httpMethod": "PUT", 515 "httpMethod": "PUT",
542 "id": "logging.projects.metrics.update", 516 "id": "logging.projects.metrics.update",
543 "parameterOrder": [ 517 "parameterOrder": [
544 "metricName" 518 "metricName"
545 ], 519 ],
546 "parameters": { 520 "parameters": {
547 "metricName": { 521 "metricName": {
548 "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 .", 522 "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 .",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 }, 586 },
613 "path": "v2beta1/{+metricName}", 587 "path": "v2beta1/{+metricName}",
614 "response": { 588 "response": {
615 "$ref": "Empty" 589 "$ref": "Empty"
616 }, 590 },
617 "scopes": [ 591 "scopes": [
618 "https://www.googleapis.com/auth/cloud-platform" , 592 "https://www.googleapis.com/auth/cloud-platform" ,
619 "https://www.googleapis.com/auth/logging.admin", 593 "https://www.googleapis.com/auth/logging.admin",
620 "https://www.googleapis.com/auth/logging.write" 594 "https://www.googleapis.com/auth/logging.write"
621 ] 595 ]
622 } 596 },
623 } 597 "get": {
624 } 598 "description": "Gets a logs-based metric.",
625 } 599 "httpMethod": "GET",
626 }, 600 "id": "logging.projects.metrics.get",
627 "billingAccounts": { 601 "parameterOrder": [
628 "resources": { 602 "metricName"
629 "logs": { 603 ],
630 "methods": { 604 "parameters": {
605 "metricName": {
606 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
607 "location": "path",
608 "pattern": "^projects/[^/]+/metrics/[^/]+$",
609 "required": true,
610 "type": "string"
611 }
612 },
613 "path": "v2beta1/{+metricName}",
614 "response": {
615 "$ref": "LogMetric"
616 },
617 "scopes": [
618 "https://www.googleapis.com/auth/cloud-platform" ,
619 "https://www.googleapis.com/auth/cloud-platform. read-only",
620 "https://www.googleapis.com/auth/logging.admin",
621 "https://www.googleapis.com/auth/logging.read"
622 ]
623 },
631 "list": { 624 "list": {
632 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 625 "description": "Lists logs-based metrics.",
633 "httpMethod": "GET", 626 "httpMethod": "GET",
634 "id": "logging.billingAccounts.logs.list", 627 "id": "logging.projects.metrics.list",
635 "parameterOrder": [ 628 "parameterOrder": [
636 "parent" 629 "parent"
637 ], 630 ],
638 "parameters": { 631 "parameters": {
632 "pageToken": {
633 "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.",
634 "location": "query",
635 "type": "string"
636 },
639 "pageSize": { 637 "pageSize": {
640 "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.", 638 "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.",
641 "format": "int32", 639 "format": "int32",
642 "location": "query", 640 "location": "query",
643 "type": "integer" 641 "type": "integer"
644 }, 642 },
645 "parent": { 643 "parent": {
646 "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", 644 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
647 "location": "path", 645 "location": "path",
648 "pattern": "^billingAccounts/[^/]+$", 646 "pattern": "^projects/[^/]+$",
649 "required": true, 647 "required": true,
650 "type": "string" 648 "type": "string"
651 },
652 "pageToken": {
653 "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.",
654 "location": "query",
655 "type": "string"
656 } 649 }
657 }, 650 },
658 "path": "v2beta1/{+parent}/logs", 651 "path": "v2beta1/{+parent}/metrics",
659 "response": { 652 "response": {
660 "$ref": "ListLogsResponse" 653 "$ref": "ListLogMetricsResponse"
661 }, 654 },
662 "scopes": [ 655 "scopes": [
663 "https://www.googleapis.com/auth/cloud-platform" , 656 "https://www.googleapis.com/auth/cloud-platform" ,
664 "https://www.googleapis.com/auth/cloud-platform. read-only", 657 "https://www.googleapis.com/auth/cloud-platform. read-only",
665 "https://www.googleapis.com/auth/logging.admin", 658 "https://www.googleapis.com/auth/logging.admin",
666 "https://www.googleapis.com/auth/logging.read" 659 "https://www.googleapis.com/auth/logging.read"
667 ] 660 ]
668 }, 661 }
662 }
663 }
664 }
665 },
666 "billingAccounts": {
667 "resources": {
668 "logs": {
669 "methods": {
669 "delete": { 670 "delete": {
670 "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.", 671 "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.",
671 "httpMethod": "DELETE", 672 "httpMethod": "DELETE",
672 "id": "logging.billingAccounts.logs.delete", 673 "id": "logging.billingAccounts.logs.delete",
673 "parameterOrder": [ 674 "parameterOrder": [
674 "logName" 675 "logName"
675 ], 676 ],
676 "parameters": { 677 "parameters": {
677 "logName": { 678 "logName": {
678 "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.", 679 "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.",
679 "location": "path", 680 "location": "path",
680 "pattern": "^billingAccounts/[^/]+/logs/[^/] +$", 681 "pattern": "^billingAccounts/[^/]+/logs/[^/] +$",
681 "required": true, 682 "required": true,
682 "type": "string" 683 "type": "string"
683 } 684 }
684 }, 685 },
685 "path": "v2beta1/{+logName}", 686 "path": "v2beta1/{+logName}",
686 "response": { 687 "response": {
687 "$ref": "Empty" 688 "$ref": "Empty"
688 }, 689 },
689 "scopes": [ 690 "scopes": [
690 "https://www.googleapis.com/auth/cloud-platform" , 691 "https://www.googleapis.com/auth/cloud-platform" ,
691 "https://www.googleapis.com/auth/logging.admin" 692 "https://www.googleapis.com/auth/logging.admin"
692 ] 693 ]
694 },
695 "list": {
696 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
697 "httpMethod": "GET",
698 "id": "logging.billingAccounts.logs.list",
699 "parameterOrder": [
700 "parent"
701 ],
702 "parameters": {
703 "pageToken": {
704 "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 "location": "query",
706 "type": "string"
707 },
708 "pageSize": {
709 "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 "format": "int32",
711 "location": "query",
712 "type": "integer"
713 },
714 "parent": {
715 "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",
716 "location": "path",
717 "pattern": "^billingAccounts/[^/]+$",
718 "required": true,
719 "type": "string"
720 }
721 },
722 "path": "v2beta1/{+parent}/logs",
723 "response": {
724 "$ref": "ListLogsResponse"
725 },
726 "scopes": [
727 "https://www.googleapis.com/auth/cloud-platform" ,
728 "https://www.googleapis.com/auth/cloud-platform. read-only",
729 "https://www.googleapis.com/auth/logging.admin",
730 "https://www.googleapis.com/auth/logging.read"
731 ]
693 } 732 }
694 } 733 }
695 } 734 }
696 } 735 }
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 "pageSize": {
707 "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." ,
708 "format": "int32",
709 "location": "query",
710 "type": "integer"
711 },
712 "pageToken": {
713 "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.",
714 "location": "query",
715 "type": "string"
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 } 736 }
731 }, 737 },
732 "revision": "20170814", 738 "revision": "20170905",
733 "rootUrl": "https://logging.googleapis.com/", 739 "rootUrl": "https://logging.googleapis.com/",
734 "schemas": { 740 "schemas": {
741 "LogEntryOperation": {
742 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.",
743 "id": "LogEntryOperation",
744 "properties": {
745 "last": {
746 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
747 "type": "boolean"
748 },
749 "id": {
750 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.",
751 "type": "string"
752 },
753 "first": {
754 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.",
755 "type": "boolean"
756 },
757 "producer": {
758 "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\".",
759 "type": "string"
760 }
761 },
762 "type": "object"
763 },
764 "LogMetric": {
765 "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.Logs-based metric can also be used to extract values from logs and create a a distribution of the values. The distribution records the statistics of the extra cted values along with an optional histogram of the values as specified by the b ucket options.",
766 "id": "LogMetric",
767 "properties": {
768 "name": {
769 "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\".",
770 "type": "string"
771 },
772 "labelExtractors": {
773 "additionalProperties": {
774 "type": "string"
775 },
776 "description": "Optional. A map from a label key string to a n extractor expression which is used to extract data from a log entry field and assign as the label value. Each label key specified in the LabelDescriptor must have an associated extractor expression in this map. The syntax of the extractor expression is the same as for the value_extractor field.The extracted value is converted to the type defined in the label descriptor. If the either the extract ion or the type conversion fails, the label will have a default value. The defau lt value for a string label is an empty string, for an integer label its 0, and for a boolean label its false.Note that there are upper bounds on the maximum nu mber of labels and the number of active time series that are allowed in a projec t.",
777 "type": "object"
778 },
779 "metricDescriptor": {
780 "$ref": "MetricDescriptor",
781 "description": "Optional. The metric descriptor associated w ith the logs-based metric. If unspecified, it uses a default metric descriptor w ith a DELTA metric kind, INT64 value type, with no labels and a unit of \"1\". S uch a metric counts the number of log entries matching the filter expression.The name, type, and description fields in the metric_descriptor are output only, an d is constructed using the name and description field in the LogMetric.To create a logs-based metric that records a distribution of log values, a DELTA metric k ind with a DISTRIBUTION value type must be used along with a value_extractor exp ression in the LogMetric.Each label in the metric descriptor must have a matchin g label name as the key and an extractor expression as the value in the label_ex tractors map.The metric_kind and value_type fields in the metric_descriptor cann ot be updated once initially configured. New labels can be added in the metric_d escriptor, but existing labels cannot be modified except for their description."
782 },
783 "version": {
784 "description": "Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.",
785 "enum": [
786 "V2",
787 "V1"
788 ],
789 "enumDescriptions": [
790 "Stackdriver Logging API v2.",
791 "Stackdriver Logging API v1."
792 ],
793 "type": "string"
794 },
795 "filter": {
796 "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.",
797 "type": "string"
798 },
799 "description": {
800 "description": "Optional. A description of this metric, whic h is used in documentation.",
801 "type": "string"
802 },
803 "valueExtractor": {
804 "description": "Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a l og entry. Two functions are supported for value extraction: EXTRACT(field) or RE GEXP_EXTRACT(field, regex). The argument are: 1. field: The name of the log ent ry field from which the value is to be extracted. 2. regex: A regular expressi on using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribut ion always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: RE GEXP_EXTRACT(jsonPayload.request, \".*quantity=(\\d+).*\")",
805 "type": "string"
806 },
807 "bucketOptions": {
808 "$ref": "BucketOptions",
809 "description": "Optional. The bucket_options are required wh en the logs-based metric is using a DISTRIBUTION value type and it describes the bucket boundaries used to create a histogram of the extracted values."
810 }
811 },
812 "type": "object"
813 },
814 "MonitoredResource": {
815 "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",
816 "id": "MonitoredResource",
817 "properties": {
818 "type": {
819 "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.",
820 "type": "string"
821 },
822 "labels": {
823 "additionalProperties": {
824 "type": "string"
825 },
826 "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\".",
827 "type": "object"
828 }
829 },
830 "type": "object"
831 },
832 "LogSink": {
833 "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.",
834 "id": "LogSink",
835 "properties": {
836 "name": {
837 "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.",
838 "type": "string"
839 },
840 "includeChildren": {
841 "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",
842 "type": "boolean"
843 },
844 "filter": {
845 "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. For example:\nlogName=\"projects/[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n",
846 "type": "string"
847 },
848 "destination": {
849 "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.",
850 "type": "string"
851 },
852 "endTime": {
853 "description": "Deprecated. This field is ignored when creat ing or updating sinks.",
854 "format": "google-datetime",
855 "type": "string"
856 },
857 "writerIdentity": {
858 "description": "Output only. An IAM identity—a service account or group—under which Stackdriver Logging writes the exported log entries to the sink's destination. This field is set by sinks.create and sinks.u pdate, based on the setting of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from thi s sink will fail. For more information, see Granting access for a resource. Cons ult the destination service's documentation to determine the appropriate IAM rol es to assign to the identity.",
859 "type": "string"
860 },
861 "startTime": {
862 "description": "Deprecated. This field is ignored when creat ing or updating sinks.",
863 "format": "google-datetime",
864 "type": "string"
865 },
866 "outputVersionFormat": {
867 "description": "Deprecated. The log entry format to use for this sink's exported log entries. The v2 format is used by default and cannot be changed.",
868 "enum": [
869 "VERSION_FORMAT_UNSPECIFIED",
870 "V2",
871 "V1"
872 ],
873 "enumDescriptions": [
874 "An unspecified format version that will default to V2." ,
875 "LogEntry version 2 format.",
876 "LogEntry version 1 format."
877 ],
878 "type": "string"
879 }
880 },
881 "type": "object"
882 },
735 "ListLogsResponse": { 883 "ListLogsResponse": {
736 "description": "Result returned from ListLogs.", 884 "description": "Result returned from ListLogs.",
737 "id": "ListLogsResponse", 885 "id": "ListLogsResponse",
738 "properties": { 886 "properties": {
887 "nextPageToken": {
888 "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." ,
889 "type": "string"
890 },
739 "logNames": { 891 "logNames": {
740 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".", 892 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".",
741 "items": { 893 "items": {
742 "type": "string" 894 "type": "string"
743 }, 895 },
744 "type": "array" 896 "type": "array"
745 },
746 "nextPageToken": {
747 "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." ,
748 "type": "string"
749 }
750 },
751 "type": "object"
752 },
753 "ListSinksResponse": {
754 "description": "Result returned from ListSinks.",
755 "id": "ListSinksResponse",
756 "properties": {
757 "nextPageToken": {
758 "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 the same method again using the value of nextPageToken as pageToken.",
759 "type": "string"
760 },
761 "sinks": {
762 "description": "A list of sinks.",
763 "items": {
764 "$ref": "LogSink"
765 },
766 "type": "array"
767 } 897 }
768 }, 898 },
769 "type": "object" 899 "type": "object"
770 }, 900 },
771 "HttpRequest": { 901 "HttpRequest": {
772 "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.", 902 "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.",
773 "id": "HttpRequest", 903 "id": "HttpRequest",
774 "properties": { 904 "properties": {
775 "userAgent": {
776 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
777 "type": "string"
778 },
779 "latency": { 905 "latency": {
780 "description": "The request processing latency on the server , from the time the request was received until the response was sent.", 906 "description": "The request processing latency on the server , from the time the request was received until the response was sent.",
781 "format": "google-duration", 907 "format": "google-duration",
782 "type": "string" 908 "type": "string"
783 }, 909 },
910 "userAgent": {
911 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
912 "type": "string"
913 },
784 "cacheFillBytes": { 914 "cacheFillBytes": {
785 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.", 915 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.",
786 "format": "int64", 916 "format": "int64",
787 "type": "string" 917 "type": "string"
788 }, 918 },
789 "requestMethod": { 919 "requestMethod": {
790 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".", 920 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".",
791 "type": "string" 921 "type": "string"
792 }, 922 },
793 "requestSize": { 923 "requestSize": {
794 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.", 924 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.",
795 "format": "int64", 925 "format": "int64",
796 "type": "string" 926 "type": "string"
797 }, 927 },
798 "responseSize": { 928 "responseSize": {
799 "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.", 929 "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.",
800 "format": "int64", 930 "format": "int64",
801 "type": "string" 931 "type": "string"
802 }, 932 },
803 "protocol": { 933 "protocol": {
804 "description": "Protocol used for the request. Examples: \"H TTP/1.1\", \"HTTP/2\", \"websocket\"", 934 "description": "Protocol used for the request. Examples: \"H TTP/1.1\", \"HTTP/2\", \"websocket\"",
805 "type": "string" 935 "type": "string"
806 }, 936 },
807 "requestUrl": { 937 "requestUrl": {
808 "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\".", 938 "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\".",
809 "type": "string" 939 "type": "string"
810 }, 940 },
941 "serverIp": {
942 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
943 "type": "string"
944 },
811 "remoteIp": { 945 "remoteIp": {
812 "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\".", 946 "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\".",
813 "type": "string" 947 "type": "string"
814 }, 948 },
815 "serverIp": {
816 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
817 "type": "string"
818 },
819 "cacheLookup": { 949 "cacheLookup": {
820 "description": "Whether or not a cache lookup was attempted. ", 950 "description": "Whether or not a cache lookup was attempted. ",
821 "type": "boolean" 951 "type": "boolean"
822 }, 952 },
823 "cacheHit": { 953 "cacheHit": {
824 "description": "Whether or not an entity was served from cac he (with or without validation).", 954 "description": "Whether or not an entity was served from cac he (with or without validation).",
825 "type": "boolean" 955 "type": "boolean"
826 }, 956 },
827 "cacheValidatedWithOriginServer": { 957 "cacheValidatedWithOriginServer": {
828 "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.", 958 "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.",
829 "type": "boolean" 959 "type": "boolean"
830 }, 960 },
831 "status": { 961 "status": {
832 "description": "The response code indicating the status of r esponse. Examples: 200, 404.", 962 "description": "The response code indicating the status of r esponse. Examples: 200, 404.",
833 "format": "int32", 963 "format": "int32",
834 "type": "integer" 964 "type": "integer"
835 }, 965 },
836 "referer": { 966 "referer": {
837 "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).", 967 "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).",
838 "type": "string" 968 "type": "string"
839 } 969 }
840 }, 970 },
971 "type": "object"
972 },
973 "ListSinksResponse": {
974 "description": "Result returned from ListSinks.",
975 "id": "ListSinksResponse",
976 "properties": {
977 "sinks": {
978 "description": "A list of sinks.",
979 "items": {
980 "$ref": "LogSink"
981 },
982 "type": "array"
983 },
984 "nextPageToken": {
985 "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 the same method again using the value of nextPageToken as pageToken.",
986 "type": "string"
987 }
988 },
989 "type": "object"
990 },
991 "MonitoredResourceDescriptor": {
992 "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.",
993 "id": "MonitoredResourceDescriptor",
994 "properties": {
995 "labels": {
996 "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 \".",
997 "items": {
998 "$ref": "LabelDescriptor"
999 },
1000 "type": "array"
1001 },
1002 "name": {
1003 "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}\".",
1004 "type": "string"
1005 },
1006 "description": {
1007 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.",
1008 "type": "string"
1009 },
1010 "displayName": {
1011 "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\".",
1012 "type": "string"
1013 },
1014 "type": {
1015 "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.",
1016 "type": "string"
1017 }
1018 },
1019 "type": "object"
1020 },
1021 "LogEntrySourceLocation": {
1022 "description": "Additional information about the source code locatio n that produced the log entry.",
1023 "id": "LogEntrySourceLocation",
1024 "properties": {
1025 "file": {
1026 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
1027 "type": "string"
1028 },
1029 "function": {
1030 "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). ",
1031 "type": "string"
1032 },
1033 "line": {
1034 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.",
1035 "format": "int64",
1036 "type": "string"
1037 }
1038 },
1039 "type": "object"
1040 },
1041 "ListLogEntriesResponse": {
1042 "description": "Result returned from ListLogEntries.",
1043 "id": "ListLogEntriesResponse",
1044 "properties": {
1045 "nextPageToken": {
1046 "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.",
1047 "type": "string"
1048 },
1049 "entries": {
1050 "description": "A list of log entries. If entries is empty, nextPageToken may still be returned, indicating that more entries may exist. See nextPageToken for more information.",
1051 "items": {
1052 "$ref": "LogEntry"
1053 },
1054 "type": "array"
1055 }
1056 },
1057 "type": "object"
1058 },
1059 "LogLine": {
1060 "description": "Application log line emitted while processing a requ est.",
1061 "id": "LogLine",
1062 "properties": {
1063 "logMessage": {
1064 "description": "App-provided log message.",
1065 "type": "string"
1066 },
1067 "severity": {
1068 "description": "Severity of this log entry.",
1069 "enum": [
1070 "DEFAULT",
1071 "DEBUG",
1072 "INFO",
1073 "NOTICE",
1074 "WARNING",
1075 "ERROR",
1076 "CRITICAL",
1077 "ALERT",
1078 "EMERGENCY"
1079 ],
1080 "enumDescriptions": [
1081 "(0) The log entry has no assigned severity level.",
1082 "(100) Debug or trace information.",
1083 "(200) Routine information, such as ongoing status or pe rformance.",
1084 "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
1085 "(400) Warning events might cause problems.",
1086 "(500) Error events are likely to cause problems.",
1087 "(600) Critical events cause more severe problems or out ages.",
1088 "(700) A person must take an action immediately.",
1089 "(800) One or more systems are unusable."
1090 ],
1091 "type": "string"
1092 },
1093 "sourceLocation": {
1094 "$ref": "SourceLocation",
1095 "description": "Where in the source code this log message wa s written."
1096 },
1097 "time": {
1098 "description": "Approximate time when this log entry was mad e.",
1099 "format": "google-datetime",
1100 "type": "string"
1101 }
1102 },
1103 "type": "object"
1104 },
1105 "Linear": {
1106 "description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a consta nt absolute uncertainty on the specific value in the bucket.There are num_finite _buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).",
1107 "id": "Linear",
1108 "properties": {
1109 "numFiniteBuckets": {
1110 "description": "Must be greater than 0.",
1111 "format": "int32",
1112 "type": "integer"
1113 },
1114 "width": {
1115 "description": "Must be greater than 0.",
1116 "format": "double",
1117 "type": "number"
1118 },
1119 "offset": {
1120 "description": "Lower bound of the first bucket.",
1121 "format": "double",
1122 "type": "number"
1123 }
1124 },
1125 "type": "object"
1126 },
1127 "Empty": {
1128 "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 {}.",
1129 "id": "Empty",
1130 "properties": {},
1131 "type": "object"
1132 },
1133 "SourceLocation": {
1134 "description": "Specifies a location in a source code file.",
1135 "id": "SourceLocation",
1136 "properties": {
1137 "functionName": {
1138 "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).",
1139 "type": "string"
1140 },
1141 "line": {
1142 "description": "Line within the source file.",
1143 "format": "int64",
1144 "type": "string"
1145 },
1146 "file": {
1147 "description": "Source file name. Depending on the runtime e nvironment, this might be a simple name or a fully-qualified name.",
1148 "type": "string"
1149 }
1150 },
1151 "type": "object"
1152 },
1153 "ListLogEntriesRequest": {
1154 "description": "The parameters to ListLogEntries.",
1155 "id": "ListLogEntriesRequest",
1156 "properties": {
1157 "projectIds": {
1158 "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. ",
1159 "items": {
1160 "type": "string"
1161 },
1162 "type": "array"
1163 },
1164 "filter": {
1165 "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.",
1166 "type": "string"
1167 },
1168 "pageToken": {
1169 "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.",
1170 "type": "string"
1171 },
1172 "pageSize": {
1173 "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.",
1174 "format": "int32",
1175 "type": "integer"
1176 },
1177 "orderBy": {
1178 "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.",
1179 "type": "string"
1180 },
1181 "resourceNames": {
1182 "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.",
1183 "items": {
1184 "type": "string"
1185 },
1186 "type": "array"
1187 }
1188 },
1189 "type": "object"
1190 },
1191 "Explicit": {
1192 "description": "Specifies a set of buckets with arbitrary widths.The re are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries:Upp er bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bound s field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of t he overflow and underflow buckets.",
1193 "id": "Explicit",
1194 "properties": {
1195 "bounds": {
1196 "description": "The values must be monotonically increasing. ",
1197 "items": {
1198 "format": "double",
1199 "type": "number"
1200 },
1201 "type": "array"
1202 }
1203 },
1204 "type": "object"
1205 },
1206 "SourceReference": {
1207 "description": "A reference to a particular snapshot of the source t ree used to build and deploy an application.",
1208 "id": "SourceReference",
1209 "properties": {
1210 "repository": {
1211 "description": "Optional. A URI string identifying the repos itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
1212 "type": "string"
1213 },
1214 "revisionId": {
1215 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "",
1216 "type": "string"
1217 }
1218 },
1219 "type": "object"
1220 },
1221 "WriteLogEntriesResponse": {
1222 "description": "Result returned from WriteLogEntries. empty",
1223 "id": "WriteLogEntriesResponse",
1224 "properties": {},
1225 "type": "object"
1226 },
1227 "Exponential": {
1228 "description": "Specifies an exponential sequence of buckets that ha ve a width that is proportional to the value of the lower bound. Each bucket rep resents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries: Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).",
1229 "id": "Exponential",
1230 "properties": {
1231 "scale": {
1232 "description": "Must be greater than 0.",
1233 "format": "double",
1234 "type": "number"
1235 },
1236 "numFiniteBuckets": {
1237 "description": "Must be greater than 0.",
1238 "format": "int32",
1239 "type": "integer"
1240 },
1241 "growthFactor": {
1242 "description": "Must be greater than 1.",
1243 "format": "double",
1244 "type": "number"
1245 }
1246 },
1247 "type": "object"
1248 },
1249 "WriteLogEntriesRequest": {
1250 "description": "The parameters to WriteLogEntries.",
1251 "id": "WriteLogEntriesRequest",
1252 "properties": {
1253 "partialSuccess": {
1254 "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.",
1255 "type": "boolean"
1256 },
1257 "labels": {
1258 "additionalProperties": {
1259 "type": "string"
1260 },
1261 "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.",
1262 "type": "object"
1263 },
1264 "resource": {
1265 "$ref": "MonitoredResource",
1266 "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 ."
1267 },
1268 "entries": {
1269 "description": "Required. The log entries to send to Stackdr iver Logging. The order of log entries in this list does not matter. Values supp lied in this method's log_name, resource, and labels fields are copied into thos e log entries in this list that do not include values for their corresponding fi elds. For more information, see the LogEntry type.If the timestamp or insert_id fields are missing in log entries, then this method supplies the current time or a unique identifier, respectively. The supplied values are chosen so that, amon g the log entries that did not supply their own values, the entries earlier in t he list will sort before the entries later in the list. See the entries.list met hod.Log entries with timestamps that are more than the logs retention period in the past or more than 24 hours in the future might be discarded. Discarding does not return an error.To improve throughput and to avoid exceeding the quota limi t for calls to entries.write, you should try to include several log entries in t his list, rather than calling this method for each individual log entry.",
1270 "items": {
1271 "$ref": "LogEntry"
1272 },
1273 "type": "array"
1274 },
1275 "logName": {
1276 "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.",
1277 "type": "string"
1278 }
1279 },
841 "type": "object" 1280 "type": "object"
842 }, 1281 },
843 "LabelDescriptor": { 1282 "LabelDescriptor": {
844 "description": "A description of a label.", 1283 "description": "A description of a label.",
845 "id": "LabelDescriptor", 1284 "id": "LabelDescriptor",
846 "properties": { 1285 "properties": {
847 "key": {
848 "description": "The label key.",
849 "type": "string"
850 },
851 "description": {
852 "description": "A human-readable description for the label." ,
853 "type": "string"
854 },
855 "valueType": { 1286 "valueType": {
856 "description": "The type of data that can be assigned to the label.", 1287 "description": "The type of data that can be assigned to the label.",
857 "enum": [ 1288 "enum": [
858 "STRING", 1289 "STRING",
859 "BOOL", 1290 "BOOL",
860 "INT64" 1291 "INT64"
861 ], 1292 ],
862 "enumDescriptions": [ 1293 "enumDescriptions": [
863 "A variable-length string. This is the default.", 1294 "A variable-length string. This is the default.",
864 "Boolean; true or false.", 1295 "Boolean; true or false.",
865 "A 64-bit signed integer." 1296 "A 64-bit signed integer."
866 ], 1297 ],
867 "type": "string" 1298 "type": "string"
1299 },
1300 "key": {
1301 "description": "The label key.",
1302 "type": "string"
1303 },
1304 "description": {
1305 "description": "A human-readable description for the label." ,
1306 "type": "string"
868 } 1307 }
869 }, 1308 },
870 "type": "object" 1309 "type": "object"
871 }, 1310 },
872 "MonitoredResourceDescriptor": { 1311 "BucketOptions": {
873 "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.", 1312 "description": "BucketOptions describes the bucket boundaries used t o create a histogram for the distribution. The buckets can be in a linear sequen ce, an exponential sequence, or each bucket can be specified explicitly. BucketO ptions does not include the number of values in each bucket.A bucket has an incl usive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bu cket (number 0), zero or more finite buckets (number 1 through N - 2) and an ove rflow bucket (number N - 1). The buckets are contiguous: the lower bound of buck et i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span th e whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.",
874 "id": "MonitoredResourceDescriptor", 1313 "id": "BucketOptions",
875 "properties": { 1314 "properties": {
876 "description": { 1315 "exponentialBuckets": {
877 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.", 1316 "$ref": "Exponential",
878 "type": "string" 1317 "description": "The exponential buckets."
879 }, 1318 },
880 "displayName": { 1319 "explicitBuckets": {
881 "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\".", 1320 "$ref": "Explicit",
882 "type": "string" 1321 "description": "The explicit buckets."
883 }, 1322 },
884 "type": { 1323 "linearBuckets": {
885 "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.", 1324 "$ref": "Linear",
886 "type": "string" 1325 "description": "The linear bucket."
887 },
888 "labels": {
889 "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 \".",
890 "items": {
891 "$ref": "LabelDescriptor"
892 },
893 "type": "array"
894 },
895 "name": {
896 "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}\".",
897 "type": "string"
898 }
899 },
900 "type": "object"
901 },
902 "LogEntrySourceLocation": {
903 "description": "Additional information about the source code locatio n that produced the log entry.",
904 "id": "LogEntrySourceLocation",
905 "properties": {
906 "file": {
907 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
908 "type": "string"
909 },
910 "function": {
911 "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). ",
912 "type": "string"
913 },
914 "line": {
915 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.",
916 "format": "int64",
917 "type": "string"
918 }
919 },
920 "type": "object"
921 },
922 "ListLogEntriesResponse": {
923 "description": "Result returned from ListLogEntries.",
924 "id": "ListLogEntriesResponse",
925 "properties": {
926 "entries": {
927 "description": "A list of log entries.",
928 "items": {
929 "$ref": "LogEntry"
930 },
931 "type": "array"
932 },
933 "nextPageToken": {
934 "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.",
935 "type": "string"
936 }
937 },
938 "type": "object"
939 },
940 "LogLine": {
941 "description": "Application log line emitted while processing a requ est.",
942 "id": "LogLine",
943 "properties": {
944 "logMessage": {
945 "description": "App-provided log message.",
946 "type": "string"
947 },
948 "severity": {
949 "description": "Severity of this log entry.",
950 "enum": [
951 "DEFAULT",
952 "DEBUG",
953 "INFO",
954 "NOTICE",
955 "WARNING",
956 "ERROR",
957 "CRITICAL",
958 "ALERT",
959 "EMERGENCY"
960 ],
961 "enumDescriptions": [
962 "(0) The log entry has no assigned severity level.",
963 "(100) Debug or trace information.",
964 "(200) Routine information, such as ongoing status or pe rformance.",
965 "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
966 "(400) Warning events might cause problems.",
967 "(500) Error events are likely to cause problems.",
968 "(600) Critical events cause more severe problems or out ages.",
969 "(700) A person must take an action immediately.",
970 "(800) One or more systems are unusable."
971 ],
972 "type": "string"
973 },
974 "sourceLocation": {
975 "$ref": "SourceLocation",
976 "description": "Where in the source code this log message wa s written."
977 },
978 "time": {
979 "description": "Approximate time when this log entry was mad e.",
980 "format": "google-datetime",
981 "type": "string"
982 } 1326 }
983 }, 1327 },
984 "type": "object" 1328 "type": "object"
985 }, 1329 },
986 "ListLogMetricsResponse": { 1330 "ListLogMetricsResponse": {
987 "description": "Result returned from ListLogMetrics.", 1331 "description": "Result returned from ListLogMetrics.",
988 "id": "ListLogMetricsResponse", 1332 "id": "ListLogMetricsResponse",
989 "properties": { 1333 "properties": {
1334 "nextPageToken": {
1335 "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.",
1336 "type": "string"
1337 },
990 "metrics": { 1338 "metrics": {
991 "description": "A list of logs-based metrics.", 1339 "description": "A list of logs-based metrics.",
992 "items": { 1340 "items": {
993 "$ref": "LogMetric" 1341 "$ref": "LogMetric"
994 }, 1342 },
995 "type": "array" 1343 "type": "array"
996 },
997 "nextPageToken": {
998 "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.",
999 "type": "string"
1000 } 1344 }
1001 }, 1345 },
1002 "type": "object" 1346 "type": "object"
1347 },
1348 "MetricDescriptor": {
1349 "description": "Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes t he metric type's existing data unusable.",
1350 "id": "MetricDescriptor",
1351 "properties": {
1352 "name": {
1353 "description": "The resource name of the metric descriptor. Depending on the implementation, the name typically includes: (1) the parent res ource name that defines the scope of the metric type or of its data; and (2) the metric's URL-encoded type, which also appears in the type field of this descrip tor. For example, following is the resource name of a custom metric within the G CP project my-project-id:\n\"projects/my-project-id/metricDescriptors/custom.goo gleapis.com%2Finvoice%2Fpaid%2Famount\"\n",
1354 "type": "string"
1355 },
1356 "type": {
1357 "description": "The metric type, including its DNS name pref ix. The type is not URL-encoded. All user-defined custom metric types have the D NS name custom.googleapis.com. Metric types should use a natural hierarchical gr ouping. For example:\n\"custom.googleapis.com/invoice/paid/amount\"\n\"appengine .googleapis.com/http/server/response_latencies\"\n",
1358 "type": "string"
1359 },
1360 "valueType": {
1361 "description": "Whether the measurement is an integer, a flo ating-point number, etc. Some combinations of metric_kind and value_type might n ot be supported.",
1362 "enum": [
1363 "VALUE_TYPE_UNSPECIFIED",
1364 "BOOL",
1365 "INT64",
1366 "DOUBLE",
1367 "STRING",
1368 "DISTRIBUTION",
1369 "MONEY"
1370 ],
1371 "enumDescriptions": [
1372 "Do not use this default value.",
1373 "The value is a boolean. This value type can be used onl y if the metric kind is GAUGE.",
1374 "The value is a signed 64-bit integer.",
1375 "The value is a double precision floating point number." ,
1376 "The value is a text string. This value type can be used only if the metric kind is GAUGE.",
1377 "The value is a Distribution.",
1378 "The value is money."
1379 ],
1380 "type": "string"
1381 },
1382 "metricKind": {
1383 "description": "Whether the metric records instantaneous val ues, changes to a value, etc. Some combinations of metric_kind and value_type mi ght not be supported.",
1384 "enum": [
1385 "METRIC_KIND_UNSPECIFIED",
1386 "GAUGE",
1387 "DELTA",
1388 "CUMULATIVE"
1389 ],
1390 "enumDescriptions": [
1391 "Do not use this default value.",
1392 "An instantaneous measurement of a value.",
1393 "The change in a value during a time interval.",
1394 "A value accumulated over a time interval. Cumulative me asurements in a time series should have the same start time and increasing end t imes, until an event resets the cumulative value to zero and sets a new start ti me for the following points."
1395 ],
1396 "type": "string"
1397 },
1398 "displayName": {
1399 "description": "A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for ex ample \"Request count\".",
1400 "type": "string"
1401 },
1402 "description": {
1403 "description": "A detailed description of the metric, which can be used in documentation.",
1404 "type": "string"
1405 },
1406 "unit": {
1407 "description": "The unit in which the metric value is report ed. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. T he supported units are a subset of The Unified Code for Units of Measure (http:/ /unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)\nbit bit\nBy byte\ns second\nmin minute\nh hour\nd dayPrefixes (PREFIX)\nk kilo (10**3)\nM mega (10** 6)\nG giga (10**9)\nT tera (10**12)\nP peta (10**15)\nE exa (10**18)\nZ zetta (1 0**21)\nY yotta (10**24)\nm milli (10**-3)\nu micro (10**-6)\nn nano (10**-9)\np pico (10**-12)\nf femto (10**-15)\na atto (10**-18)\nz zepto (10**-21)\ny yocto (10**-24)\nKi kibi (2**10)\nMi mebi (2**20)\nGi gibi (2**30)\nTi tebi (2**40)Gr ammarThe grammar includes the dimensionless unit 1, such as 1/s.The grammar also includes these connectors:\n/ division (as an infix operator, e.g. 1/s).\n. mul tiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is as follo ws:\nExpression = Component { \".\" Component } { \"/\" Component } ;\n\nCompone nt = [ PREFIX ] UNIT [ Annotation ]\n | Annotation\n | \"1\"\n ;\n\nAnnotation = \"{\" NAME \"}\" ;\nNotes:\nAnnotation is just a com ment if it follows a UNIT and is equivalent to 1 if it is used alone. For examp les, {requests}/s == 1/s, By{transmitted}/s == By/s.\nNAME is a sequence of non -blank printable ASCII characters not containing '{' or '}'.",
1408 "type": "string"
1409 },
1410 "labels": {
1411 "description": "The set of labels that can be used to descri be a specific instance of this metric type. For example, the appengine.googleapi s.com/http/server/response_latencies metric type has a label for the HTTP respon se code, response_code, so you can look at latencies for successful responses or just for responses that failed.",
1412 "items": {
1413 "$ref": "LabelDescriptor"
1414 },
1415 "type": "array"
1416 }
1417 },
1418 "type": "object"
1003 }, 1419 },
1004 "LogEntry": { 1420 "LogEntry": {
1005 "description": "An individual entry in a log.", 1421 "description": "An individual entry in a log.",
1006 "id": "LogEntry", 1422 "id": "LogEntry",
1007 "properties": { 1423 "properties": {
1008 "receiveTimestamp": {
1009 "description": "Output only. The time the log entry was rece ived by Stackdriver Logging.",
1010 "format": "google-datetime",
1011 "type": "string"
1012 },
1013 "timestamp": {
1014 "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.",
1015 "format": "google-datetime",
1016 "type": "string"
1017 },
1018 "logName": { 1424 "logName": {
1019 "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.", 1425 "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.",
1020 "type": "string" 1426 "type": "string"
1021 }, 1427 },
1022 "httpRequest": { 1428 "httpRequest": {
1023 "$ref": "HttpRequest", 1429 "$ref": "HttpRequest",
1024 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable." 1430 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
1025 }, 1431 },
1026 "resource": { 1432 "resource": {
1027 "$ref": "MonitoredResource", 1433 "$ref": "MonitoredResource",
1028 "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." 1434 "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."
1029 }, 1435 },
1030 "jsonPayload": { 1436 "jsonPayload": {
1031 "additionalProperties": { 1437 "additionalProperties": {
1032 "description": "Properties of the object.", 1438 "description": "Properties of the object.",
1033 "type": "any" 1439 "type": "any"
1034 }, 1440 },
1035 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.", 1441 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.",
1036 "type": "object" 1442 "type": "object"
1037 }, 1443 },
1038 "insertId": { 1444 "insertId": {
1039 "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.", 1445 "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 assigns its own unique identifier. The insert_id is also used to orde r log entries that have the same timestamp value.",
1040 "type": "string" 1446 "type": "string"
1041 }, 1447 },
1042 "operation": { 1448 "operation": {
1043 "$ref": "LogEntryOperation", 1449 "$ref": "LogEntryOperation",
1044 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable." 1450 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable."
1045 }, 1451 },
1046 "textPayload": { 1452 "textPayload": {
1047 "description": "The log entry payload, represented as a Unic ode string (UTF-8).", 1453 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
1048 "type": "string" 1454 "type": "string"
1049 }, 1455 },
1050 "protoPayload": { 1456 "protoPayload": {
1051 "additionalProperties": { 1457 "additionalProperties": {
1052 "description": "Properties of the object. Contains field @type with type URL.", 1458 "description": "Properties of the object. Contains field @type with type URL.",
1053 "type": "any" 1459 "type": "any"
1054 }, 1460 },
1055 "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.", 1461 "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.",
1056 "type": "object" 1462 "type": "object"
1057 }, 1463 },
1058 "trace": {
1059 "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",
1060 "type": "string"
1061 },
1062 "labels": { 1464 "labels": {
1063 "additionalProperties": { 1465 "additionalProperties": {
1064 "type": "string" 1466 "type": "string"
1065 }, 1467 },
1066 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.", 1468 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.",
1067 "type": "object" 1469 "type": "object"
1068 }, 1470 },
1471 "trace": {
1472 "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",
1473 "type": "string"
1474 },
1069 "severity": { 1475 "severity": {
1070 "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.", 1476 "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.",
1071 "enum": [ 1477 "enum": [
1072 "DEFAULT", 1478 "DEFAULT",
1073 "DEBUG", 1479 "DEBUG",
1074 "INFO", 1480 "INFO",
1075 "NOTICE", 1481 "NOTICE",
1076 "WARNING", 1482 "WARNING",
1077 "ERROR", 1483 "ERROR",
1078 "CRITICAL", 1484 "CRITICAL",
1079 "ALERT", 1485 "ALERT",
1080 "EMERGENCY" 1486 "EMERGENCY"
1081 ], 1487 ],
1082 "enumDescriptions": [ 1488 "enumDescriptions": [
1083 "(0) The log entry has no assigned severity level.", 1489 "(0) The log entry has no assigned severity level.",
1084 "(100) Debug or trace information.", 1490 "(100) Debug or trace information.",
1085 "(200) Routine information, such as ongoing status or pe rformance.", 1491 "(200) Routine information, such as ongoing status or pe rformance.",
1086 "(300) Normal but significant events, such as start up, shut down, or a configuration change.", 1492 "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
1087 "(400) Warning events might cause problems.", 1493 "(400) Warning events might cause problems.",
1088 "(500) Error events are likely to cause problems.", 1494 "(500) Error events are likely to cause problems.",
1089 "(600) Critical events cause more severe problems or out ages.", 1495 "(600) Critical events cause more severe problems or out ages.",
1090 "(700) A person must take an action immediately.", 1496 "(700) A person must take an action immediately.",
1091 "(800) One or more systems are unusable." 1497 "(800) One or more systems are unusable."
1092 ], 1498 ],
1093 "type": "string" 1499 "type": "string"
1094 }, 1500 },
1095 "sourceLocation": { 1501 "sourceLocation": {
1096 "$ref": "LogEntrySourceLocation", 1502 "$ref": "LogEntrySourceLocation",
1097 "description": "Optional. Source code location information a ssociated with the log entry, if any." 1503 "description": "Optional. Source code location information a ssociated with the log entry, if any."
1098 } 1504 },
1099 }, 1505 "receiveTimestamp": {
1100 "type": "object" 1506 "description": "Output only. The time the log entry was rece ived by Stackdriver Logging.",
1101 }, 1507 "format": "google-datetime",
1102 "Empty": {
1103 "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 {}.",
1104 "id": "Empty",
1105 "properties": {},
1106 "type": "object"
1107 },
1108 "SourceLocation": {
1109 "description": "Specifies a location in a source code file.",
1110 "id": "SourceLocation",
1111 "properties": {
1112 "file": {
1113 "description": "Source file name. Depending on the runtime e nvironment, this might be a simple name or a fully-qualified name.",
1114 "type": "string" 1508 "type": "string"
1115 }, 1509 },
1116 "functionName": { 1510 "timestamp": {
1117 "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).", 1511 "description": "Optional. The time the event described by th e log entry occurred. This time is used to compute the log entry's age and to en force the logs retention period. If this field is omitted in a new log entry, th en Stackdriver Logging assigns it the current time.Incoming log entries should h ave timestamps that are no more than the logs retention period in the past, and no more than 24 hours in the future. See the entries.write API method for more i nformation.",
1118 "type": "string" 1512 "format": "google-datetime",
1119 },
1120 "line": {
1121 "description": "Line within the source file.",
1122 "format": "int64",
1123 "type": "string" 1513 "type": "string"
1124 } 1514 }
1125 }, 1515 },
1126 "type": "object" 1516 "type": "object"
1127 },
1128 "ListLogEntriesRequest": {
1129 "description": "The parameters to ListLogEntries.",
1130 "id": "ListLogEntriesRequest",
1131 "properties": {
1132 "orderBy": {
1133 "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.",
1134 "type": "string"
1135 },
1136 "resourceNames": {
1137 "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.",
1138 "items": {
1139 "type": "string"
1140 },
1141 "type": "array"
1142 },
1143 "projectIds": {
1144 "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. ",
1145 "items": {
1146 "type": "string"
1147 },
1148 "type": "array"
1149 },
1150 "filter": {
1151 "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.",
1152 "type": "string"
1153 },
1154 "pageToken": {
1155 "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.",
1156 "type": "string"
1157 },
1158 "pageSize": {
1159 "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.",
1160 "format": "int32",
1161 "type": "integer"
1162 }
1163 },
1164 "type": "object"
1165 }, 1517 },
1166 "RequestLog": { 1518 "RequestLog": {
1167 "description": "Complete log information about a single HTTP request to an App Engine application.", 1519 "description": "Complete log information about a single HTTP request to an App Engine application.",
1168 "id": "RequestLog", 1520 "id": "RequestLog",
1169 "properties": { 1521 "properties": {
1170 "latency": {
1171 "description": "Latency of the request.",
1172 "format": "google-duration",
1173 "type": "string"
1174 },
1175 "ip": {
1176 "description": "Origin IP address.",
1177 "type": "string"
1178 },
1179 "appId": {
1180 "description": "Application that handled this request.",
1181 "type": "string"
1182 },
1183 "appEngineRelease": {
1184 "description": "App Engine release version.",
1185 "type": "string"
1186 },
1187 "method": {
1188 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
1189 "type": "string"
1190 },
1191 "cost": {
1192 "description": "An indication of the relative cost of servin g this request.",
1193 "format": "double",
1194 "type": "number"
1195 },
1196 "instanceId": {
1197 "description": "An identifier for the instance that handled the request.",
1198 "type": "string"
1199 },
1200 "megaCycles": { 1522 "megaCycles": {
1201 "description": "Number of CPU megacycles used to process req uest.", 1523 "description": "Number of CPU megacycles used to process req uest.",
1202 "format": "int64", 1524 "format": "int64",
1203 "type": "string" 1525 "type": "string"
1204 }, 1526 },
1205 "first": { 1527 "first": {
1206 "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.", 1528 "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.",
1207 "type": "boolean" 1529 "type": "boolean"
1208 }, 1530 },
1209 "versionId": { 1531 "versionId": {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 "description": "Stackdriver Trace identifier for this reques t.", 1565 "description": "Stackdriver Trace identifier for this reques t.",
1244 "type": "string" 1566 "type": "string"
1245 }, 1567 },
1246 "line": { 1568 "line": {
1247 "description": "A list of log lines emitted by the applicati on while serving this request.", 1569 "description": "A list of log lines emitted by the applicati on while serving this request.",
1248 "items": { 1570 "items": {
1249 "$ref": "LogLine" 1571 "$ref": "LogLine"
1250 }, 1572 },
1251 "type": "array" 1573 "type": "array"
1252 }, 1574 },
1575 "taskQueueName": {
1576 "description": "Queue name of the request, in the case of an offline request.",
1577 "type": "string"
1578 },
1253 "referrer": { 1579 "referrer": {
1254 "description": "Referrer URL of request.", 1580 "description": "Referrer URL of request.",
1255 "type": "string" 1581 "type": "string"
1256 }, 1582 },
1257 "taskQueueName": {
1258 "description": "Queue name of the request, in the case of an offline request.",
1259 "type": "string"
1260 },
1261 "requestId": { 1583 "requestId": {
1262 "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.", 1584 "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.",
1263 "type": "string" 1585 "type": "string"
1264 }, 1586 },
1265 "nickname": { 1587 "nickname": {
1266 "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.", 1588 "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.",
1267 "type": "string" 1589 "type": "string"
1268 }, 1590 },
1591 "status": {
1592 "description": "HTTP response status code. Example: 200, 404 .",
1593 "format": "int32",
1594 "type": "integer"
1595 },
1269 "resource": { 1596 "resource": {
1270 "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.", 1597 "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.",
1271 "type": "string" 1598 "type": "string"
1272 }, 1599 },
1273 "pendingTime": { 1600 "pendingTime": {
1274 "description": "Time this request spent in the pending reque st queue.", 1601 "description": "Time this request spent in the pending reque st queue.",
1275 "format": "google-duration", 1602 "format": "google-duration",
1276 "type": "string" 1603 "type": "string"
1277 }, 1604 },
1278 "status": {
1279 "description": "HTTP response status code. Example: 200, 404 .",
1280 "format": "int32",
1281 "type": "integer"
1282 },
1283 "taskName": { 1605 "taskName": {
1284 "description": "Task name of the request, in the case of an offline request.", 1606 "description": "Task name of the request, in the case of an offline request.",
1285 "type": "string" 1607 "type": "string"
1286 }, 1608 },
1287 "urlMapEntry": { 1609 "urlMapEntry": {
1288 "description": "File or class that handled the request.", 1610 "description": "File or class that handled the request.",
1289 "type": "string" 1611 "type": "string"
1290 }, 1612 },
1291 "instanceIndex": { 1613 "instanceIndex": {
1292 "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.", 1614 "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.",
1293 "format": "int32", 1615 "format": "int32",
1294 "type": "integer" 1616 "type": "integer"
1295 }, 1617 },
1296 "host": { 1618 "host": {
1297 "description": "Internet host and port number of the resourc e being requested.", 1619 "description": "Internet host and port number of the resourc e being requested.",
1298 "type": "string" 1620 "type": "string"
1299 }, 1621 },
1300 "finished": { 1622 "finished": {
1301 "description": "Whether this request is finished or active." , 1623 "description": "Whether this request is finished or active." ,
1302 "type": "boolean" 1624 "type": "boolean"
1303 }, 1625 },
1304 "httpVersion": { 1626 "httpVersion": {
1305 "description": "HTTP version of request. Example: \"HTTP/1.1 \".", 1627 "description": "HTTP version of request. Example: \"HTTP/1.1 \".",
1306 "type": "string" 1628 "type": "string"
1307 }, 1629 },
1308 "startTime": { 1630 "startTime": {
1309 "description": "Time when the request started.", 1631 "description": "Time when the request started.",
1310 "format": "google-datetime", 1632 "format": "google-datetime",
1311 "type": "string" 1633 "type": "string"
1634 },
1635 "latency": {
1636 "description": "Latency of the request.",
1637 "format": "google-duration",
1638 "type": "string"
1639 },
1640 "ip": {
1641 "description": "Origin IP address.",
1642 "type": "string"
1643 },
1644 "appId": {
1645 "description": "Application that handled this request.",
1646 "type": "string"
1647 },
1648 "appEngineRelease": {
1649 "description": "App Engine release version.",
1650 "type": "string"
1651 },
1652 "method": {
1653 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
1654 "type": "string"
1655 },
1656 "cost": {
1657 "description": "An indication of the relative cost of servin g this request.",
1658 "format": "double",
1659 "type": "number"
1660 },
1661 "instanceId": {
1662 "description": "An identifier for the instance that handled the request.",
1663 "type": "string"
1312 } 1664 }
1313 }, 1665 },
1314 "type": "object" 1666 "type": "object"
1315 }, 1667 },
1316 "ListMonitoredResourceDescriptorsResponse": { 1668 "ListMonitoredResourceDescriptorsResponse": {
1317 "description": "Result returned from ListMonitoredResourceDescriptor s.", 1669 "description": "Result returned from ListMonitoredResourceDescriptor s.",
1318 "id": "ListMonitoredResourceDescriptorsResponse", 1670 "id": "ListMonitoredResourceDescriptorsResponse",
1319 "properties": { 1671 "properties": {
1672 "nextPageToken": {
1673 "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." ,
1674 "type": "string"
1675 },
1320 "resourceDescriptors": { 1676 "resourceDescriptors": {
1321 "description": "A list of resource descriptors.", 1677 "description": "A list of resource descriptors.",
1322 "items": { 1678 "items": {
1323 "$ref": "MonitoredResourceDescriptor" 1679 "$ref": "MonitoredResourceDescriptor"
1324 }, 1680 },
1325 "type": "array" 1681 "type": "array"
1326 },
1327 "nextPageToken": {
1328 "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." ,
1329 "type": "string"
1330 } 1682 }
1331 }, 1683 },
1332 "type": "object" 1684 "type": "object"
1333 },
1334 "SourceReference": {
1335 "description": "A reference to a particular snapshot of the source t ree used to build and deploy an application.",
1336 "id": "SourceReference",
1337 "properties": {
1338 "revisionId": {
1339 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "",
1340 "type": "string"
1341 },
1342 "repository": {
1343 "description": "Optional. A URI string identifying the repos itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
1344 "type": "string"
1345 }
1346 },
1347 "type": "object"
1348 },
1349 "LogMetric": {
1350 "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.",
1351 "id": "LogMetric",
1352 "properties": {
1353 "filter": {
1354 "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.",
1355 "type": "string"
1356 },
1357 "name": {
1358 "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\".",
1359 "type": "string"
1360 },
1361 "description": {
1362 "description": "Optional. A description of this metric, whic h is used in documentation.",
1363 "type": "string"
1364 },
1365 "version": {
1366 "description": "Output only. The API version that created or updated this metric. This value is currently always set to V2.",
1367 "enum": [
1368 "V2",
1369 "V1"
1370 ],
1371 "enumDescriptions": [
1372 "Stackdriver Logging API v2.",
1373 "Stackdriver Logging API v1."
1374 ],
1375 "type": "string"
1376 }
1377 },
1378 "type": "object"
1379 },
1380 "LogEntryOperation": {
1381 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.",
1382 "id": "LogEntryOperation",
1383 "properties": {
1384 "last": {
1385 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
1386 "type": "boolean"
1387 },
1388 "id": {
1389 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.",
1390 "type": "string"
1391 },
1392 "first": {
1393 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.",
1394 "type": "boolean"
1395 },
1396 "producer": {
1397 "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\".",
1398 "type": "string"
1399 }
1400 },
1401 "type": "object"
1402 },
1403 "WriteLogEntriesResponse": {
1404 "description": "Result returned from WriteLogEntries. empty",
1405 "id": "WriteLogEntriesResponse",
1406 "properties": {},
1407 "type": "object"
1408 },
1409 "MonitoredResource": {
1410 "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",
1411 "id": "MonitoredResource",
1412 "properties": {
1413 "type": {
1414 "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.",
1415 "type": "string"
1416 },
1417 "labels": {
1418 "additionalProperties": {
1419 "type": "string"
1420 },
1421 "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\".",
1422 "type": "object"
1423 }
1424 },
1425 "type": "object"
1426 },
1427 "LogSink": {
1428 "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.",
1429 "id": "LogSink",
1430 "properties": {
1431 "outputVersionFormat": {
1432 "description": "Deprecated. The log entry format to use for this sink's exported log entries. The v2 format is used by default and cannot be changed.",
1433 "enum": [
1434 "VERSION_FORMAT_UNSPECIFIED",
1435 "V2",
1436 "V1"
1437 ],
1438 "enumDescriptions": [
1439 "An unspecified format version that will default to V2." ,
1440 "LogEntry version 2 format.",
1441 "LogEntry version 1 format."
1442 ],
1443 "type": "string"
1444 },
1445 "name": {
1446 "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.",
1447 "type": "string"
1448 },
1449 "includeChildren": {
1450 "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",
1451 "type": "boolean"
1452 },
1453 "destination": {
1454 "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.",
1455 "type": "string"
1456 },
1457 "filter": {
1458 "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",
1459 "type": "string"
1460 },
1461 "endTime": {
1462 "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.",
1463 "format": "google-datetime",
1464 "type": "string"
1465 },
1466 "startTime": {
1467 "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.",
1468 "format": "google-datetime",
1469 "type": "string"
1470 },
1471 "writerIdentity": {
1472 "description": "Output only. An IAM identity&mdash;a service account or group&mdash;under which Stackdriver Logging writes the exported log entries to the sink's destination. This field is set by sinks.create and sinks.u pdate, based on the setting of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from thi s sink will fail. For more information, see Granting access for a resource. Cons ult the destination service's documentation to determine the appropriate IAM rol es to assign to the identity.",
1473 "type": "string"
1474 }
1475 },
1476 "type": "object"
1477 },
1478 "WriteLogEntriesRequest": {
1479 "description": "The parameters to WriteLogEntries.",
1480 "id": "WriteLogEntriesRequest",
1481 "properties": {
1482 "labels": {
1483 "additionalProperties": {
1484 "type": "string"
1485 },
1486 "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.",
1487 "type": "object"
1488 },
1489 "resource": {
1490 "$ref": "MonitoredResource",
1491 "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 ."
1492 },
1493 "entries": {
1494 "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.",
1495 "items": {
1496 "$ref": "LogEntry"
1497 },
1498 "type": "array"
1499 },
1500 "logName": {
1501 "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.",
1502 "type": "string"
1503 },
1504 "partialSuccess": {
1505 "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.",
1506 "type": "boolean"
1507 }
1508 },
1509 "type": "object"
1510 } 1685 }
1511 }, 1686 },
1512 "servicePath": "", 1687 "servicePath": "",
1513 "title": "Stackdriver Logging API", 1688 "title": "Stackdriver Logging API",
1514 "version": "v2beta1" 1689 "version": "v2beta1"
1515 } 1690 }
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