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

Side by Side Diff: discovery/googleapis/logging__v2.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
« no previous file with comments | « discovery/googleapis/licensing__v1.json ('k') | discovery/googleapis/manufacturers__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/logging.write": { 5 "https://www.googleapis.com/auth/logging.write": {
6 "description": "Submit log data for your projects" 6 "description": "Submit log data for your projects"
7 }, 7 },
8 "https://www.googleapis.com/auth/logging.read": { 8 "https://www.googleapis.com/auth/logging.read": {
9 "description": "View log data for your projects" 9 "description": "View log data for your projects"
10 }, 10 },
(...skipping 19 matching lines...) Expand all
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:v2", 34 "id": "logging:v2",
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 "pp": {
41 "default": "true",
42 "description": "Pretty-print response.",
43 "location": "query",
44 "type": "boolean"
45 },
46 "bearer_token": {
47 "description": "OAuth bearer token.",
48 "location": "query",
49 "type": "string"
50 },
51 "oauth_token": {
52 "description": "OAuth 2.0 token for the current user.",
53 "location": "query",
54 "type": "string"
55 },
56 "upload_protocol": { 40 "upload_protocol": {
57 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 41 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
58 "location": "query", 42 "location": "query",
59 "type": "string" 43 "type": "string"
60 }, 44 },
61 "prettyPrint": { 45 "prettyPrint": {
62 "default": "true", 46 "default": "true",
63 "description": "Returns response with indentations and line breaks." , 47 "description": "Returns response with indentations and line breaks." ,
64 "location": "query", 48 "location": "query",
65 "type": "boolean" 49 "type": "boolean"
66 }, 50 },
51 "uploadType": {
52 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
53 "location": "query",
54 "type": "string"
55 },
67 "fields": { 56 "fields": {
68 "description": "Selector specifying which fields to include in a par tial response.", 57 "description": "Selector specifying which fields to include in a par tial response.",
69 "location": "query", 58 "location": "query",
70 "type": "string" 59 "type": "string"
71 }, 60 },
72 "uploadType": { 61 "callback": {
73 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 62 "description": "JSONP",
74 "location": "query", 63 "location": "query",
75 "type": "string" 64 "type": "string"
76 }, 65 },
77 "$.xgafv": { 66 "$.xgafv": {
78 "description": "V1 error format.", 67 "description": "V1 error format.",
79 "enum": [ 68 "enum": [
80 "1", 69 "1",
81 "2" 70 "2"
82 ], 71 ],
83 "enumDescriptions": [ 72 "enumDescriptions": [
84 "v1 error format", 73 "v1 error format",
85 "v2 error format" 74 "v2 error format"
86 ], 75 ],
87 "location": "query", 76 "location": "query",
88 "type": "string" 77 "type": "string"
89 }, 78 },
90 "callback": {
91 "description": "JSONP",
92 "location": "query",
93 "type": "string"
94 },
95 "alt": { 79 "alt": {
96 "default": "json", 80 "default": "json",
97 "description": "Data format for response.", 81 "description": "Data format for response.",
98 "enum": [ 82 "enum": [
99 "json", 83 "json",
100 "media", 84 "media",
101 "proto" 85 "proto"
102 ], 86 ],
103 "enumDescriptions": [ 87 "enumDescriptions": [
104 "Responses with Content-Type of application/json", 88 "Responses with Content-Type of application/json",
(...skipping 10 matching lines...) Expand all
115 }, 99 },
116 "access_token": { 100 "access_token": {
117 "description": "OAuth access token.", 101 "description": "OAuth access token.",
118 "location": "query", 102 "location": "query",
119 "type": "string" 103 "type": "string"
120 }, 104 },
121 "quotaUser": { 105 "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.", 106 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
123 "location": "query", 107 "location": "query",
124 "type": "string" 108 "type": "string"
109 },
110 "pp": {
111 "default": "true",
112 "description": "Pretty-print response.",
113 "location": "query",
114 "type": "boolean"
115 },
116 "oauth_token": {
117 "description": "OAuth 2.0 token for the current user.",
118 "location": "query",
119 "type": "string"
120 },
121 "bearer_token": {
122 "description": "OAuth bearer token.",
123 "location": "query",
124 "type": "string"
125 } 125 }
126 }, 126 },
127 "protocol": "rest", 127 "protocol": "rest",
128 "resources": { 128 "resources": {
129 "projects": { 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": "v2/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 },
162 "organizations": {
130 "resources": { 163 "resources": {
131 "metrics": { 164 "sinks": {
132 "methods": { 165 "methods": {
133 "delete": { 166 "get": {
134 "description": "Deletes a logs-based metric.", 167 "description": "Gets a sink.",
135 "httpMethod": "DELETE", 168 "httpMethod": "GET",
136 "id": "logging.projects.metrics.delete", 169 "id": "logging.organizations.sinks.get",
137 "parameterOrder": [ 170 "parameterOrder": [
138 "metricName" 171 "sinkName"
139 ], 172 ],
140 "parameters": { 173 "parameters": {
141 "metricName": { 174 "sinkName": {
142 "description": "The resource name of the met ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", 175 "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\".",
143 "location": "path", 176 "location": "path",
144 "pattern": "^projects/[^/]+/metrics/[^/]+$", 177 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
145 "required": true, 178 "required": true,
146 "type": "string" 179 "type": "string"
147 } 180 }
148 }, 181 },
149 "path": "v2/{+metricName}", 182 "path": "v2/{+sinkName}",
150 "response": { 183 "response": {
151 "$ref": "Empty" 184 "$ref": "LogSink"
152 }, 185 },
153 "scopes": [ 186 "scopes": [
154 "https://www.googleapis.com/auth/cloud-platform" , 187 "https://www.googleapis.com/auth/cloud-platform" ,
155 "https://www.googleapis.com/auth/logging.admin",
156 "https://www.googleapis.com/auth/logging.write"
157 ]
158 },
159 "get": {
160 "description": "Gets a logs-based metric.",
161 "httpMethod": "GET",
162 "id": "logging.projects.metrics.get",
163 "parameterOrder": [
164 "metricName"
165 ],
166 "parameters": {
167 "metricName": {
168 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
169 "location": "path",
170 "pattern": "^projects/[^/]+/metrics/[^/]+$",
171 "required": true,
172 "type": "string"
173 }
174 },
175 "path": "v2/{+metricName}",
176 "response": {
177 "$ref": "LogMetric"
178 },
179 "scopes": [
180 "https://www.googleapis.com/auth/cloud-platform" ,
181 "https://www.googleapis.com/auth/cloud-platform. read-only", 188 "https://www.googleapis.com/auth/cloud-platform. read-only",
182 "https://www.googleapis.com/auth/logging.admin", 189 "https://www.googleapis.com/auth/logging.admin",
183 "https://www.googleapis.com/auth/logging.read" 190 "https://www.googleapis.com/auth/logging.read"
184 ] 191 ]
185 }, 192 },
186 "list": { 193 "patch": {
187 "description": "Lists logs-based metrics.", 194 "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.",
188 "httpMethod": "GET", 195 "httpMethod": "PATCH",
189 "id": "logging.projects.metrics.list", 196 "id": "logging.organizations.sinks.patch",
190 "parameterOrder": [ 197 "parameterOrder": [
191 "parent" 198 "sinkName"
192 ], 199 ],
193 "parameters": { 200 "parameters": {
194 "pageToken": { 201 "updateMask": {
195 "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.", 202 "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.",
203 "format": "google-fieldmask",
196 "location": "query", 204 "location": "query",
197 "type": "string" 205 "type": "string"
198 }, 206 },
199 "pageSize": { 207 "uniqueWriterIdentity": {
200 "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.", 208 "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.",
201 "format": "int32",
202 "location": "query", 209 "location": "query",
203 "type": "integer" 210 "type": "boolean"
204 }, 211 },
205 "parent": { 212 "sinkName": {
206 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n", 213 "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\".",
207 "location": "path", 214 "location": "path",
208 "pattern": "^projects/[^/]+$", 215 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
209 "required": true, 216 "required": true,
210 "type": "string" 217 "type": "string"
211 } 218 }
212 }, 219 },
213 "path": "v2/{+parent}/metrics", 220 "path": "v2/{+sinkName}",
221 "request": {
222 "$ref": "LogSink"
223 },
214 "response": { 224 "response": {
215 "$ref": "ListLogMetricsResponse" 225 "$ref": "LogSink"
216 }, 226 },
217 "scopes": [ 227 "scopes": [
218 "https://www.googleapis.com/auth/cloud-platform" , 228 "https://www.googleapis.com/auth/cloud-platform" ,
219 "https://www.googleapis.com/auth/cloud-platform. read-only", 229 "https://www.googleapis.com/auth/logging.admin"
220 "https://www.googleapis.com/auth/logging.admin",
221 "https://www.googleapis.com/auth/logging.read"
222 ] 230 ]
223 }, 231 },
224 "update": { 232 "update": {
225 "description": "Creates or updates a logs-based metr ic.", 233 "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.",
226 "httpMethod": "PUT", 234 "httpMethod": "PUT",
227 "id": "logging.projects.metrics.update", 235 "id": "logging.organizations.sinks.update",
228 "parameterOrder": [ 236 "parameterOrder": [
229 "metricName" 237 "sinkName"
230 ], 238 ],
231 "parameters": { 239 "parameters": {
232 "metricName": { 240 "updateMask": {
233 "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 .", 241 "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.",
242 "format": "google-fieldmask",
243 "location": "query",
244 "type": "string"
245 },
246 "uniqueWriterIdentity": {
247 "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.",
248 "location": "query",
249 "type": "boolean"
250 },
251 "sinkName": {
252 "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\".",
234 "location": "path", 253 "location": "path",
235 "pattern": "^projects/[^/]+/metrics/[^/]+$", 254 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
236 "required": true, 255 "required": true,
237 "type": "string" 256 "type": "string"
238 } 257 }
239 }, 258 },
240 "path": "v2/{+metricName}", 259 "path": "v2/{+sinkName}",
241 "request": { 260 "request": {
242 "$ref": "LogMetric" 261 "$ref": "LogSink"
243 }, 262 },
244 "response": { 263 "response": {
245 "$ref": "LogMetric" 264 "$ref": "LogSink"
246 }, 265 },
247 "scopes": [ 266 "scopes": [
248 "https://www.googleapis.com/auth/cloud-platform" , 267 "https://www.googleapis.com/auth/cloud-platform" ,
249 "https://www.googleapis.com/auth/logging.admin", 268 "https://www.googleapis.com/auth/logging.admin"
250 "https://www.googleapis.com/auth/logging.write"
251 ] 269 ]
252 }, 270 },
253 "create": {
254 "description": "Creates a logs-based metric.",
255 "httpMethod": "POST",
256 "id": "logging.projects.metrics.create",
257 "parameterOrder": [
258 "parent"
259 ],
260 "parameters": {
261 "parent": {
262 "description": "The resource name of the pro ject in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric m ust be provided in the request.",
263 "location": "path",
264 "pattern": "^projects/[^/]+$",
265 "required": true,
266 "type": "string"
267 }
268 },
269 "path": "v2/{+parent}/metrics",
270 "request": {
271 "$ref": "LogMetric"
272 },
273 "response": {
274 "$ref": "LogMetric"
275 },
276 "scopes": [
277 "https://www.googleapis.com/auth/cloud-platform" ,
278 "https://www.googleapis.com/auth/logging.admin",
279 "https://www.googleapis.com/auth/logging.write"
280 ]
281 }
282 }
283 },
284 "sinks": {
285 "methods": {
286 "delete": { 271 "delete": {
287 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.", 272 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
288 "httpMethod": "DELETE", 273 "httpMethod": "DELETE",
289 "id": "logging.projects.sinks.delete", 274 "id": "logging.organizations.sinks.delete",
290 "parameterOrder": [ 275 "parameterOrder": [
291 "sinkName" 276 "sinkName"
292 ], 277 ],
293 "parameters": { 278 "parameters": {
294 "sinkName": { 279 "sinkName": {
295 "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\".", 280 "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\".",
296 "location": "path", 281 "location": "path",
297 "pattern": "^projects/[^/]+/sinks/[^/]+$", 282 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
298 "required": true, 283 "required": true,
299 "type": "string" 284 "type": "string"
300 } 285 }
301 }, 286 },
302 "path": "v2/{+sinkName}", 287 "path": "v2/{+sinkName}",
303 "response": { 288 "response": {
304 "$ref": "Empty" 289 "$ref": "Empty"
305 }, 290 },
306 "scopes": [ 291 "scopes": [
307 "https://www.googleapis.com/auth/cloud-platform" , 292 "https://www.googleapis.com/auth/cloud-platform" ,
308 "https://www.googleapis.com/auth/logging.admin" 293 "https://www.googleapis.com/auth/logging.admin"
309 ] 294 ]
310 }, 295 },
311 "list": { 296 "list": {
312 "description": "Lists sinks.", 297 "description": "Lists sinks.",
313 "httpMethod": "GET", 298 "httpMethod": "GET",
314 "id": "logging.projects.sinks.list", 299 "id": "logging.organizations.sinks.list",
315 "parameterOrder": [ 300 "parameterOrder": [
316 "parent" 301 "parent"
317 ], 302 ],
318 "parameters": { 303 "parameters": {
319 "pageToken": { 304 "pageToken": {
320 "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.", 305 "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.",
321 "location": "query", 306 "location": "query",
322 "type": "string" 307 "type": "string"
323 }, 308 },
324 "pageSize": { 309 "pageSize": {
325 "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.", 310 "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.",
326 "format": "int32", 311 "format": "int32",
327 "location": "query", 312 "location": "query",
328 "type": "integer" 313 "type": "integer"
329 }, 314 },
330 "parent": { 315 "parent": {
331 "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", 316 "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",
332 "location": "path", 317 "location": "path",
333 "pattern": "^projects/[^/]+$", 318 "pattern": "^organizations/[^/]+$",
334 "required": true, 319 "required": true,
335 "type": "string" 320 "type": "string"
336 } 321 }
337 }, 322 },
338 "path": "v2/{+parent}/sinks", 323 "path": "v2/{+parent}/sinks",
339 "response": { 324 "response": {
340 "$ref": "ListSinksResponse" 325 "$ref": "ListSinksResponse"
341 }, 326 },
342 "scopes": [ 327 "scopes": [
343 "https://www.googleapis.com/auth/cloud-platform" , 328 "https://www.googleapis.com/auth/cloud-platform" ,
344 "https://www.googleapis.com/auth/cloud-platform. read-only", 329 "https://www.googleapis.com/auth/cloud-platform. read-only",
345 "https://www.googleapis.com/auth/logging.admin", 330 "https://www.googleapis.com/auth/logging.admin",
346 "https://www.googleapis.com/auth/logging.read" 331 "https://www.googleapis.com/auth/logging.read"
347 ] 332 ]
348 }, 333 },
349 "create": { 334 "create": {
350 "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.", 335 "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.",
351 "httpMethod": "POST", 336 "httpMethod": "POST",
352 "id": "logging.projects.sinks.create", 337 "id": "logging.organizations.sinks.create",
353 "parameterOrder": [ 338 "parameterOrder": [
354 "parent" 339 "parent"
355 ], 340 ],
356 "parameters": { 341 "parameters": {
357 "parent": { 342 "parent": {
358 "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\".", 343 "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\".",
359 "location": "path", 344 "location": "path",
360 "pattern": "^projects/[^/]+$", 345 "pattern": "^organizations/[^/]+$",
361 "required": true, 346 "required": true,
362 "type": "string" 347 "type": "string"
363 }, 348 },
364 "uniqueWriterIdentity": { 349 "uniqueWriterIdentity": {
365 "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.", 350 "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.",
366 "location": "query", 351 "location": "query",
367 "type": "boolean" 352 "type": "boolean"
368 } 353 }
369 }, 354 },
370 "path": "v2/{+parent}/sinks", 355 "path": "v2/{+parent}/sinks",
371 "request": { 356 "request": {
372 "$ref": "LogSink" 357 "$ref": "LogSink"
373 }, 358 },
374 "response": { 359 "response": {
375 "$ref": "LogSink" 360 "$ref": "LogSink"
376 }, 361 },
377 "scopes": [ 362 "scopes": [
378 "https://www.googleapis.com/auth/cloud-platform" , 363 "https://www.googleapis.com/auth/cloud-platform" ,
379 "https://www.googleapis.com/auth/logging.admin" 364 "https://www.googleapis.com/auth/logging.admin"
380 ] 365 ]
366 }
367 }
368 },
369 "logs": {
370 "methods": {
371 "delete": {
372 "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.",
373 "httpMethod": "DELETE",
374 "id": "logging.organizations.logs.delete",
375 "parameterOrder": [
376 "logName"
377 ],
378 "parameters": {
379 "logName": {
380 "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.",
381 "location": "path",
382 "pattern": "^organizations/[^/]+/logs/[^/]+$ ",
383 "required": true,
384 "type": "string"
385 }
386 },
387 "path": "v2/{+logName}",
388 "response": {
389 "$ref": "Empty"
390 },
391 "scopes": [
392 "https://www.googleapis.com/auth/cloud-platform" ,
393 "https://www.googleapis.com/auth/logging.admin"
394 ]
395 },
396 "list": {
397 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
398 "httpMethod": "GET",
399 "id": "logging.organizations.logs.list",
400 "parameterOrder": [
401 "parent"
402 ],
403 "parameters": {
404 "parent": {
405 "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",
406 "location": "path",
407 "pattern": "^organizations/[^/]+$",
408 "required": true,
409 "type": "string"
410 },
411 "pageToken": {
412 "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.",
413 "location": "query",
414 "type": "string"
415 },
416 "pageSize": {
417 "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.",
418 "format": "int32",
419 "location": "query",
420 "type": "integer"
421 }
422 },
423 "path": "v2/{+parent}/logs",
424 "response": {
425 "$ref": "ListLogsResponse"
426 },
427 "scopes": [
428 "https://www.googleapis.com/auth/cloud-platform" ,
429 "https://www.googleapis.com/auth/cloud-platform. read-only",
430 "https://www.googleapis.com/auth/logging.admin",
431 "https://www.googleapis.com/auth/logging.read"
432 ]
433 }
434 }
435 },
436 "exclusions": {
437 "methods": {
438 "create": {
439 "description": "Creates a new exclusion in a specifi ed parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
440 "httpMethod": "POST",
441 "id": "logging.organizations.exclusions.create",
442 "parameterOrder": [
443 "parent"
444 ],
445 "parameters": {
446 "parent": {
447 "description": "Required. The parent resourc e in which to create the exclusion:\n\"projects/[PROJECT_ID]\"\n\"organizations/ [ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER _ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\"." ,
448 "location": "path",
449 "pattern": "^organizations/[^/]+$",
450 "required": true,
451 "type": "string"
452 }
453 },
454 "path": "v2/{+parent}/exclusions",
455 "request": {
456 "$ref": "LogExclusion"
457 },
458 "response": {
459 "$ref": "LogExclusion"
460 },
461 "scopes": [
462 "https://www.googleapis.com/auth/cloud-platform" ,
463 "https://www.googleapis.com/auth/logging.admin"
464 ]
465 },
466 "delete": {
467 "description": "Deletes an exclusion.",
468 "httpMethod": "DELETE",
469 "id": "logging.organizations.exclusions.delete",
470 "parameterOrder": [
471 "name"
472 ],
473 "parameters": {
474 "name": {
475 "description": "Required. The resource name of an existing exclusion to delete:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSI ON_ID]\"\n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billi ngAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_I D]/exclusions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my- exclusion-id\".",
476 "location": "path",
477 "pattern": "^organizations/[^/]+/exclusions/ [^/]+$",
478 "required": true,
479 "type": "string"
480 }
481 },
482 "path": "v2/{+name}",
483 "response": {
484 "$ref": "Empty"
485 },
486 "scopes": [
487 "https://www.googleapis.com/auth/cloud-platform" ,
488 "https://www.googleapis.com/auth/logging.admin"
489 ]
490 },
491 "patch": {
492 "description": "Changes one or more properties of an existing exclusion.",
493 "httpMethod": "PATCH",
494 "id": "logging.organizations.exclusions.patch",
495 "parameterOrder": [
496 "name"
497 ],
498 "parameters": {
499 "updateMask": {
500 "description": "Required. A nonempty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fie lds not mentioned in update_mask are not changed and are ignored in the request. For example, to change the filter and description of an exclusion, specify an up date_mask of \"filter,description\".",
501 "format": "google-fieldmask",
502 "location": "query",
503 "type": "string"
504 },
505 "name": {
506 "description": "Required. The resource name of the exclusion to update:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccoun ts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclu sions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusio n-id\".",
507 "location": "path",
508 "pattern": "^organizations/[^/]+/exclusions/ [^/]+$",
509 "required": true,
510 "type": "string"
511 }
512 },
513 "path": "v2/{+name}",
514 "request": {
515 "$ref": "LogExclusion"
516 },
517 "response": {
518 "$ref": "LogExclusion"
519 },
520 "scopes": [
521 "https://www.googleapis.com/auth/cloud-platform" ,
522 "https://www.googleapis.com/auth/logging.admin"
523 ]
381 }, 524 },
382 "get": { 525 "get": {
383 "description": "Gets a sink.", 526 "description": "Gets the description of an exclusion .",
384 "httpMethod": "GET", 527 "httpMethod": "GET",
385 "id": "logging.projects.sinks.get", 528 "id": "logging.organizations.exclusions.get",
386 "parameterOrder": [ 529 "parameterOrder": [
387 "sinkName" 530 "name"
388 ], 531 ],
389 "parameters": { 532 "parameters": {
390 "sinkName": { 533 "name": {
391 "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\".", 534 "description": "Required. The resource name of an existing exclusion:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\"\n \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccounts /[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclusi ons/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusion- id\".",
392 "location": "path", 535 "location": "path",
393 "pattern": "^projects/[^/]+/sinks/[^/]+$", 536 "pattern": "^organizations/[^/]+/exclusions/ [^/]+$",
394 "required": true, 537 "required": true,
395 "type": "string" 538 "type": "string"
396 } 539 }
397 }, 540 },
398 "path": "v2/{+sinkName}", 541 "path": "v2/{+name}",
399 "response": { 542 "response": {
400 "$ref": "LogSink" 543 "$ref": "LogExclusion"
401 }, 544 },
402 "scopes": [ 545 "scopes": [
403 "https://www.googleapis.com/auth/cloud-platform" , 546 "https://www.googleapis.com/auth/cloud-platform" ,
404 "https://www.googleapis.com/auth/cloud-platform. read-only", 547 "https://www.googleapis.com/auth/cloud-platform. read-only",
405 "https://www.googleapis.com/auth/logging.admin", 548 "https://www.googleapis.com/auth/logging.admin",
406 "https://www.googleapis.com/auth/logging.read" 549 "https://www.googleapis.com/auth/logging.read"
407 ] 550 ]
408 }, 551 },
409 "patch": {
410 "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.",
411 "httpMethod": "PATCH",
412 "id": "logging.projects.sinks.patch",
413 "parameterOrder": [
414 "sinkName"
415 ],
416 "parameters": {
417 "uniqueWriterIdentity": {
418 "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.",
419 "location": "query",
420 "type": "boolean"
421 },
422 "sinkName": {
423 "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\".",
424 "location": "path",
425 "pattern": "^projects/[^/]+/sinks/[^/]+$",
426 "required": true,
427 "type": "string"
428 }
429 },
430 "path": "v2/{+sinkName}",
431 "request": {
432 "$ref": "LogSink"
433 },
434 "response": {
435 "$ref": "LogSink"
436 },
437 "scopes": [
438 "https://www.googleapis.com/auth/cloud-platform" ,
439 "https://www.googleapis.com/auth/logging.admin"
440 ]
441 },
442 "update": {
443 "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.",
444 "httpMethod": "PUT",
445 "id": "logging.projects.sinks.update",
446 "parameterOrder": [
447 "sinkName"
448 ],
449 "parameters": {
450 "uniqueWriterIdentity": {
451 "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.",
452 "location": "query",
453 "type": "boolean"
454 },
455 "sinkName": {
456 "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\".",
457 "location": "path",
458 "pattern": "^projects/[^/]+/sinks/[^/]+$",
459 "required": true,
460 "type": "string"
461 }
462 },
463 "path": "v2/{+sinkName}",
464 "request": {
465 "$ref": "LogSink"
466 },
467 "response": {
468 "$ref": "LogSink"
469 },
470 "scopes": [
471 "https://www.googleapis.com/auth/cloud-platform" ,
472 "https://www.googleapis.com/auth/logging.admin"
473 ]
474 }
475 }
476 },
477 "logs": {
478 "methods": {
479 "list": { 552 "list": {
480 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 553 "description": "Lists all the exclusions in a parent resource.",
481 "httpMethod": "GET", 554 "httpMethod": "GET",
482 "id": "logging.projects.logs.list", 555 "id": "logging.organizations.exclusions.list",
483 "parameterOrder": [ 556 "parameterOrder": [
484 "parent" 557 "parent"
485 ], 558 ],
486 "parameters": { 559 "parameters": {
487 "pageToken": { 560 "pageToken": {
488 "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.", 561 "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.",
489 "location": "query", 562 "location": "query",
490 "type": "string" 563 "type": "string"
491 }, 564 },
492 "pageSize": { 565 "pageSize": {
493 "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.", 566 "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.",
494 "format": "int32", 567 "format": "int32",
495 "location": "query", 568 "location": "query",
496 "type": "integer" 569 "type": "integer"
497 }, 570 },
498 "parent": { 571 "parent": {
499 "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", 572 "description": "Required. The parent resourc e whose exclusions are to be listed.\n\"projects/[PROJECT_ID]\"\n\"organizations /[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDE R_ID]\"\n",
500 "location": "path", 573 "location": "path",
501 "pattern": "^projects/[^/]+$", 574 "pattern": "^organizations/[^/]+$",
502 "required": true, 575 "required": true,
503 "type": "string" 576 "type": "string"
504 } 577 }
505 }, 578 },
506 "path": "v2/{+parent}/logs", 579 "path": "v2/{+parent}/exclusions",
507 "response": { 580 "response": {
508 "$ref": "ListLogsResponse" 581 "$ref": "ListExclusionsResponse"
509 }, 582 },
510 "scopes": [ 583 "scopes": [
511 "https://www.googleapis.com/auth/cloud-platform" , 584 "https://www.googleapis.com/auth/cloud-platform" ,
512 "https://www.googleapis.com/auth/cloud-platform. read-only", 585 "https://www.googleapis.com/auth/cloud-platform. read-only",
513 "https://www.googleapis.com/auth/logging.admin", 586 "https://www.googleapis.com/auth/logging.admin",
514 "https://www.googleapis.com/auth/logging.read" 587 "https://www.googleapis.com/auth/logging.read"
515 ] 588 ]
516 },
517 "delete": {
518 "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.",
519 "httpMethod": "DELETE",
520 "id": "logging.projects.logs.delete",
521 "parameterOrder": [
522 "logName"
523 ],
524 "parameters": {
525 "logName": {
526 "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.",
527 "location": "path",
528 "pattern": "^projects/[^/]+/logs/[^/]+$",
529 "required": true,
530 "type": "string"
531 }
532 },
533 "path": "v2/{+logName}",
534 "response": {
535 "$ref": "Empty"
536 },
537 "scopes": [
538 "https://www.googleapis.com/auth/cloud-platform" ,
539 "https://www.googleapis.com/auth/logging.admin"
540 ]
541 } 589 }
542 } 590 }
543 } 591 }
544 } 592 }
545 }, 593 },
546 "billingAccounts": { 594 "entries": {
595 "methods": {
596 "write": {
597 "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.",
598 "httpMethod": "POST",
599 "id": "logging.entries.write",
600 "parameterOrder": [],
601 "parameters": {},
602 "path": "v2/entries:write",
603 "request": {
604 "$ref": "WriteLogEntriesRequest"
605 },
606 "response": {
607 "$ref": "WriteLogEntriesResponse"
608 },
609 "scopes": [
610 "https://www.googleapis.com/auth/cloud-platform",
611 "https://www.googleapis.com/auth/logging.admin",
612 "https://www.googleapis.com/auth/logging.write"
613 ]
614 },
615 "list": {
616 "description": "Lists log entries. Use this method to retrie ve log entries from Stackdriver Logging. For ways to export log entries, see Exp orting Logs.",
617 "httpMethod": "POST",
618 "id": "logging.entries.list",
619 "parameterOrder": [],
620 "parameters": {},
621 "path": "v2/entries:list",
622 "request": {
623 "$ref": "ListLogEntriesRequest"
624 },
625 "response": {
626 "$ref": "ListLogEntriesResponse"
627 },
628 "scopes": [
629 "https://www.googleapis.com/auth/cloud-platform",
630 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
631 "https://www.googleapis.com/auth/logging.admin",
632 "https://www.googleapis.com/auth/logging.read"
633 ]
634 }
635 }
636 },
637 "projects": {
547 "resources": { 638 "resources": {
548 "sinks": { 639 "sinks": {
549 "methods": { 640 "methods": {
641 "create": {
642 "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.",
643 "httpMethod": "POST",
644 "id": "logging.projects.sinks.create",
645 "parameterOrder": [
646 "parent"
647 ],
648 "parameters": {
649 "parent": {
650 "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\".",
651 "location": "path",
652 "pattern": "^projects/[^/]+$",
653 "required": true,
654 "type": "string"
655 },
656 "uniqueWriterIdentity": {
657 "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.",
658 "location": "query",
659 "type": "boolean"
660 }
661 },
662 "path": "v2/{+parent}/sinks",
663 "request": {
664 "$ref": "LogSink"
665 },
666 "response": {
667 "$ref": "LogSink"
668 },
669 "scopes": [
670 "https://www.googleapis.com/auth/cloud-platform" ,
671 "https://www.googleapis.com/auth/logging.admin"
672 ]
673 },
550 "get": { 674 "get": {
551 "description": "Gets a sink.", 675 "description": "Gets a sink.",
552 "httpMethod": "GET", 676 "httpMethod": "GET",
553 "id": "logging.billingAccounts.sinks.get", 677 "id": "logging.projects.sinks.get",
554 "parameterOrder": [ 678 "parameterOrder": [
555 "sinkName" 679 "sinkName"
556 ], 680 ],
557 "parameters": { 681 "parameters": {
558 "sinkName": { 682 "sinkName": {
559 "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\".", 683 "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\".",
560 "location": "path", 684 "location": "path",
561 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$", 685 "pattern": "^projects/[^/]+/sinks/[^/]+$",
562 "required": true, 686 "required": true,
563 "type": "string" 687 "type": "string"
564 } 688 }
565 }, 689 },
566 "path": "v2/{+sinkName}", 690 "path": "v2/{+sinkName}",
567 "response": { 691 "response": {
568 "$ref": "LogSink" 692 "$ref": "LogSink"
569 }, 693 },
570 "scopes": [ 694 "scopes": [
571 "https://www.googleapis.com/auth/cloud-platform" , 695 "https://www.googleapis.com/auth/cloud-platform" ,
572 "https://www.googleapis.com/auth/cloud-platform. read-only", 696 "https://www.googleapis.com/auth/cloud-platform. read-only",
573 "https://www.googleapis.com/auth/logging.admin", 697 "https://www.googleapis.com/auth/logging.admin",
574 "https://www.googleapis.com/auth/logging.read" 698 "https://www.googleapis.com/auth/logging.read"
575 ] 699 ]
576 }, 700 },
577 "patch": { 701 "patch": {
578 "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.", 702 "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.",
579 "httpMethod": "PATCH", 703 "httpMethod": "PATCH",
580 "id": "logging.billingAccounts.sinks.patch", 704 "id": "logging.projects.sinks.patch",
581 "parameterOrder": [ 705 "parameterOrder": [
582 "sinkName" 706 "sinkName"
583 ], 707 ],
584 "parameters": { 708 "parameters": {
709 "updateMask": {
710 "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.",
711 "format": "google-fieldmask",
712 "location": "query",
713 "type": "string"
714 },
585 "uniqueWriterIdentity": { 715 "uniqueWriterIdentity": {
586 "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.", 716 "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.",
587 "location": "query", 717 "location": "query",
588 "type": "boolean" 718 "type": "boolean"
589 }, 719 },
590 "sinkName": { 720 "sinkName": {
591 "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\".", 721 "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\".",
592 "location": "path", 722 "location": "path",
593 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$", 723 "pattern": "^projects/[^/]+/sinks/[^/]+$",
594 "required": true, 724 "required": true,
595 "type": "string" 725 "type": "string"
596 } 726 }
597 }, 727 },
598 "path": "v2/{+sinkName}", 728 "path": "v2/{+sinkName}",
599 "request": { 729 "request": {
600 "$ref": "LogSink" 730 "$ref": "LogSink"
601 }, 731 },
602 "response": { 732 "response": {
603 "$ref": "LogSink" 733 "$ref": "LogSink"
604 }, 734 },
605 "scopes": [ 735 "scopes": [
606 "https://www.googleapis.com/auth/cloud-platform" , 736 "https://www.googleapis.com/auth/cloud-platform" ,
607 "https://www.googleapis.com/auth/logging.admin" 737 "https://www.googleapis.com/auth/logging.admin"
608 ] 738 ]
609 }, 739 },
610 "update": { 740 "update": {
611 "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.", 741 "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.",
612 "httpMethod": "PUT", 742 "httpMethod": "PUT",
613 "id": "logging.billingAccounts.sinks.update", 743 "id": "logging.projects.sinks.update",
614 "parameterOrder": [ 744 "parameterOrder": [
615 "sinkName" 745 "sinkName"
616 ], 746 ],
617 "parameters": { 747 "parameters": {
748 "updateMask": {
749 "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.",
750 "format": "google-fieldmask",
751 "location": "query",
752 "type": "string"
753 },
618 "uniqueWriterIdentity": { 754 "uniqueWriterIdentity": {
619 "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.", 755 "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.",
620 "location": "query", 756 "location": "query",
621 "type": "boolean" 757 "type": "boolean"
622 }, 758 },
623 "sinkName": { 759 "sinkName": {
624 "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\".", 760 "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\".",
625 "location": "path", 761 "location": "path",
626 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$", 762 "pattern": "^projects/[^/]+/sinks/[^/]+$",
627 "required": true, 763 "required": true,
628 "type": "string" 764 "type": "string"
629 } 765 }
630 }, 766 },
631 "path": "v2/{+sinkName}", 767 "path": "v2/{+sinkName}",
632 "request": { 768 "request": {
633 "$ref": "LogSink" 769 "$ref": "LogSink"
634 }, 770 },
635 "response": { 771 "response": {
636 "$ref": "LogSink" 772 "$ref": "LogSink"
637 }, 773 },
638 "scopes": [ 774 "scopes": [
639 "https://www.googleapis.com/auth/cloud-platform" , 775 "https://www.googleapis.com/auth/cloud-platform" ,
640 "https://www.googleapis.com/auth/logging.admin" 776 "https://www.googleapis.com/auth/logging.admin"
641 ] 777 ]
642 }, 778 },
643 "delete": { 779 "delete": {
644 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.", 780 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
645 "httpMethod": "DELETE", 781 "httpMethod": "DELETE",
646 "id": "logging.billingAccounts.sinks.delete", 782 "id": "logging.projects.sinks.delete",
647 "parameterOrder": [ 783 "parameterOrder": [
648 "sinkName" 784 "sinkName"
649 ], 785 ],
650 "parameters": { 786 "parameters": {
651 "sinkName": { 787 "sinkName": {
652 "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\".", 788 "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\".",
653 "location": "path", 789 "location": "path",
654 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$", 790 "pattern": "^projects/[^/]+/sinks/[^/]+$",
655 "required": true, 791 "required": true,
656 "type": "string" 792 "type": "string"
657 } 793 }
658 }, 794 },
659 "path": "v2/{+sinkName}", 795 "path": "v2/{+sinkName}",
660 "response": { 796 "response": {
661 "$ref": "Empty" 797 "$ref": "Empty"
662 }, 798 },
663 "scopes": [ 799 "scopes": [
664 "https://www.googleapis.com/auth/cloud-platform" , 800 "https://www.googleapis.com/auth/cloud-platform" ,
665 "https://www.googleapis.com/auth/logging.admin" 801 "https://www.googleapis.com/auth/logging.admin"
666 ] 802 ]
667 }, 803 },
668 "list": { 804 "list": {
669 "description": "Lists sinks.", 805 "description": "Lists sinks.",
670 "httpMethod": "GET", 806 "httpMethod": "GET",
671 "id": "logging.billingAccounts.sinks.list", 807 "id": "logging.projects.sinks.list",
672 "parameterOrder": [ 808 "parameterOrder": [
673 "parent" 809 "parent"
674 ], 810 ],
675 "parameters": { 811 "parameters": {
676 "pageToken": { 812 "pageToken": {
677 "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.", 813 "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.",
678 "location": "query", 814 "location": "query",
679 "type": "string" 815 "type": "string"
680 }, 816 },
681 "pageSize": { 817 "pageSize": {
682 "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.", 818 "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.",
683 "format": "int32", 819 "format": "int32",
684 "location": "query", 820 "location": "query",
685 "type": "integer" 821 "type": "integer"
686 }, 822 },
687 "parent": { 823 "parent": {
688 "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", 824 "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",
689 "location": "path", 825 "location": "path",
690 "pattern": "^billingAccounts/[^/]+$", 826 "pattern": "^projects/[^/]+$",
691 "required": true, 827 "required": true,
692 "type": "string" 828 "type": "string"
693 } 829 }
694 }, 830 },
695 "path": "v2/{+parent}/sinks", 831 "path": "v2/{+parent}/sinks",
696 "response": { 832 "response": {
697 "$ref": "ListSinksResponse" 833 "$ref": "ListSinksResponse"
698 }, 834 },
699 "scopes": [ 835 "scopes": [
700 "https://www.googleapis.com/auth/cloud-platform" , 836 "https://www.googleapis.com/auth/cloud-platform" ,
701 "https://www.googleapis.com/auth/cloud-platform. read-only", 837 "https://www.googleapis.com/auth/cloud-platform. read-only",
702 "https://www.googleapis.com/auth/logging.admin", 838 "https://www.googleapis.com/auth/logging.admin",
703 "https://www.googleapis.com/auth/logging.read" 839 "https://www.googleapis.com/auth/logging.read"
704 ] 840 ]
705 },
706 "create": {
707 "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.",
708 "httpMethod": "POST",
709 "id": "logging.billingAccounts.sinks.create",
710 "parameterOrder": [
711 "parent"
712 ],
713 "parameters": {
714 "uniqueWriterIdentity": {
715 "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.",
716 "location": "query",
717 "type": "boolean"
718 },
719 "parent": {
720 "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\".",
721 "location": "path",
722 "pattern": "^billingAccounts/[^/]+$",
723 "required": true,
724 "type": "string"
725 }
726 },
727 "path": "v2/{+parent}/sinks",
728 "request": {
729 "$ref": "LogSink"
730 },
731 "response": {
732 "$ref": "LogSink"
733 },
734 "scopes": [
735 "https://www.googleapis.com/auth/cloud-platform" ,
736 "https://www.googleapis.com/auth/logging.admin"
737 ]
738 } 841 }
739 } 842 }
740 }, 843 },
741 "logs": { 844 "logs": {
742 "methods": { 845 "methods": {
743 "delete": { 846 "delete": {
744 "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.", 847 "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.",
745 "httpMethod": "DELETE", 848 "httpMethod": "DELETE",
746 "id": "logging.billingAccounts.logs.delete", 849 "id": "logging.projects.logs.delete",
747 "parameterOrder": [ 850 "parameterOrder": [
748 "logName" 851 "logName"
749 ], 852 ],
750 "parameters": { 853 "parameters": {
751 "logName": { 854 "logName": {
752 "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.", 855 "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.",
753 "location": "path", 856 "location": "path",
754 "pattern": "^billingAccounts/[^/]+/logs/[^/] +$", 857 "pattern": "^projects/[^/]+/logs/[^/]+$",
755 "required": true, 858 "required": true,
756 "type": "string" 859 "type": "string"
757 } 860 }
758 }, 861 },
759 "path": "v2/{+logName}", 862 "path": "v2/{+logName}",
760 "response": { 863 "response": {
761 "$ref": "Empty" 864 "$ref": "Empty"
762 }, 865 },
763 "scopes": [ 866 "scopes": [
764 "https://www.googleapis.com/auth/cloud-platform" , 867 "https://www.googleapis.com/auth/cloud-platform" ,
765 "https://www.googleapis.com/auth/logging.admin" 868 "https://www.googleapis.com/auth/logging.admin"
766 ] 869 ]
767 }, 870 },
768 "list": { 871 "list": {
769 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 872 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
770 "httpMethod": "GET", 873 "httpMethod": "GET",
771 "id": "logging.billingAccounts.logs.list", 874 "id": "logging.projects.logs.list",
772 "parameterOrder": [ 875 "parameterOrder": [
773 "parent" 876 "parent"
774 ], 877 ],
775 "parameters": { 878 "parameters": {
776 "pageToken": { 879 "pageToken": {
777 "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.", 880 "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.",
778 "location": "query", 881 "location": "query",
779 "type": "string" 882 "type": "string"
780 }, 883 },
781 "pageSize": { 884 "pageSize": {
782 "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.", 885 "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.",
783 "format": "int32", 886 "format": "int32",
784 "location": "query", 887 "location": "query",
785 "type": "integer" 888 "type": "integer"
786 }, 889 },
787 "parent": { 890 "parent": {
788 "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", 891 "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",
789 "location": "path", 892 "location": "path",
790 "pattern": "^billingAccounts/[^/]+$", 893 "pattern": "^projects/[^/]+$",
791 "required": true, 894 "required": true,
792 "type": "string" 895 "type": "string"
793 } 896 }
794 }, 897 },
795 "path": "v2/{+parent}/logs", 898 "path": "v2/{+parent}/logs",
796 "response": { 899 "response": {
797 "$ref": "ListLogsResponse" 900 "$ref": "ListLogsResponse"
798 }, 901 },
799 "scopes": [ 902 "scopes": [
800 "https://www.googleapis.com/auth/cloud-platform" , 903 "https://www.googleapis.com/auth/cloud-platform" ,
801 "https://www.googleapis.com/auth/cloud-platform. read-only", 904 "https://www.googleapis.com/auth/cloud-platform. read-only",
802 "https://www.googleapis.com/auth/logging.admin", 905 "https://www.googleapis.com/auth/logging.admin",
803 "https://www.googleapis.com/auth/logging.read" 906 "https://www.googleapis.com/auth/logging.read"
804 ] 907 ]
805 } 908 }
806 } 909 }
807 } 910 },
808 } 911 "exclusions": {
809 },
810 "folders": {
811 "resources": {
812 "sinks": {
813 "methods": { 912 "methods": {
814 "create": { 913 "delete": {
815 "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.", 914 "description": "Deletes an exclusion.",
816 "httpMethod": "POST", 915 "httpMethod": "DELETE",
817 "id": "logging.folders.sinks.create", 916 "id": "logging.projects.exclusions.delete",
818 "parameterOrder": [ 917 "parameterOrder": [
819 "parent" 918 "name"
820 ], 919 ],
821 "parameters": { 920 "parameters": {
822 "parent": { 921 "name": {
823 "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\".", 922 "description": "Required. The resource name of an existing exclusion to delete:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSI ON_ID]\"\n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billi ngAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_I D]/exclusions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my- exclusion-id\".",
824 "location": "path", 923 "location": "path",
825 "pattern": "^folders/[^/]+$", 924 "pattern": "^projects/[^/]+/exclusions/[^/]+ $",
826 "required": true, 925 "required": true,
827 "type": "string" 926 "type": "string"
828 },
829 "uniqueWriterIdentity": {
830 "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.",
831 "location": "query",
832 "type": "boolean"
833 } 927 }
834 }, 928 },
835 "path": "v2/{+parent}/sinks", 929 "path": "v2/{+name}",
836 "request": {
837 "$ref": "LogSink"
838 },
839 "response": { 930 "response": {
840 "$ref": "LogSink" 931 "$ref": "Empty"
841 }, 932 },
842 "scopes": [ 933 "scopes": [
843 "https://www.googleapis.com/auth/cloud-platform" , 934 "https://www.googleapis.com/auth/cloud-platform" ,
935 "https://www.googleapis.com/auth/logging.admin"
936 ]
937 },
938 "patch": {
939 "description": "Changes one or more properties of an existing exclusion.",
940 "httpMethod": "PATCH",
941 "id": "logging.projects.exclusions.patch",
942 "parameterOrder": [
943 "name"
944 ],
945 "parameters": {
946 "updateMask": {
947 "description": "Required. A nonempty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fie lds not mentioned in update_mask are not changed and are ignored in the request. For example, to change the filter and description of an exclusion, specify an up date_mask of \"filter,description\".",
948 "format": "google-fieldmask",
949 "location": "query",
950 "type": "string"
951 },
952 "name": {
953 "description": "Required. The resource name of the exclusion to update:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccoun ts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclu sions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusio n-id\".",
954 "location": "path",
955 "pattern": "^projects/[^/]+/exclusions/[^/]+ $",
956 "required": true,
957 "type": "string"
958 }
959 },
960 "path": "v2/{+name}",
961 "request": {
962 "$ref": "LogExclusion"
963 },
964 "response": {
965 "$ref": "LogExclusion"
966 },
967 "scopes": [
968 "https://www.googleapis.com/auth/cloud-platform" ,
844 "https://www.googleapis.com/auth/logging.admin" 969 "https://www.googleapis.com/auth/logging.admin"
845 ] 970 ]
846 }, 971 },
847 "get": { 972 "get": {
848 "description": "Gets a sink.", 973 "description": "Gets the description of an exclusion .",
849 "httpMethod": "GET", 974 "httpMethod": "GET",
850 "id": "logging.folders.sinks.get", 975 "id": "logging.projects.exclusions.get",
851 "parameterOrder": [ 976 "parameterOrder": [
852 "sinkName" 977 "name"
853 ], 978 ],
854 "parameters": { 979 "parameters": {
855 "sinkName": { 980 "name": {
856 "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\".", 981 "description": "Required. The resource name of an existing exclusion:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\"\n \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccounts /[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclusi ons/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusion- id\".",
857 "location": "path", 982 "location": "path",
858 "pattern": "^folders/[^/]+/sinks/[^/]+$", 983 "pattern": "^projects/[^/]+/exclusions/[^/]+ $",
859 "required": true, 984 "required": true,
860 "type": "string" 985 "type": "string"
861 } 986 }
862 }, 987 },
863 "path": "v2/{+sinkName}", 988 "path": "v2/{+name}",
864 "response": { 989 "response": {
865 "$ref": "LogSink" 990 "$ref": "LogExclusion"
866 }, 991 },
867 "scopes": [ 992 "scopes": [
868 "https://www.googleapis.com/auth/cloud-platform" , 993 "https://www.googleapis.com/auth/cloud-platform" ,
869 "https://www.googleapis.com/auth/cloud-platform. read-only", 994 "https://www.googleapis.com/auth/cloud-platform. read-only",
870 "https://www.googleapis.com/auth/logging.admin", 995 "https://www.googleapis.com/auth/logging.admin",
871 "https://www.googleapis.com/auth/logging.read" 996 "https://www.googleapis.com/auth/logging.read"
872 ] 997 ]
873 }, 998 },
874 "patch": {
875 "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.",
876 "httpMethod": "PATCH",
877 "id": "logging.folders.sinks.patch",
878 "parameterOrder": [
879 "sinkName"
880 ],
881 "parameters": {
882 "uniqueWriterIdentity": {
883 "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.",
884 "location": "query",
885 "type": "boolean"
886 },
887 "sinkName": {
888 "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\".",
889 "location": "path",
890 "pattern": "^folders/[^/]+/sinks/[^/]+$",
891 "required": true,
892 "type": "string"
893 }
894 },
895 "path": "v2/{+sinkName}",
896 "request": {
897 "$ref": "LogSink"
898 },
899 "response": {
900 "$ref": "LogSink"
901 },
902 "scopes": [
903 "https://www.googleapis.com/auth/cloud-platform" ,
904 "https://www.googleapis.com/auth/logging.admin"
905 ]
906 },
907 "update": {
908 "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.",
909 "httpMethod": "PUT",
910 "id": "logging.folders.sinks.update",
911 "parameterOrder": [
912 "sinkName"
913 ],
914 "parameters": {
915 "uniqueWriterIdentity": {
916 "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.",
917 "location": "query",
918 "type": "boolean"
919 },
920 "sinkName": {
921 "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\".",
922 "location": "path",
923 "pattern": "^folders/[^/]+/sinks/[^/]+$",
924 "required": true,
925 "type": "string"
926 }
927 },
928 "path": "v2/{+sinkName}",
929 "request": {
930 "$ref": "LogSink"
931 },
932 "response": {
933 "$ref": "LogSink"
934 },
935 "scopes": [
936 "https://www.googleapis.com/auth/cloud-platform" ,
937 "https://www.googleapis.com/auth/logging.admin"
938 ]
939 },
940 "delete": {
941 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
942 "httpMethod": "DELETE",
943 "id": "logging.folders.sinks.delete",
944 "parameterOrder": [
945 "sinkName"
946 ],
947 "parameters": {
948 "sinkName": {
949 "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\".",
950 "location": "path",
951 "pattern": "^folders/[^/]+/sinks/[^/]+$",
952 "required": true,
953 "type": "string"
954 }
955 },
956 "path": "v2/{+sinkName}",
957 "response": {
958 "$ref": "Empty"
959 },
960 "scopes": [
961 "https://www.googleapis.com/auth/cloud-platform" ,
962 "https://www.googleapis.com/auth/logging.admin"
963 ]
964 },
965 "list": { 999 "list": {
966 "description": "Lists sinks.", 1000 "description": "Lists all the exclusions in a parent resource.",
967 "httpMethod": "GET", 1001 "httpMethod": "GET",
968 "id": "logging.folders.sinks.list", 1002 "id": "logging.projects.exclusions.list",
969 "parameterOrder": [ 1003 "parameterOrder": [
970 "parent" 1004 "parent"
971 ], 1005 ],
972 "parameters": { 1006 "parameters": {
1007 "parent": {
1008 "description": "Required. The parent resourc e whose exclusions are to be listed.\n\"projects/[PROJECT_ID]\"\n\"organizations /[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDE R_ID]\"\n",
1009 "location": "path",
1010 "pattern": "^projects/[^/]+$",
1011 "required": true,
1012 "type": "string"
1013 },
973 "pageToken": { 1014 "pageToken": {
974 "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.", 1015 "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.",
975 "location": "query", 1016 "location": "query",
976 "type": "string" 1017 "type": "string"
977 }, 1018 },
978 "pageSize": { 1019 "pageSize": {
979 "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.", 1020 "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.",
980 "format": "int32", 1021 "format": "int32",
981 "location": "query", 1022 "location": "query",
982 "type": "integer" 1023 "type": "integer"
983 },
984 "parent": {
985 "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",
986 "location": "path",
987 "pattern": "^folders/[^/]+$",
988 "required": true,
989 "type": "string"
990 } 1024 }
991 }, 1025 },
992 "path": "v2/{+parent}/sinks", 1026 "path": "v2/{+parent}/exclusions",
993 "response": { 1027 "response": {
994 "$ref": "ListSinksResponse" 1028 "$ref": "ListExclusionsResponse"
995 }, 1029 },
996 "scopes": [ 1030 "scopes": [
997 "https://www.googleapis.com/auth/cloud-platform" , 1031 "https://www.googleapis.com/auth/cloud-platform" ,
998 "https://www.googleapis.com/auth/cloud-platform. read-only", 1032 "https://www.googleapis.com/auth/cloud-platform. read-only",
999 "https://www.googleapis.com/auth/logging.admin", 1033 "https://www.googleapis.com/auth/logging.admin",
1000 "https://www.googleapis.com/auth/logging.read" 1034 "https://www.googleapis.com/auth/logging.read"
1001 ] 1035 ]
1002 } 1036 },
1003 } 1037 "create": {
1004 }, 1038 "description": "Creates a new exclusion in a specifi ed parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
1005 "logs": { 1039 "httpMethod": "POST",
1006 "methods": { 1040 "id": "logging.projects.exclusions.create",
1007 "delete": {
1008 "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.",
1009 "httpMethod": "DELETE",
1010 "id": "logging.folders.logs.delete",
1011 "parameterOrder": [ 1041 "parameterOrder": [
1012 "logName" 1042 "parent"
1013 ], 1043 ],
1014 "parameters": { 1044 "parameters": {
1015 "logName": { 1045 "parent": {
1016 "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.", 1046 "description": "Required. The parent resourc e in which to create the exclusion:\n\"projects/[PROJECT_ID]\"\n\"organizations/ [ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER _ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\"." ,
1017 "location": "path", 1047 "location": "path",
1018 "pattern": "^folders/[^/]+/logs/[^/]+$", 1048 "pattern": "^projects/[^/]+$",
1019 "required": true, 1049 "required": true,
1020 "type": "string" 1050 "type": "string"
1021 } 1051 }
1022 }, 1052 },
1023 "path": "v2/{+logName}", 1053 "path": "v2/{+parent}/exclusions",
1054 "request": {
1055 "$ref": "LogExclusion"
1056 },
1057 "response": {
1058 "$ref": "LogExclusion"
1059 },
1060 "scopes": [
1061 "https://www.googleapis.com/auth/cloud-platform" ,
1062 "https://www.googleapis.com/auth/logging.admin"
1063 ]
1064 }
1065 }
1066 },
1067 "metrics": {
1068 "methods": {
1069 "update": {
1070 "description": "Creates or updates a logs-based metr ic.",
1071 "httpMethod": "PUT",
1072 "id": "logging.projects.metrics.update",
1073 "parameterOrder": [
1074 "metricName"
1075 ],
1076 "parameters": {
1077 "metricName": {
1078 "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 .",
1079 "location": "path",
1080 "pattern": "^projects/[^/]+/metrics/[^/]+$",
1081 "required": true,
1082 "type": "string"
1083 }
1084 },
1085 "path": "v2/{+metricName}",
1086 "request": {
1087 "$ref": "LogMetric"
1088 },
1089 "response": {
1090 "$ref": "LogMetric"
1091 },
1092 "scopes": [
1093 "https://www.googleapis.com/auth/cloud-platform" ,
1094 "https://www.googleapis.com/auth/logging.admin",
1095 "https://www.googleapis.com/auth/logging.write"
1096 ]
1097 },
1098 "create": {
1099 "description": "Creates a logs-based metric.",
1100 "httpMethod": "POST",
1101 "id": "logging.projects.metrics.create",
1102 "parameterOrder": [
1103 "parent"
1104 ],
1105 "parameters": {
1106 "parent": {
1107 "description": "The resource name of the pro ject in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric m ust be provided in the request.",
1108 "location": "path",
1109 "pattern": "^projects/[^/]+$",
1110 "required": true,
1111 "type": "string"
1112 }
1113 },
1114 "path": "v2/{+parent}/metrics",
1115 "request": {
1116 "$ref": "LogMetric"
1117 },
1118 "response": {
1119 "$ref": "LogMetric"
1120 },
1121 "scopes": [
1122 "https://www.googleapis.com/auth/cloud-platform" ,
1123 "https://www.googleapis.com/auth/logging.admin",
1124 "https://www.googleapis.com/auth/logging.write"
1125 ]
1126 },
1127 "delete": {
1128 "description": "Deletes a logs-based metric.",
1129 "httpMethod": "DELETE",
1130 "id": "logging.projects.metrics.delete",
1131 "parameterOrder": [
1132 "metricName"
1133 ],
1134 "parameters": {
1135 "metricName": {
1136 "description": "The resource name of the met ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
1137 "location": "path",
1138 "pattern": "^projects/[^/]+/metrics/[^/]+$",
1139 "required": true,
1140 "type": "string"
1141 }
1142 },
1143 "path": "v2/{+metricName}",
1024 "response": { 1144 "response": {
1025 "$ref": "Empty" 1145 "$ref": "Empty"
1026 }, 1146 },
1027 "scopes": [ 1147 "scopes": [
1028 "https://www.googleapis.com/auth/cloud-platform" , 1148 "https://www.googleapis.com/auth/cloud-platform" ,
1029 "https://www.googleapis.com/auth/logging.admin" 1149 "https://www.googleapis.com/auth/logging.admin",
1150 "https://www.googleapis.com/auth/logging.write"
1151 ]
1152 },
1153 "get": {
1154 "description": "Gets a logs-based metric.",
1155 "httpMethod": "GET",
1156 "id": "logging.projects.metrics.get",
1157 "parameterOrder": [
1158 "metricName"
1159 ],
1160 "parameters": {
1161 "metricName": {
1162 "description": "The resource name of the des ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n",
1163 "location": "path",
1164 "pattern": "^projects/[^/]+/metrics/[^/]+$",
1165 "required": true,
1166 "type": "string"
1167 }
1168 },
1169 "path": "v2/{+metricName}",
1170 "response": {
1171 "$ref": "LogMetric"
1172 },
1173 "scopes": [
1174 "https://www.googleapis.com/auth/cloud-platform" ,
1175 "https://www.googleapis.com/auth/cloud-platform. read-only",
1176 "https://www.googleapis.com/auth/logging.admin",
1177 "https://www.googleapis.com/auth/logging.read"
1030 ] 1178 ]
1031 }, 1179 },
1032 "list": { 1180 "list": {
1033 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 1181 "description": "Lists logs-based metrics.",
1034 "httpMethod": "GET", 1182 "httpMethod": "GET",
1035 "id": "logging.folders.logs.list", 1183 "id": "logging.projects.metrics.list",
1036 "parameterOrder": [ 1184 "parameterOrder": [
1037 "parent" 1185 "parent"
1038 ], 1186 ],
1039 "parameters": { 1187 "parameters": {
1040 "pageToken": { 1188 "pageToken": {
1041 "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.", 1189 "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.",
1042 "location": "query", 1190 "location": "query",
1043 "type": "string" 1191 "type": "string"
1044 }, 1192 },
1045 "pageSize": { 1193 "pageSize": {
1046 "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.", 1194 "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.",
1047 "format": "int32", 1195 "format": "int32",
1048 "location": "query", 1196 "location": "query",
1049 "type": "integer" 1197 "type": "integer"
1050 }, 1198 },
1051 "parent": { 1199 "parent": {
1052 "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", 1200 "description": "Required. The name of the pr oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n",
1053 "location": "path", 1201 "location": "path",
1054 "pattern": "^folders/[^/]+$", 1202 "pattern": "^projects/[^/]+$",
1055 "required": true, 1203 "required": true,
1056 "type": "string" 1204 "type": "string"
1057 } 1205 }
1058 }, 1206 },
1059 "path": "v2/{+parent}/logs", 1207 "path": "v2/{+parent}/metrics",
1060 "response": { 1208 "response": {
1061 "$ref": "ListLogsResponse" 1209 "$ref": "ListLogMetricsResponse"
1062 }, 1210 },
1063 "scopes": [ 1211 "scopes": [
1064 "https://www.googleapis.com/auth/cloud-platform" , 1212 "https://www.googleapis.com/auth/cloud-platform" ,
1065 "https://www.googleapis.com/auth/cloud-platform. read-only", 1213 "https://www.googleapis.com/auth/cloud-platform. read-only",
1066 "https://www.googleapis.com/auth/logging.admin", 1214 "https://www.googleapis.com/auth/logging.admin",
1067 "https://www.googleapis.com/auth/logging.read" 1215 "https://www.googleapis.com/auth/logging.read"
1068 ] 1216 ]
1069 } 1217 }
1070 } 1218 }
1071 } 1219 }
1072 } 1220 }
1073 }, 1221 },
1074 "monitoredResourceDescriptors": { 1222 "billingAccounts": {
1075 "methods": {
1076 "list": {
1077 "description": "Lists the descriptors for monitored resource types used by Stackdriver Logging.",
1078 "httpMethod": "GET",
1079 "id": "logging.monitoredResourceDescriptors.list",
1080 "parameterOrder": [],
1081 "parameters": {
1082 "pageToken": {
1083 "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.",
1084 "location": "query",
1085 "type": "string"
1086 },
1087 "pageSize": {
1088 "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." ,
1089 "format": "int32",
1090 "location": "query",
1091 "type": "integer"
1092 }
1093 },
1094 "path": "v2/monitoredResourceDescriptors",
1095 "response": {
1096 "$ref": "ListMonitoredResourceDescriptorsResponse"
1097 },
1098 "scopes": [
1099 "https://www.googleapis.com/auth/cloud-platform",
1100 "https://www.googleapis.com/auth/cloud-platform.read-onl y",
1101 "https://www.googleapis.com/auth/logging.admin",
1102 "https://www.googleapis.com/auth/logging.read"
1103 ]
1104 }
1105 }
1106 },
1107 "organizations": {
1108 "resources": { 1223 "resources": {
1109 "sinks": { 1224 "sinks": {
1110 "methods": { 1225 "methods": {
1111 "update": { 1226 "delete": {
1112 "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.", 1227 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
1113 "httpMethod": "PUT", 1228 "httpMethod": "DELETE",
1114 "id": "logging.organizations.sinks.update", 1229 "id": "logging.billingAccounts.sinks.delete",
1115 "parameterOrder": [ 1230 "parameterOrder": [
1116 "sinkName" 1231 "sinkName"
1117 ], 1232 ],
1118 "parameters": {
1119 "uniqueWriterIdentity": {
1120 "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.",
1121 "location": "query",
1122 "type": "boolean"
1123 },
1124 "sinkName": {
1125 "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\".",
1126 "location": "path",
1127 "pattern": "^organizations/[^/]+/sinks/[^/]+ $",
1128 "required": true,
1129 "type": "string"
1130 }
1131 },
1132 "path": "v2/{+sinkName}",
1133 "request": {
1134 "$ref": "LogSink"
1135 },
1136 "response": {
1137 "$ref": "LogSink"
1138 },
1139 "scopes": [
1140 "https://www.googleapis.com/auth/cloud-platform" ,
1141 "https://www.googleapis.com/auth/logging.admin"
1142 ]
1143 },
1144 "delete": {
1145 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
1146 "httpMethod": "DELETE",
1147 "id": "logging.organizations.sinks.delete",
1148 "parameterOrder": [
1149 "sinkName"
1150 ],
1151 "parameters": { 1233 "parameters": {
1152 "sinkName": { 1234 "sinkName": {
1153 "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\".", 1235 "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\".",
1154 "location": "path", 1236 "location": "path",
1155 "pattern": "^organizations/[^/]+/sinks/[^/]+ $", 1237 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1156 "required": true, 1238 "required": true,
1157 "type": "string" 1239 "type": "string"
1158 } 1240 }
1159 }, 1241 },
1160 "path": "v2/{+sinkName}", 1242 "path": "v2/{+sinkName}",
1161 "response": { 1243 "response": {
1162 "$ref": "Empty" 1244 "$ref": "Empty"
1163 }, 1245 },
1164 "scopes": [ 1246 "scopes": [
1165 "https://www.googleapis.com/auth/cloud-platform" , 1247 "https://www.googleapis.com/auth/cloud-platform" ,
1166 "https://www.googleapis.com/auth/logging.admin" 1248 "https://www.googleapis.com/auth/logging.admin"
1167 ] 1249 ]
1168 }, 1250 },
1169 "list": { 1251 "list": {
1170 "description": "Lists sinks.", 1252 "description": "Lists sinks.",
1171 "httpMethod": "GET", 1253 "httpMethod": "GET",
1172 "id": "logging.organizations.sinks.list", 1254 "id": "logging.billingAccounts.sinks.list",
1173 "parameterOrder": [ 1255 "parameterOrder": [
1174 "parent" 1256 "parent"
1175 ], 1257 ],
1176 "parameters": { 1258 "parameters": {
1177 "pageToken": { 1259 "pageToken": {
1178 "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.", 1260 "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.",
1179 "location": "query", 1261 "location": "query",
1180 "type": "string" 1262 "type": "string"
1181 }, 1263 },
1182 "pageSize": { 1264 "pageSize": {
1183 "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.", 1265 "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.",
1184 "format": "int32", 1266 "format": "int32",
1185 "location": "query", 1267 "location": "query",
1186 "type": "integer" 1268 "type": "integer"
1187 }, 1269 },
1188 "parent": { 1270 "parent": {
1189 "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", 1271 "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",
1190 "location": "path", 1272 "location": "path",
1191 "pattern": "^organizations/[^/]+$", 1273 "pattern": "^billingAccounts/[^/]+$",
1192 "required": true, 1274 "required": true,
1193 "type": "string" 1275 "type": "string"
1194 } 1276 }
1195 }, 1277 },
1196 "path": "v2/{+parent}/sinks", 1278 "path": "v2/{+parent}/sinks",
1197 "response": { 1279 "response": {
1198 "$ref": "ListSinksResponse" 1280 "$ref": "ListSinksResponse"
1199 }, 1281 },
1200 "scopes": [ 1282 "scopes": [
1201 "https://www.googleapis.com/auth/cloud-platform" , 1283 "https://www.googleapis.com/auth/cloud-platform" ,
1202 "https://www.googleapis.com/auth/cloud-platform. read-only", 1284 "https://www.googleapis.com/auth/cloud-platform. read-only",
1203 "https://www.googleapis.com/auth/logging.admin", 1285 "https://www.googleapis.com/auth/logging.admin",
1204 "https://www.googleapis.com/auth/logging.read" 1286 "https://www.googleapis.com/auth/logging.read"
1205 ] 1287 ]
1206 }, 1288 },
1207 "create": { 1289 "create": {
1208 "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.", 1290 "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.",
1209 "httpMethod": "POST", 1291 "httpMethod": "POST",
1210 "id": "logging.organizations.sinks.create", 1292 "id": "logging.billingAccounts.sinks.create",
1211 "parameterOrder": [ 1293 "parameterOrder": [
1212 "parent" 1294 "parent"
1213 ], 1295 ],
1214 "parameters": { 1296 "parameters": {
1215 "parent": { 1297 "parent": {
1216 "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\".", 1298 "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\".",
1217 "location": "path", 1299 "location": "path",
1218 "pattern": "^organizations/[^/]+$", 1300 "pattern": "^billingAccounts/[^/]+$",
1219 "required": true, 1301 "required": true,
1220 "type": "string" 1302 "type": "string"
1221 }, 1303 },
1222 "uniqueWriterIdentity": { 1304 "uniqueWriterIdentity": {
1223 "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.", 1305 "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.",
1224 "location": "query", 1306 "location": "query",
1225 "type": "boolean" 1307 "type": "boolean"
1226 } 1308 }
1227 }, 1309 },
1228 "path": "v2/{+parent}/sinks", 1310 "path": "v2/{+parent}/sinks",
1229 "request": { 1311 "request": {
1230 "$ref": "LogSink" 1312 "$ref": "LogSink"
1231 }, 1313 },
1232 "response": { 1314 "response": {
1233 "$ref": "LogSink" 1315 "$ref": "LogSink"
1234 }, 1316 },
1235 "scopes": [ 1317 "scopes": [
1236 "https://www.googleapis.com/auth/cloud-platform" , 1318 "https://www.googleapis.com/auth/cloud-platform" ,
1237 "https://www.googleapis.com/auth/logging.admin" 1319 "https://www.googleapis.com/auth/logging.admin"
1238 ] 1320 ]
1239 }, 1321 },
1240 "get": { 1322 "get": {
1241 "description": "Gets a sink.", 1323 "description": "Gets a sink.",
1242 "httpMethod": "GET", 1324 "httpMethod": "GET",
1243 "id": "logging.organizations.sinks.get", 1325 "id": "logging.billingAccounts.sinks.get",
1244 "parameterOrder": [ 1326 "parameterOrder": [
1245 "sinkName" 1327 "sinkName"
1246 ], 1328 ],
1247 "parameters": { 1329 "parameters": {
1248 "sinkName": { 1330 "sinkName": {
1249 "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\".", 1331 "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\".",
1250 "location": "path", 1332 "location": "path",
1251 "pattern": "^organizations/[^/]+/sinks/[^/]+ $", 1333 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1252 "required": true, 1334 "required": true,
1253 "type": "string" 1335 "type": "string"
1254 } 1336 }
1255 }, 1337 },
1256 "path": "v2/{+sinkName}", 1338 "path": "v2/{+sinkName}",
1257 "response": { 1339 "response": {
1258 "$ref": "LogSink" 1340 "$ref": "LogSink"
1259 }, 1341 },
1260 "scopes": [ 1342 "scopes": [
1261 "https://www.googleapis.com/auth/cloud-platform" , 1343 "https://www.googleapis.com/auth/cloud-platform" ,
1262 "https://www.googleapis.com/auth/cloud-platform. read-only", 1344 "https://www.googleapis.com/auth/cloud-platform. read-only",
1263 "https://www.googleapis.com/auth/logging.admin", 1345 "https://www.googleapis.com/auth/logging.admin",
1264 "https://www.googleapis.com/auth/logging.read" 1346 "https://www.googleapis.com/auth/logging.read"
1265 ] 1347 ]
1266 }, 1348 },
1267 "patch": { 1349 "patch": {
1268 "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.", 1350 "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.",
1269 "httpMethod": "PATCH", 1351 "httpMethod": "PATCH",
1270 "id": "logging.organizations.sinks.patch", 1352 "id": "logging.billingAccounts.sinks.patch",
1271 "parameterOrder": [ 1353 "parameterOrder": [
1272 "sinkName" 1354 "sinkName"
1273 ], 1355 ],
1274 "parameters": { 1356 "parameters": {
1357 "updateMask": {
1358 "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.",
1359 "format": "google-fieldmask",
1360 "location": "query",
1361 "type": "string"
1362 },
1275 "uniqueWriterIdentity": { 1363 "uniqueWriterIdentity": {
1276 "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.", 1364 "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.",
1277 "location": "query", 1365 "location": "query",
1278 "type": "boolean" 1366 "type": "boolean"
1279 }, 1367 },
1280 "sinkName": { 1368 "sinkName": {
1281 "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\".", 1369 "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\".",
1282 "location": "path", 1370 "location": "path",
1283 "pattern": "^organizations/[^/]+/sinks/[^/]+ $", 1371 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1284 "required": true, 1372 "required": true,
1285 "type": "string" 1373 "type": "string"
1286 } 1374 }
1375 },
1376 "path": "v2/{+sinkName}",
1377 "request": {
1378 "$ref": "LogSink"
1379 },
1380 "response": {
1381 "$ref": "LogSink"
1382 },
1383 "scopes": [
1384 "https://www.googleapis.com/auth/cloud-platform" ,
1385 "https://www.googleapis.com/auth/logging.admin"
1386 ]
1387 },
1388 "update": {
1389 "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.",
1390 "httpMethod": "PUT",
1391 "id": "logging.billingAccounts.sinks.update",
1392 "parameterOrder": [
1393 "sinkName"
1394 ],
1395 "parameters": {
1396 "updateMask": {
1397 "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.",
1398 "format": "google-fieldmask",
1399 "location": "query",
1400 "type": "string"
1401 },
1402 "uniqueWriterIdentity": {
1403 "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.",
1404 "location": "query",
1405 "type": "boolean"
1406 },
1407 "sinkName": {
1408 "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\".",
1409 "location": "path",
1410 "pattern": "^billingAccounts/[^/]+/sinks/[^/ ]+$",
1411 "required": true,
1412 "type": "string"
1413 }
1287 }, 1414 },
1288 "path": "v2/{+sinkName}", 1415 "path": "v2/{+sinkName}",
1289 "request": { 1416 "request": {
1290 "$ref": "LogSink" 1417 "$ref": "LogSink"
1291 }, 1418 },
1292 "response": { 1419 "response": {
1293 "$ref": "LogSink" 1420 "$ref": "LogSink"
1294 }, 1421 },
1295 "scopes": [ 1422 "scopes": [
1296 "https://www.googleapis.com/auth/cloud-platform" , 1423 "https://www.googleapis.com/auth/cloud-platform" ,
1297 "https://www.googleapis.com/auth/logging.admin" 1424 "https://www.googleapis.com/auth/logging.admin"
1298 ] 1425 ]
1299 } 1426 }
1300 } 1427 }
1301 }, 1428 },
1302 "logs": { 1429 "logs": {
1303 "methods": { 1430 "methods": {
1304 "delete": { 1431 "delete": {
1305 "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.", 1432 "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.",
1306 "httpMethod": "DELETE", 1433 "httpMethod": "DELETE",
1307 "id": "logging.organizations.logs.delete", 1434 "id": "logging.billingAccounts.logs.delete",
1308 "parameterOrder": [ 1435 "parameterOrder": [
1309 "logName" 1436 "logName"
1310 ], 1437 ],
1311 "parameters": { 1438 "parameters": {
1312 "logName": { 1439 "logName": {
1313 "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.", 1440 "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.",
1314 "location": "path", 1441 "location": "path",
1315 "pattern": "^organizations/[^/]+/logs/[^/]+$ ", 1442 "pattern": "^billingAccounts/[^/]+/logs/[^/] +$",
1316 "required": true, 1443 "required": true,
1317 "type": "string" 1444 "type": "string"
1318 } 1445 }
1319 }, 1446 },
1320 "path": "v2/{+logName}", 1447 "path": "v2/{+logName}",
1321 "response": { 1448 "response": {
1322 "$ref": "Empty" 1449 "$ref": "Empty"
1323 }, 1450 },
1324 "scopes": [ 1451 "scopes": [
1325 "https://www.googleapis.com/auth/cloud-platform" , 1452 "https://www.googleapis.com/auth/cloud-platform" ,
1326 "https://www.googleapis.com/auth/logging.admin" 1453 "https://www.googleapis.com/auth/logging.admin"
1327 ] 1454 ]
1328 }, 1455 },
1329 "list": { 1456 "list": {
1330 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.", 1457 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
1331 "httpMethod": "GET", 1458 "httpMethod": "GET",
1332 "id": "logging.organizations.logs.list", 1459 "id": "logging.billingAccounts.logs.list",
1333 "parameterOrder": [ 1460 "parameterOrder": [
1334 "parent" 1461 "parent"
1335 ], 1462 ],
1336 "parameters": { 1463 "parameters": {
1337 "pageToken": { 1464 "pageToken": {
1338 "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.", 1465 "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.",
1339 "location": "query", 1466 "location": "query",
1340 "type": "string" 1467 "type": "string"
1341 }, 1468 },
1342 "pageSize": { 1469 "pageSize": {
1343 "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.", 1470 "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.",
1344 "format": "int32", 1471 "format": "int32",
1345 "location": "query", 1472 "location": "query",
1346 "type": "integer" 1473 "type": "integer"
1347 }, 1474 },
1348 "parent": { 1475 "parent": {
1349 "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", 1476 "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",
1350 "location": "path", 1477 "location": "path",
1351 "pattern": "^organizations/[^/]+$", 1478 "pattern": "^billingAccounts/[^/]+$",
1352 "required": true, 1479 "required": true,
1353 "type": "string" 1480 "type": "string"
1354 } 1481 }
1355 }, 1482 },
1356 "path": "v2/{+parent}/logs", 1483 "path": "v2/{+parent}/logs",
1357 "response": { 1484 "response": {
1358 "$ref": "ListLogsResponse" 1485 "$ref": "ListLogsResponse"
1359 }, 1486 },
1360 "scopes": [ 1487 "scopes": [
1361 "https://www.googleapis.com/auth/cloud-platform" , 1488 "https://www.googleapis.com/auth/cloud-platform" ,
1362 "https://www.googleapis.com/auth/cloud-platform. read-only", 1489 "https://www.googleapis.com/auth/cloud-platform. read-only",
1363 "https://www.googleapis.com/auth/logging.admin", 1490 "https://www.googleapis.com/auth/logging.admin",
1364 "https://www.googleapis.com/auth/logging.read" 1491 "https://www.googleapis.com/auth/logging.read"
1365 ] 1492 ]
1366 } 1493 }
1367 } 1494 }
1495 },
1496 "exclusions": {
1497 "methods": {
1498 "create": {
1499 "description": "Creates a new exclusion in a specifi ed parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
1500 "httpMethod": "POST",
1501 "id": "logging.billingAccounts.exclusions.create",
1502 "parameterOrder": [
1503 "parent"
1504 ],
1505 "parameters": {
1506 "parent": {
1507 "description": "Required. The parent resourc e in which to create the exclusion:\n\"projects/[PROJECT_ID]\"\n\"organizations/ [ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER _ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\"." ,
1508 "location": "path",
1509 "pattern": "^billingAccounts/[^/]+$",
1510 "required": true,
1511 "type": "string"
1512 }
1513 },
1514 "path": "v2/{+parent}/exclusions",
1515 "request": {
1516 "$ref": "LogExclusion"
1517 },
1518 "response": {
1519 "$ref": "LogExclusion"
1520 },
1521 "scopes": [
1522 "https://www.googleapis.com/auth/cloud-platform" ,
1523 "https://www.googleapis.com/auth/logging.admin"
1524 ]
1525 },
1526 "delete": {
1527 "description": "Deletes an exclusion.",
1528 "httpMethod": "DELETE",
1529 "id": "logging.billingAccounts.exclusions.delete",
1530 "parameterOrder": [
1531 "name"
1532 ],
1533 "parameters": {
1534 "name": {
1535 "description": "Required. The resource name of an existing exclusion to delete:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSI ON_ID]\"\n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billi ngAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_I D]/exclusions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my- exclusion-id\".",
1536 "location": "path",
1537 "pattern": "^billingAccounts/[^/]+/exclusion s/[^/]+$",
1538 "required": true,
1539 "type": "string"
1540 }
1541 },
1542 "path": "v2/{+name}",
1543 "response": {
1544 "$ref": "Empty"
1545 },
1546 "scopes": [
1547 "https://www.googleapis.com/auth/cloud-platform" ,
1548 "https://www.googleapis.com/auth/logging.admin"
1549 ]
1550 },
1551 "patch": {
1552 "description": "Changes one or more properties of an existing exclusion.",
1553 "httpMethod": "PATCH",
1554 "id": "logging.billingAccounts.exclusions.patch",
1555 "parameterOrder": [
1556 "name"
1557 ],
1558 "parameters": {
1559 "updateMask": {
1560 "description": "Required. A nonempty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fie lds not mentioned in update_mask are not changed and are ignored in the request. For example, to change the filter and description of an exclusion, specify an up date_mask of \"filter,description\".",
1561 "format": "google-fieldmask",
1562 "location": "query",
1563 "type": "string"
1564 },
1565 "name": {
1566 "description": "Required. The resource name of the exclusion to update:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccoun ts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclu sions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusio n-id\".",
1567 "location": "path",
1568 "pattern": "^billingAccounts/[^/]+/exclusion s/[^/]+$",
1569 "required": true,
1570 "type": "string"
1571 }
1572 },
1573 "path": "v2/{+name}",
1574 "request": {
1575 "$ref": "LogExclusion"
1576 },
1577 "response": {
1578 "$ref": "LogExclusion"
1579 },
1580 "scopes": [
1581 "https://www.googleapis.com/auth/cloud-platform" ,
1582 "https://www.googleapis.com/auth/logging.admin"
1583 ]
1584 },
1585 "get": {
1586 "description": "Gets the description of an exclusion .",
1587 "httpMethod": "GET",
1588 "id": "logging.billingAccounts.exclusions.get",
1589 "parameterOrder": [
1590 "name"
1591 ],
1592 "parameters": {
1593 "name": {
1594 "description": "Required. The resource name of an existing exclusion:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\"\n \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccounts /[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclusi ons/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusion- id\".",
1595 "location": "path",
1596 "pattern": "^billingAccounts/[^/]+/exclusion s/[^/]+$",
1597 "required": true,
1598 "type": "string"
1599 }
1600 },
1601 "path": "v2/{+name}",
1602 "response": {
1603 "$ref": "LogExclusion"
1604 },
1605 "scopes": [
1606 "https://www.googleapis.com/auth/cloud-platform" ,
1607 "https://www.googleapis.com/auth/cloud-platform. read-only",
1608 "https://www.googleapis.com/auth/logging.admin",
1609 "https://www.googleapis.com/auth/logging.read"
1610 ]
1611 },
1612 "list": {
1613 "description": "Lists all the exclusions in a parent resource.",
1614 "httpMethod": "GET",
1615 "id": "logging.billingAccounts.exclusions.list",
1616 "parameterOrder": [
1617 "parent"
1618 ],
1619 "parameters": {
1620 "parent": {
1621 "description": "Required. The parent resourc e whose exclusions are to be listed.\n\"projects/[PROJECT_ID]\"\n\"organizations /[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDE R_ID]\"\n",
1622 "location": "path",
1623 "pattern": "^billingAccounts/[^/]+$",
1624 "required": true,
1625 "type": "string"
1626 },
1627 "pageToken": {
1628 "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.",
1629 "location": "query",
1630 "type": "string"
1631 },
1632 "pageSize": {
1633 "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.",
1634 "format": "int32",
1635 "location": "query",
1636 "type": "integer"
1637 }
1638 },
1639 "path": "v2/{+parent}/exclusions",
1640 "response": {
1641 "$ref": "ListExclusionsResponse"
1642 },
1643 "scopes": [
1644 "https://www.googleapis.com/auth/cloud-platform" ,
1645 "https://www.googleapis.com/auth/cloud-platform. read-only",
1646 "https://www.googleapis.com/auth/logging.admin",
1647 "https://www.googleapis.com/auth/logging.read"
1648 ]
1649 }
1650 }
1368 } 1651 }
1369 } 1652 }
1370 }, 1653 },
1371 "entries": { 1654 "folders": {
1372 "methods": { 1655 "resources": {
1373 "list": { 1656 "sinks": {
1374 "description": "Lists log entries. Use this method to retrie ve log entries from Stackdriver Logging. For ways to export log entries, see Exp orting Logs.", 1657 "methods": {
1375 "httpMethod": "POST", 1658 "get": {
1376 "id": "logging.entries.list", 1659 "description": "Gets a sink.",
1377 "parameterOrder": [], 1660 "httpMethod": "GET",
1378 "parameters": {}, 1661 "id": "logging.folders.sinks.get",
1379 "path": "v2/entries:list", 1662 "parameterOrder": [
1380 "request": { 1663 "sinkName"
1381 "$ref": "ListLogEntriesRequest" 1664 ],
1382 }, 1665 "parameters": {
1383 "response": { 1666 "sinkName": {
1384 "$ref": "ListLogEntriesResponse" 1667 "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\".",
1385 }, 1668 "location": "path",
1386 "scopes": [ 1669 "pattern": "^folders/[^/]+/sinks/[^/]+$",
1387 "https://www.googleapis.com/auth/cloud-platform", 1670 "required": true,
1388 "https://www.googleapis.com/auth/cloud-platform.read-onl y", 1671 "type": "string"
1389 "https://www.googleapis.com/auth/logging.admin", 1672 }
1390 "https://www.googleapis.com/auth/logging.read" 1673 },
1391 ] 1674 "path": "v2/{+sinkName}",
1392 }, 1675 "response": {
1393 "write": { 1676 "$ref": "LogSink"
1394 "description": "Writes log entries to Stackdriver Logging.", 1677 },
1395 "httpMethod": "POST", 1678 "scopes": [
1396 "id": "logging.entries.write", 1679 "https://www.googleapis.com/auth/cloud-platform" ,
1397 "parameterOrder": [], 1680 "https://www.googleapis.com/auth/cloud-platform. read-only",
1398 "parameters": {}, 1681 "https://www.googleapis.com/auth/logging.admin",
1399 "path": "v2/entries:write", 1682 "https://www.googleapis.com/auth/logging.read"
1400 "request": { 1683 ]
1401 "$ref": "WriteLogEntriesRequest" 1684 },
1402 }, 1685 "patch": {
1403 "response": { 1686 "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.",
1404 "$ref": "WriteLogEntriesResponse" 1687 "httpMethod": "PATCH",
1405 }, 1688 "id": "logging.folders.sinks.patch",
1406 "scopes": [ 1689 "parameterOrder": [
1407 "https://www.googleapis.com/auth/cloud-platform", 1690 "sinkName"
1408 "https://www.googleapis.com/auth/logging.admin", 1691 ],
1409 "https://www.googleapis.com/auth/logging.write" 1692 "parameters": {
1410 ] 1693 "updateMask": {
1694 "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.",
1695 "format": "google-fieldmask",
1696 "location": "query",
1697 "type": "string"
1698 },
1699 "uniqueWriterIdentity": {
1700 "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.",
1701 "location": "query",
1702 "type": "boolean"
1703 },
1704 "sinkName": {
1705 "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\".",
1706 "location": "path",
1707 "pattern": "^folders/[^/]+/sinks/[^/]+$",
1708 "required": true,
1709 "type": "string"
1710 }
1711 },
1712 "path": "v2/{+sinkName}",
1713 "request": {
1714 "$ref": "LogSink"
1715 },
1716 "response": {
1717 "$ref": "LogSink"
1718 },
1719 "scopes": [
1720 "https://www.googleapis.com/auth/cloud-platform" ,
1721 "https://www.googleapis.com/auth/logging.admin"
1722 ]
1723 },
1724 "update": {
1725 "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.",
1726 "httpMethod": "PUT",
1727 "id": "logging.folders.sinks.update",
1728 "parameterOrder": [
1729 "sinkName"
1730 ],
1731 "parameters": {
1732 "updateMask": {
1733 "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.",
1734 "format": "google-fieldmask",
1735 "location": "query",
1736 "type": "string"
1737 },
1738 "uniqueWriterIdentity": {
1739 "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.",
1740 "location": "query",
1741 "type": "boolean"
1742 },
1743 "sinkName": {
1744 "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\".",
1745 "location": "path",
1746 "pattern": "^folders/[^/]+/sinks/[^/]+$",
1747 "required": true,
1748 "type": "string"
1749 }
1750 },
1751 "path": "v2/{+sinkName}",
1752 "request": {
1753 "$ref": "LogSink"
1754 },
1755 "response": {
1756 "$ref": "LogSink"
1757 },
1758 "scopes": [
1759 "https://www.googleapis.com/auth/cloud-platform" ,
1760 "https://www.googleapis.com/auth/logging.admin"
1761 ]
1762 },
1763 "delete": {
1764 "description": "Deletes a sink. If the sink has a un ique writer_identity, then that service account is also deleted.",
1765 "httpMethod": "DELETE",
1766 "id": "logging.folders.sinks.delete",
1767 "parameterOrder": [
1768 "sinkName"
1769 ],
1770 "parameters": {
1771 "sinkName": {
1772 "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\".",
1773 "location": "path",
1774 "pattern": "^folders/[^/]+/sinks/[^/]+$",
1775 "required": true,
1776 "type": "string"
1777 }
1778 },
1779 "path": "v2/{+sinkName}",
1780 "response": {
1781 "$ref": "Empty"
1782 },
1783 "scopes": [
1784 "https://www.googleapis.com/auth/cloud-platform" ,
1785 "https://www.googleapis.com/auth/logging.admin"
1786 ]
1787 },
1788 "list": {
1789 "description": "Lists sinks.",
1790 "httpMethod": "GET",
1791 "id": "logging.folders.sinks.list",
1792 "parameterOrder": [
1793 "parent"
1794 ],
1795 "parameters": {
1796 "pageToken": {
1797 "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.",
1798 "location": "query",
1799 "type": "string"
1800 },
1801 "pageSize": {
1802 "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.",
1803 "format": "int32",
1804 "location": "query",
1805 "type": "integer"
1806 },
1807 "parent": {
1808 "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",
1809 "location": "path",
1810 "pattern": "^folders/[^/]+$",
1811 "required": true,
1812 "type": "string"
1813 }
1814 },
1815 "path": "v2/{+parent}/sinks",
1816 "response": {
1817 "$ref": "ListSinksResponse"
1818 },
1819 "scopes": [
1820 "https://www.googleapis.com/auth/cloud-platform" ,
1821 "https://www.googleapis.com/auth/cloud-platform. read-only",
1822 "https://www.googleapis.com/auth/logging.admin",
1823 "https://www.googleapis.com/auth/logging.read"
1824 ]
1825 },
1826 "create": {
1827 "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.",
1828 "httpMethod": "POST",
1829 "id": "logging.folders.sinks.create",
1830 "parameterOrder": [
1831 "parent"
1832 ],
1833 "parameters": {
1834 "parent": {
1835 "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\".",
1836 "location": "path",
1837 "pattern": "^folders/[^/]+$",
1838 "required": true,
1839 "type": "string"
1840 },
1841 "uniqueWriterIdentity": {
1842 "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.",
1843 "location": "query",
1844 "type": "boolean"
1845 }
1846 },
1847 "path": "v2/{+parent}/sinks",
1848 "request": {
1849 "$ref": "LogSink"
1850 },
1851 "response": {
1852 "$ref": "LogSink"
1853 },
1854 "scopes": [
1855 "https://www.googleapis.com/auth/cloud-platform" ,
1856 "https://www.googleapis.com/auth/logging.admin"
1857 ]
1858 }
1859 }
1860 },
1861 "logs": {
1862 "methods": {
1863 "delete": {
1864 "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.",
1865 "httpMethod": "DELETE",
1866 "id": "logging.folders.logs.delete",
1867 "parameterOrder": [
1868 "logName"
1869 ],
1870 "parameters": {
1871 "logName": {
1872 "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.",
1873 "location": "path",
1874 "pattern": "^folders/[^/]+/logs/[^/]+$",
1875 "required": true,
1876 "type": "string"
1877 }
1878 },
1879 "path": "v2/{+logName}",
1880 "response": {
1881 "$ref": "Empty"
1882 },
1883 "scopes": [
1884 "https://www.googleapis.com/auth/cloud-platform" ,
1885 "https://www.googleapis.com/auth/logging.admin"
1886 ]
1887 },
1888 "list": {
1889 "description": "Lists the logs in projects, organiza tions, folders, or billing accounts. Only logs that have entries are listed.",
1890 "httpMethod": "GET",
1891 "id": "logging.folders.logs.list",
1892 "parameterOrder": [
1893 "parent"
1894 ],
1895 "parameters": {
1896 "parent": {
1897 "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",
1898 "location": "path",
1899 "pattern": "^folders/[^/]+$",
1900 "required": true,
1901 "type": "string"
1902 },
1903 "pageToken": {
1904 "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.",
1905 "location": "query",
1906 "type": "string"
1907 },
1908 "pageSize": {
1909 "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.",
1910 "format": "int32",
1911 "location": "query",
1912 "type": "integer"
1913 }
1914 },
1915 "path": "v2/{+parent}/logs",
1916 "response": {
1917 "$ref": "ListLogsResponse"
1918 },
1919 "scopes": [
1920 "https://www.googleapis.com/auth/cloud-platform" ,
1921 "https://www.googleapis.com/auth/cloud-platform. read-only",
1922 "https://www.googleapis.com/auth/logging.admin",
1923 "https://www.googleapis.com/auth/logging.read"
1924 ]
1925 }
1926 }
1927 },
1928 "exclusions": {
1929 "methods": {
1930 "create": {
1931 "description": "Creates a new exclusion in a specifi ed parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.",
1932 "httpMethod": "POST",
1933 "id": "logging.folders.exclusions.create",
1934 "parameterOrder": [
1935 "parent"
1936 ],
1937 "parameters": {
1938 "parent": {
1939 "description": "Required. The parent resourc e in which to create the exclusion:\n\"projects/[PROJECT_ID]\"\n\"organizations/ [ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER _ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\"." ,
1940 "location": "path",
1941 "pattern": "^folders/[^/]+$",
1942 "required": true,
1943 "type": "string"
1944 }
1945 },
1946 "path": "v2/{+parent}/exclusions",
1947 "request": {
1948 "$ref": "LogExclusion"
1949 },
1950 "response": {
1951 "$ref": "LogExclusion"
1952 },
1953 "scopes": [
1954 "https://www.googleapis.com/auth/cloud-platform" ,
1955 "https://www.googleapis.com/auth/logging.admin"
1956 ]
1957 },
1958 "delete": {
1959 "description": "Deletes an exclusion.",
1960 "httpMethod": "DELETE",
1961 "id": "logging.folders.exclusions.delete",
1962 "parameterOrder": [
1963 "name"
1964 ],
1965 "parameters": {
1966 "name": {
1967 "description": "Required. The resource name of an existing exclusion to delete:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSI ON_ID]\"\n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billi ngAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_I D]/exclusions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my- exclusion-id\".",
1968 "location": "path",
1969 "pattern": "^folders/[^/]+/exclusions/[^/]+$ ",
1970 "required": true,
1971 "type": "string"
1972 }
1973 },
1974 "path": "v2/{+name}",
1975 "response": {
1976 "$ref": "Empty"
1977 },
1978 "scopes": [
1979 "https://www.googleapis.com/auth/cloud-platform" ,
1980 "https://www.googleapis.com/auth/logging.admin"
1981 ]
1982 },
1983 "patch": {
1984 "description": "Changes one or more properties of an existing exclusion.",
1985 "httpMethod": "PATCH",
1986 "id": "logging.folders.exclusions.patch",
1987 "parameterOrder": [
1988 "name"
1989 ],
1990 "parameters": {
1991 "updateMask": {
1992 "description": "Required. A nonempty list of fields to change in the existing exclusion. New values for the fields are taken from the corresponding fields in the LogExclusion included in this request. Fie lds not mentioned in update_mask are not changed and are ignored in the request. For example, to change the filter and description of an exclusion, specify an up date_mask of \"filter,description\".",
1993 "format": "google-fieldmask",
1994 "location": "query",
1995 "type": "string"
1996 },
1997 "name": {
1998 "description": "Required. The resource name of the exclusion to update:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\" \n\"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccoun ts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclu sions/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusio n-id\".",
1999 "location": "path",
2000 "pattern": "^folders/[^/]+/exclusions/[^/]+$ ",
2001 "required": true,
2002 "type": "string"
2003 }
2004 },
2005 "path": "v2/{+name}",
2006 "request": {
2007 "$ref": "LogExclusion"
2008 },
2009 "response": {
2010 "$ref": "LogExclusion"
2011 },
2012 "scopes": [
2013 "https://www.googleapis.com/auth/cloud-platform" ,
2014 "https://www.googleapis.com/auth/logging.admin"
2015 ]
2016 },
2017 "get": {
2018 "description": "Gets the description of an exclusion .",
2019 "httpMethod": "GET",
2020 "id": "logging.folders.exclusions.get",
2021 "parameterOrder": [
2022 "name"
2023 ],
2024 "parameters": {
2025 "name": {
2026 "description": "Required. The resource name of an existing exclusion:\n\"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]\"\n \"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]\"\n\"billingAccounts /[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]\"\n\"folders/[FOLDER_ID]/exclusi ons/[EXCLUSION_ID]\"\nExample: \"projects/my-project-id/exclusions/my-exclusion- id\".",
2027 "location": "path",
2028 "pattern": "^folders/[^/]+/exclusions/[^/]+$ ",
2029 "required": true,
2030 "type": "string"
2031 }
2032 },
2033 "path": "v2/{+name}",
2034 "response": {
2035 "$ref": "LogExclusion"
2036 },
2037 "scopes": [
2038 "https://www.googleapis.com/auth/cloud-platform" ,
2039 "https://www.googleapis.com/auth/cloud-platform. read-only",
2040 "https://www.googleapis.com/auth/logging.admin",
2041 "https://www.googleapis.com/auth/logging.read"
2042 ]
2043 },
2044 "list": {
2045 "description": "Lists all the exclusions in a parent resource.",
2046 "httpMethod": "GET",
2047 "id": "logging.folders.exclusions.list",
2048 "parameterOrder": [
2049 "parent"
2050 ],
2051 "parameters": {
2052 "pageToken": {
2053 "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.",
2054 "location": "query",
2055 "type": "string"
2056 },
2057 "pageSize": {
2058 "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.",
2059 "format": "int32",
2060 "location": "query",
2061 "type": "integer"
2062 },
2063 "parent": {
2064 "description": "Required. The parent resourc e whose exclusions are to be listed.\n\"projects/[PROJECT_ID]\"\n\"organizations /[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDE R_ID]\"\n",
2065 "location": "path",
2066 "pattern": "^folders/[^/]+$",
2067 "required": true,
2068 "type": "string"
2069 }
2070 },
2071 "path": "v2/{+parent}/exclusions",
2072 "response": {
2073 "$ref": "ListExclusionsResponse"
2074 },
2075 "scopes": [
2076 "https://www.googleapis.com/auth/cloud-platform" ,
2077 "https://www.googleapis.com/auth/cloud-platform. read-only",
2078 "https://www.googleapis.com/auth/logging.admin",
2079 "https://www.googleapis.com/auth/logging.read"
2080 ]
2081 }
2082 }
1411 } 2083 }
1412 } 2084 }
1413 } 2085 }
1414 }, 2086 },
1415 "revision": "20170814", 2087 "revision": "20170905",
1416 "rootUrl": "https://logging.googleapis.com/", 2088 "rootUrl": "https://logging.googleapis.com/",
1417 "schemas": { 2089 "schemas": {
2090 "Explicit": {
2091 "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.",
2092 "id": "Explicit",
2093 "properties": {
2094 "bounds": {
2095 "description": "The values must be monotonically increasing. ",
2096 "items": {
2097 "format": "double",
2098 "type": "number"
2099 },
2100 "type": "array"
2101 }
2102 },
2103 "type": "object"
2104 },
2105 "SourceReference": {
2106 "description": "A reference to a particular snapshot of the source t ree used to build and deploy an application.",
2107 "id": "SourceReference",
2108 "properties": {
2109 "repository": {
2110 "description": "Optional. A URI string identifying the repos itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"",
2111 "type": "string"
2112 },
2113 "revisionId": {
2114 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "",
2115 "type": "string"
2116 }
2117 },
2118 "type": "object"
2119 },
2120 "WriteLogEntriesResponse": {
2121 "description": "Result returned from WriteLogEntries. empty",
2122 "id": "WriteLogEntriesResponse",
2123 "properties": {},
2124 "type": "object"
2125 },
2126 "Exponential": {
2127 "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)).",
2128 "id": "Exponential",
2129 "properties": {
2130 "growthFactor": {
2131 "description": "Must be greater than 1.",
2132 "format": "double",
2133 "type": "number"
2134 },
2135 "scale": {
2136 "description": "Must be greater than 0.",
2137 "format": "double",
2138 "type": "number"
2139 },
2140 "numFiniteBuckets": {
2141 "description": "Must be greater than 0.",
2142 "format": "int32",
2143 "type": "integer"
2144 }
2145 },
2146 "type": "object"
2147 },
2148 "WriteLogEntriesRequest": {
2149 "description": "The parameters to WriteLogEntries.",
2150 "id": "WriteLogEntriesRequest",
2151 "properties": {
2152 "entries": {
2153 "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.",
2154 "items": {
2155 "$ref": "LogEntry"
2156 },
2157 "type": "array"
2158 },
2159 "logName": {
2160 "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.",
2161 "type": "string"
2162 },
2163 "partialSuccess": {
2164 "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.",
2165 "type": "boolean"
2166 },
2167 "labels": {
2168 "additionalProperties": {
2169 "type": "string"
2170 },
2171 "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.",
2172 "type": "object"
2173 },
2174 "resource": {
2175 "$ref": "MonitoredResource",
2176 "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 ."
2177 }
2178 },
2179 "type": "object"
2180 },
2181 "LabelDescriptor": {
2182 "description": "A description of a label.",
2183 "id": "LabelDescriptor",
2184 "properties": {
2185 "valueType": {
2186 "description": "The type of data that can be assigned to the label.",
2187 "enum": [
2188 "STRING",
2189 "BOOL",
2190 "INT64"
2191 ],
2192 "enumDescriptions": [
2193 "A variable-length string. This is the default.",
2194 "Boolean; true or false.",
2195 "A 64-bit signed integer."
2196 ],
2197 "type": "string"
2198 },
2199 "key": {
2200 "description": "The label key.",
2201 "type": "string"
2202 },
2203 "description": {
2204 "description": "A human-readable description for the label." ,
2205 "type": "string"
2206 }
2207 },
2208 "type": "object"
2209 },
2210 "BucketOptions": {
2211 "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.",
2212 "id": "BucketOptions",
2213 "properties": {
2214 "exponentialBuckets": {
2215 "$ref": "Exponential",
2216 "description": "The exponential buckets."
2217 },
2218 "explicitBuckets": {
2219 "$ref": "Explicit",
2220 "description": "The explicit buckets."
2221 },
2222 "linearBuckets": {
2223 "$ref": "Linear",
2224 "description": "The linear bucket."
2225 }
2226 },
2227 "type": "object"
2228 },
2229 "ListLogMetricsResponse": {
2230 "description": "Result returned from ListLogMetrics.",
2231 "id": "ListLogMetricsResponse",
2232 "properties": {
2233 "metrics": {
2234 "description": "A list of logs-based metrics.",
2235 "items": {
2236 "$ref": "LogMetric"
2237 },
2238 "type": "array"
2239 },
2240 "nextPageToken": {
2241 "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.",
2242 "type": "string"
2243 }
2244 },
2245 "type": "object"
2246 },
2247 "MetricDescriptor": {
2248 "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.",
2249 "id": "MetricDescriptor",
2250 "properties": {
2251 "valueType": {
2252 "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.",
2253 "enum": [
2254 "VALUE_TYPE_UNSPECIFIED",
2255 "BOOL",
2256 "INT64",
2257 "DOUBLE",
2258 "STRING",
2259 "DISTRIBUTION",
2260 "MONEY"
2261 ],
2262 "enumDescriptions": [
2263 "Do not use this default value.",
2264 "The value is a boolean. This value type can be used onl y if the metric kind is GAUGE.",
2265 "The value is a signed 64-bit integer.",
2266 "The value is a double precision floating point number." ,
2267 "The value is a text string. This value type can be used only if the metric kind is GAUGE.",
2268 "The value is a Distribution.",
2269 "The value is money."
2270 ],
2271 "type": "string"
2272 },
2273 "metricKind": {
2274 "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.",
2275 "enum": [
2276 "METRIC_KIND_UNSPECIFIED",
2277 "GAUGE",
2278 "DELTA",
2279 "CUMULATIVE"
2280 ],
2281 "enumDescriptions": [
2282 "Do not use this default value.",
2283 "An instantaneous measurement of a value.",
2284 "The change in a value during a time interval.",
2285 "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."
2286 ],
2287 "type": "string"
2288 },
2289 "displayName": {
2290 "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\".",
2291 "type": "string"
2292 },
2293 "description": {
2294 "description": "A detailed description of the metric, which can be used in documentation.",
2295 "type": "string"
2296 },
2297 "unit": {
2298 "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 '}'.",
2299 "type": "string"
2300 },
2301 "labels": {
2302 "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.",
2303 "items": {
2304 "$ref": "LabelDescriptor"
2305 },
2306 "type": "array"
2307 },
2308 "name": {
2309 "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",
2310 "type": "string"
2311 },
2312 "type": {
2313 "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",
2314 "type": "string"
2315 }
2316 },
2317 "type": "object"
2318 },
2319 "LogEntry": {
2320 "description": "An individual entry in a log.",
2321 "id": "LogEntry",
2322 "properties": {
2323 "severity": {
2324 "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.",
2325 "enum": [
2326 "DEFAULT",
2327 "DEBUG",
2328 "INFO",
2329 "NOTICE",
2330 "WARNING",
2331 "ERROR",
2332 "CRITICAL",
2333 "ALERT",
2334 "EMERGENCY"
2335 ],
2336 "enumDescriptions": [
2337 "(0) The log entry has no assigned severity level.",
2338 "(100) Debug or trace information.",
2339 "(200) Routine information, such as ongoing status or pe rformance.",
2340 "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
2341 "(400) Warning events might cause problems.",
2342 "(500) Error events are likely to cause problems.",
2343 "(600) Critical events cause more severe problems or out ages.",
2344 "(700) A person must take an action immediately.",
2345 "(800) One or more systems are unusable."
2346 ],
2347 "type": "string"
2348 },
2349 "sourceLocation": {
2350 "$ref": "LogEntrySourceLocation",
2351 "description": "Optional. Source code location information a ssociated with the log entry, if any."
2352 },
2353 "timestamp": {
2354 "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.",
2355 "format": "google-datetime",
2356 "type": "string"
2357 },
2358 "receiveTimestamp": {
2359 "description": "Output only. The time the log entry was rece ived by Stackdriver Logging.",
2360 "format": "google-datetime",
2361 "type": "string"
2362 },
2363 "logName": {
2364 "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.",
2365 "type": "string"
2366 },
2367 "resource": {
2368 "$ref": "MonitoredResource",
2369 "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."
2370 },
2371 "httpRequest": {
2372 "$ref": "HttpRequest",
2373 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
2374 },
2375 "jsonPayload": {
2376 "additionalProperties": {
2377 "description": "Properties of the object.",
2378 "type": "any"
2379 },
2380 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.",
2381 "type": "object"
2382 },
2383 "operation": {
2384 "$ref": "LogEntryOperation",
2385 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable."
2386 },
2387 "insertId": {
2388 "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.",
2389 "type": "string"
2390 },
2391 "textPayload": {
2392 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
2393 "type": "string"
2394 },
2395 "protoPayload": {
2396 "additionalProperties": {
2397 "description": "Properties of the object. Contains field @type with type URL.",
2398 "type": "any"
2399 },
2400 "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.",
2401 "type": "object"
2402 },
2403 "trace": {
2404 "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",
2405 "type": "string"
2406 },
2407 "labels": {
2408 "additionalProperties": {
2409 "type": "string"
2410 },
2411 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.",
2412 "type": "object"
2413 }
2414 },
2415 "type": "object"
2416 },
2417 "RequestLog": {
2418 "description": "Complete log information about a single HTTP request to an App Engine application.",
2419 "id": "RequestLog",
2420 "properties": {
2421 "line": {
2422 "description": "A list of log lines emitted by the applicati on while serving this request.",
2423 "items": {
2424 "$ref": "LogLine"
2425 },
2426 "type": "array"
2427 },
2428 "referrer": {
2429 "description": "Referrer URL of request.",
2430 "type": "string"
2431 },
2432 "taskQueueName": {
2433 "description": "Queue name of the request, in the case of an offline request.",
2434 "type": "string"
2435 },
2436 "requestId": {
2437 "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.",
2438 "type": "string"
2439 },
2440 "nickname": {
2441 "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.",
2442 "type": "string"
2443 },
2444 "status": {
2445 "description": "HTTP response status code. Example: 200, 404 .",
2446 "format": "int32",
2447 "type": "integer"
2448 },
2449 "resource": {
2450 "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.",
2451 "type": "string"
2452 },
2453 "pendingTime": {
2454 "description": "Time this request spent in the pending reque st queue.",
2455 "format": "google-duration",
2456 "type": "string"
2457 },
2458 "taskName": {
2459 "description": "Task name of the request, in the case of an offline request.",
2460 "type": "string"
2461 },
2462 "urlMapEntry": {
2463 "description": "File or class that handled the request.",
2464 "type": "string"
2465 },
2466 "instanceIndex": {
2467 "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.",
2468 "format": "int32",
2469 "type": "integer"
2470 },
2471 "finished": {
2472 "description": "Whether this request is finished or active." ,
2473 "type": "boolean"
2474 },
2475 "host": {
2476 "description": "Internet host and port number of the resourc e being requested.",
2477 "type": "string"
2478 },
2479 "httpVersion": {
2480 "description": "HTTP version of request. Example: \"HTTP/1.1 \".",
2481 "type": "string"
2482 },
2483 "startTime": {
2484 "description": "Time when the request started.",
2485 "format": "google-datetime",
2486 "type": "string"
2487 },
2488 "latency": {
2489 "description": "Latency of the request.",
2490 "format": "google-duration",
2491 "type": "string"
2492 },
2493 "ip": {
2494 "description": "Origin IP address.",
2495 "type": "string"
2496 },
2497 "appId": {
2498 "description": "Application that handled this request.",
2499 "type": "string"
2500 },
2501 "appEngineRelease": {
2502 "description": "App Engine release version.",
2503 "type": "string"
2504 },
2505 "method": {
2506 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
2507 "type": "string"
2508 },
2509 "cost": {
2510 "description": "An indication of the relative cost of servin g this request.",
2511 "format": "double",
2512 "type": "number"
2513 },
2514 "instanceId": {
2515 "description": "An identifier for the instance that handled the request.",
2516 "type": "string"
2517 },
2518 "megaCycles": {
2519 "description": "Number of CPU megacycles used to process req uest.",
2520 "format": "int64",
2521 "type": "string"
2522 },
2523 "first": {
2524 "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.",
2525 "type": "boolean"
2526 },
2527 "versionId": {
2528 "description": "Version of the application that handled this request.",
2529 "type": "string"
2530 },
2531 "moduleId": {
2532 "description": "Module of the application that handled this request.",
2533 "type": "string"
2534 },
2535 "endTime": {
2536 "description": "Time when the request finished.",
2537 "format": "google-datetime",
2538 "type": "string"
2539 },
2540 "userAgent": {
2541 "description": "User agent that made the request.",
2542 "type": "string"
2543 },
2544 "wasLoadingRequest": {
2545 "description": "Whether this was a loading request for the i nstance.",
2546 "type": "boolean"
2547 },
2548 "sourceReference": {
2549 "description": "Source code for the application that handled this request. There can be more than one source reference per deployed applicat ion if source code is distributed among multiple repositories.",
2550 "items": {
2551 "$ref": "SourceReference"
2552 },
2553 "type": "array"
2554 },
2555 "responseSize": {
2556 "description": "Size in bytes sent back to client by request .",
2557 "format": "int64",
2558 "type": "string"
2559 },
2560 "traceId": {
2561 "description": "Stackdriver Trace identifier for this reques t.",
2562 "type": "string"
2563 }
2564 },
2565 "type": "object"
2566 },
2567 "LogExclusion": {
2568 "description": "Specifies a set of log entries that are not to be st ored in Stackdriver Logging. If your project receives a large volume of logs, yo u might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are exclud ed. Audit log entries and log entries from Amazon Web Services are never exclude d.",
2569 "id": "LogExclusion",
2570 "properties": {
2571 "disabled": {
2572 "description": "Optional. If set to True, then this exclusio n is disabled and it does not exclude any log entries. You can use exclusions.pa tch to change the value of this field.",
2573 "type": "boolean"
2574 },
2575 "filter": {
2576 "description": "Required. An advanced logs filter that match es the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter m atches 99% of low-severity log entries from load balancers:\n\"resource.type=htt p_load_balancer severity<ERROR sample(insertId, 0.99)\"\n",
2577 "type": "string"
2578 },
2579 "name": {
2580 "description": "Required. A client-assigned identifier, such as \"load-balancer-exclusion\". Identifiers are limited to 100 characters and c an include only letters, digits, underscores, hyphens, and periods.",
2581 "type": "string"
2582 },
2583 "description": {
2584 "description": "Optional. A description of this exclusion.",
2585 "type": "string"
2586 }
2587 },
2588 "type": "object"
2589 },
1418 "ListMonitoredResourceDescriptorsResponse": { 2590 "ListMonitoredResourceDescriptorsResponse": {
1419 "description": "Result returned from ListMonitoredResourceDescriptor s.", 2591 "description": "Result returned from ListMonitoredResourceDescriptor s.",
1420 "id": "ListMonitoredResourceDescriptorsResponse", 2592 "id": "ListMonitoredResourceDescriptorsResponse",
1421 "properties": { 2593 "properties": {
1422 "nextPageToken": { 2594 "nextPageToken": {
1423 "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." , 2595 "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." ,
1424 "type": "string" 2596 "type": "string"
1425 }, 2597 },
1426 "resourceDescriptors": { 2598 "resourceDescriptors": {
1427 "description": "A list of resource descriptors.", 2599 "description": "A list of resource descriptors.",
1428 "items": { 2600 "items": {
1429 "$ref": "MonitoredResourceDescriptor" 2601 "$ref": "MonitoredResourceDescriptor"
1430 }, 2602 },
1431 "type": "array" 2603 "type": "array"
1432 } 2604 }
1433 }, 2605 },
1434 "type": "object" 2606 "type": "object"
1435 }, 2607 },
1436 "SourceReference": { 2608 "ListExclusionsResponse": {
1437 "description": "A reference to a particular snapshot of the source t ree used to build and deploy an application.", 2609 "description": "Result returned from ListExclusions.",
1438 "id": "SourceReference", 2610 "id": "ListExclusionsResponse",
1439 "properties": { 2611 "properties": {
1440 "repository": { 2612 "exclusions": {
1441 "description": "Optional. A URI string identifying the repos itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", 2613 "description": "A list of exclusions.",
1442 "type": "string" 2614 "items": {
2615 "$ref": "LogExclusion"
2616 },
2617 "type": "array"
1443 }, 2618 },
1444 "revisionId": { 2619 "nextPageToken": {
1445 "description": "The canonical and persistent identifier of t he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\ "", 2620 "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.",
1446 "type": "string" 2621 "type": "string"
1447 } 2622 }
1448 }, 2623 },
1449 "type": "object" 2624 "type": "object"
1450 }, 2625 },
1451 "WriteLogEntriesResponse": {
1452 "description": "Result returned from WriteLogEntries. empty",
1453 "id": "WriteLogEntriesResponse",
1454 "properties": {},
1455 "type": "object"
1456 },
1457 "LogEntryOperation": { 2626 "LogEntryOperation": {
1458 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.", 2627 "description": "Additional information about a potentially long-runn ing operation with which a log entry is associated.",
1459 "id": "LogEntryOperation", 2628 "id": "LogEntryOperation",
1460 "properties": { 2629 "properties": {
1461 "last": { 2630 "last": {
1462 "description": "Optional. Set this to True if this is the la st log entry in the operation.", 2631 "description": "Optional. Set this to True if this is the la st log entry in the operation.",
1463 "type": "boolean" 2632 "type": "boolean"
1464 }, 2633 },
1465 "id": { 2634 "id": {
1466 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.", 2635 "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operati on.",
1467 "type": "string" 2636 "type": "string"
1468 }, 2637 },
1469 "first": { 2638 "first": {
1470 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.", 2639 "description": "Optional. Set this to True if this is the fi rst log entry in the operation.",
1471 "type": "boolean" 2640 "type": "boolean"
1472 }, 2641 },
1473 "producer": { 2642 "producer": {
1474 "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\".", 2643 "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\".",
1475 "type": "string" 2644 "type": "string"
1476 } 2645 }
1477 }, 2646 },
1478 "type": "object" 2647 "type": "object"
1479 }, 2648 },
1480 "LogMetric": { 2649 "LogMetric": {
1481 "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.", 2650 "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.",
1482 "id": "LogMetric", 2651 "id": "LogMetric",
1483 "properties": { 2652 "properties": {
1484 "filter": { 2653 "bucketOptions": {
1485 "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.", 2654 "$ref": "BucketOptions",
2655 "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."
2656 },
2657 "valueExtractor": {
2658 "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+).*\")",
1486 "type": "string" 2659 "type": "string"
1487 }, 2660 },
1488 "name": { 2661 "name": {
1489 "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\".", 2662 "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\".",
1490 "type": "string" 2663 "type": "string"
1491 }, 2664 },
1492 "description": { 2665 "labelExtractors": {
1493 "description": "Optional. A description of this metric, whic h is used in documentation.", 2666 "additionalProperties": {
1494 "type": "string" 2667 "type": "string"
2668 },
2669 "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.",
2670 "type": "object"
1495 }, 2671 },
1496 "version": { 2672 "version": {
1497 "description": "Output only. The API version that created or updated this metric. This value is currently always set to V2.", 2673 "description": "Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.",
1498 "enum": [ 2674 "enum": [
1499 "V2", 2675 "V2",
1500 "V1" 2676 "V1"
1501 ], 2677 ],
1502 "enumDescriptions": [ 2678 "enumDescriptions": [
1503 "Stackdriver Logging API v2.", 2679 "Stackdriver Logging API v2.",
1504 "Stackdriver Logging API v1." 2680 "Stackdriver Logging API v1."
1505 ], 2681 ],
1506 "type": "string" 2682 "type": "string"
2683 },
2684 "metricDescriptor": {
2685 "$ref": "MetricDescriptor",
2686 "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."
2687 },
2688 "filter": {
2689 "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.",
2690 "type": "string"
2691 },
2692 "description": {
2693 "description": "Optional. A description of this metric, whic h is used in documentation.",
2694 "type": "string"
1507 } 2695 }
1508 }, 2696 },
1509 "type": "object" 2697 "type": "object"
1510 }, 2698 },
1511 "MonitoredResource": { 2699 "MonitoredResource": {
1512 "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", 2700 "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",
1513 "id": "MonitoredResource", 2701 "id": "MonitoredResource",
1514 "properties": { 2702 "properties": {
2703 "type": {
2704 "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.",
2705 "type": "string"
2706 },
1515 "labels": { 2707 "labels": {
1516 "additionalProperties": { 2708 "additionalProperties": {
1517 "type": "string" 2709 "type": "string"
1518 }, 2710 },
1519 "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\".", 2711 "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\".",
1520 "type": "object" 2712 "type": "object"
1521 },
1522 "type": {
1523 "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.",
1524 "type": "string"
1525 } 2713 }
1526 }, 2714 },
1527 "type": "object" 2715 "type": "object"
1528 },
1529 "WriteLogEntriesRequest": {
1530 "description": "The parameters to WriteLogEntries.",
1531 "id": "WriteLogEntriesRequest",
1532 "properties": {
1533 "entries": {
1534 "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.",
1535 "items": {
1536 "$ref": "LogEntry"
1537 },
1538 "type": "array"
1539 },
1540 "logName": {
1541 "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.",
1542 "type": "string"
1543 },
1544 "partialSuccess": {
1545 "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.",
1546 "type": "boolean"
1547 },
1548 "labels": {
1549 "additionalProperties": {
1550 "type": "string"
1551 },
1552 "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.",
1553 "type": "object"
1554 },
1555 "resource": {
1556 "$ref": "MonitoredResource",
1557 "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 ."
1558 }
1559 },
1560 "type": "object"
1561 }, 2716 },
1562 "LogSink": { 2717 "LogSink": {
1563 "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.", 2718 "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.",
1564 "id": "LogSink", 2719 "id": "LogSink",
1565 "properties": { 2720 "properties": {
2721 "writerIdentity": {
2722 "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.",
2723 "type": "string"
2724 },
2725 "startTime": {
2726 "description": "Deprecated. This field is ignored when creat ing or updating sinks.",
2727 "format": "google-datetime",
2728 "type": "string"
2729 },
1566 "outputVersionFormat": { 2730 "outputVersionFormat": {
1567 "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.", 2731 "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.",
1568 "enum": [ 2732 "enum": [
1569 "VERSION_FORMAT_UNSPECIFIED", 2733 "VERSION_FORMAT_UNSPECIFIED",
1570 "V2", 2734 "V2",
1571 "V1" 2735 "V1"
1572 ], 2736 ],
1573 "enumDescriptions": [ 2737 "enumDescriptions": [
1574 "An unspecified format version that will default to V2." , 2738 "An unspecified format version that will default to V2." ,
1575 "LogEntry version 2 format.", 2739 "LogEntry version 2 format.",
1576 "LogEntry version 1 format." 2740 "LogEntry version 1 format."
1577 ], 2741 ],
1578 "type": "string" 2742 "type": "string"
1579 }, 2743 },
1580 "name": { 2744 "name": {
1581 "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.", 2745 "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.",
1582 "type": "string" 2746 "type": "string"
1583 }, 2747 },
1584 "includeChildren": { 2748 "includeChildren": {
1585 "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", 2749 "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",
1586 "type": "boolean" 2750 "type": "boolean"
1587 }, 2751 },
1588 "destination": { 2752 "destination": {
1589 "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.", 2753 "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.",
1590 "type": "string" 2754 "type": "string"
1591 }, 2755 },
1592 "filter": { 2756 "filter": {
1593 "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", 2757 "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",
1594 "type": "string" 2758 "type": "string"
1595 }, 2759 },
1596 "endTime": { 2760 "endTime": {
1597 "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.", 2761 "description": "Deprecated. This field is ignored when creat ing or updating sinks.",
1598 "format": "google-datetime", 2762 "format": "google-datetime",
1599 "type": "string" 2763 "type": "string"
1600 },
1601 "startTime": {
1602 "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.",
1603 "format": "google-datetime",
1604 "type": "string"
1605 },
1606 "writerIdentity": {
1607 "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.",
1608 "type": "string"
1609 } 2764 }
1610 }, 2765 },
1611 "type": "object" 2766 "type": "object"
1612 }, 2767 },
1613 "ListLogsResponse": { 2768 "ListLogsResponse": {
1614 "description": "Result returned from ListLogs.", 2769 "description": "Result returned from ListLogs.",
1615 "id": "ListLogsResponse", 2770 "id": "ListLogsResponse",
1616 "properties": { 2771 "properties": {
1617 "nextPageToken": { 2772 "nextPageToken": {
1618 "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." , 2773 "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." ,
1619 "type": "string" 2774 "type": "string"
1620 }, 2775 },
1621 "logNames": { 2776 "logNames": {
1622 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".", 2777 "description": "A list of log names. For example, \"projects /my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com% 2Factivity\".",
1623 "items": { 2778 "items": {
1624 "type": "string" 2779 "type": "string"
1625 }, 2780 },
1626 "type": "array" 2781 "type": "array"
1627 } 2782 }
1628 }, 2783 },
1629 "type": "object" 2784 "type": "object"
1630 }, 2785 },
1631 "HttpRequest": { 2786 "HttpRequest": {
1632 "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.", 2787 "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.",
1633 "id": "HttpRequest", 2788 "id": "HttpRequest",
1634 "properties": { 2789 "properties": {
1635 "remoteIp": {
1636 "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\".",
1637 "type": "string"
1638 },
1639 "serverIp": {
1640 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
1641 "type": "string"
1642 },
1643 "cacheLookup": { 2790 "cacheLookup": {
1644 "description": "Whether or not a cache lookup was attempted. ", 2791 "description": "Whether or not a cache lookup was attempted. ",
1645 "type": "boolean" 2792 "type": "boolean"
1646 }, 2793 },
1647 "cacheHit": { 2794 "cacheHit": {
1648 "description": "Whether or not an entity was served from cac he (with or without validation).", 2795 "description": "Whether or not an entity was served from cac he (with or without validation).",
1649 "type": "boolean" 2796 "type": "boolean"
1650 }, 2797 },
1651 "cacheValidatedWithOriginServer": { 2798 "cacheValidatedWithOriginServer": {
1652 "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.", 2799 "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.",
1653 "type": "boolean" 2800 "type": "boolean"
1654 }, 2801 },
1655 "status": { 2802 "status": {
1656 "description": "The response code indicating the status of r esponse. Examples: 200, 404.", 2803 "description": "The response code indicating the status of r esponse. Examples: 200, 404.",
1657 "format": "int32", 2804 "format": "int32",
1658 "type": "integer" 2805 "type": "integer"
1659 }, 2806 },
1660 "referer": { 2807 "referer": {
1661 "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).", 2808 "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).",
1662 "type": "string" 2809 "type": "string"
1663 }, 2810 },
1664 "userAgent": {
1665 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
1666 "type": "string"
1667 },
1668 "latency": { 2811 "latency": {
1669 "description": "The request processing latency on the server , from the time the request was received until the response was sent.", 2812 "description": "The request processing latency on the server , from the time the request was received until the response was sent.",
1670 "format": "google-duration", 2813 "format": "google-duration",
1671 "type": "string" 2814 "type": "string"
1672 }, 2815 },
2816 "userAgent": {
2817 "description": "The user agent sent by the client. Example: \"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"." ,
2818 "type": "string"
2819 },
1673 "cacheFillBytes": { 2820 "cacheFillBytes": {
1674 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.", 2821 "description": "The number of HTTP response bytes inserted i nto cache. Set only when a cache fill was attempted.",
1675 "format": "int64", 2822 "format": "int64",
1676 "type": "string" 2823 "type": "string"
1677 }, 2824 },
1678 "requestMethod": { 2825 "requestMethod": {
1679 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".", 2826 "description": "The request method. Examples: \"GET\", \"HEA D\", \"PUT\", \"POST\".",
1680 "type": "string" 2827 "type": "string"
1681 }, 2828 },
1682 "protocol": { 2829 "requestSize": {
1683 "description": "Protocol used for the request. Examples: \"H TTP/1.1\", \"HTTP/2\", \"websocket\"", 2830 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.",
2831 "format": "int64",
1684 "type": "string" 2832 "type": "string"
1685 }, 2833 },
1686 "responseSize": { 2834 "responseSize": {
1687 "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.", 2835 "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.",
1688 "format": "int64", 2836 "format": "int64",
1689 "type": "string" 2837 "type": "string"
1690 }, 2838 },
1691 "requestSize": { 2839 "protocol": {
1692 "description": "The size of the HTTP request message in byte s, including the request headers and the request body.", 2840 "description": "Protocol used for the request. Examples: \"H TTP/1.1\", \"HTTP/2\", \"websocket\"",
1693 "format": "int64",
1694 "type": "string" 2841 "type": "string"
1695 }, 2842 },
1696 "requestUrl": { 2843 "requestUrl": {
1697 "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\".", 2844 "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\".",
1698 "type": "string" 2845 "type": "string"
2846 },
2847 "serverIp": {
2848 "description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.",
2849 "type": "string"
2850 },
2851 "remoteIp": {
2852 "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\".",
2853 "type": "string"
1699 } 2854 }
1700 }, 2855 },
1701 "type": "object" 2856 "type": "object"
1702 }, 2857 },
1703 "ListSinksResponse": { 2858 "ListSinksResponse": {
1704 "description": "Result returned from ListSinks.", 2859 "description": "Result returned from ListSinks.",
1705 "id": "ListSinksResponse", 2860 "id": "ListSinksResponse",
1706 "properties": { 2861 "properties": {
1707 "sinks": { 2862 "sinks": {
1708 "description": "A list of sinks.", 2863 "description": "A list of sinks.",
1709 "items": { 2864 "items": {
1710 "$ref": "LogSink" 2865 "$ref": "LogSink"
1711 }, 2866 },
1712 "type": "array" 2867 "type": "array"
1713 }, 2868 },
1714 "nextPageToken": { 2869 "nextPageToken": {
1715 "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.", 2870 "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.",
1716 "type": "string" 2871 "type": "string"
1717 } 2872 }
1718 }, 2873 },
1719 "type": "object" 2874 "type": "object"
1720 }, 2875 },
1721 "LabelDescriptor": {
1722 "description": "A description of a label.",
1723 "id": "LabelDescriptor",
1724 "properties": {
1725 "valueType": {
1726 "description": "The type of data that can be assigned to the label.",
1727 "enum": [
1728 "STRING",
1729 "BOOL",
1730 "INT64"
1731 ],
1732 "enumDescriptions": [
1733 "A variable-length string. This is the default.",
1734 "Boolean; true or false.",
1735 "A 64-bit signed integer."
1736 ],
1737 "type": "string"
1738 },
1739 "key": {
1740 "description": "The label key.",
1741 "type": "string"
1742 },
1743 "description": {
1744 "description": "A human-readable description for the label." ,
1745 "type": "string"
1746 }
1747 },
1748 "type": "object"
1749 },
1750 "MonitoredResourceDescriptor": { 2876 "MonitoredResourceDescriptor": {
1751 "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.", 2877 "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.",
1752 "id": "MonitoredResourceDescriptor", 2878 "id": "MonitoredResourceDescriptor",
1753 "properties": { 2879 "properties": {
1754 "labels": {
1755 "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 \".",
1756 "items": {
1757 "$ref": "LabelDescriptor"
1758 },
1759 "type": "array"
1760 },
1761 "name": { 2880 "name": {
1762 "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}\".", 2881 "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}\".",
1763 "type": "string" 2882 "type": "string"
1764 }, 2883 },
1765 "description": { 2884 "description": {
1766 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.", 2885 "description": "Optional. A detailed description of the moni tored resource type that might be used in documentation.",
1767 "type": "string" 2886 "type": "string"
1768 }, 2887 },
1769 "displayName": { 2888 "displayName": {
1770 "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\".", 2889 "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\".",
1771 "type": "string" 2890 "type": "string"
1772 }, 2891 },
1773 "type": { 2892 "type": {
1774 "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.", 2893 "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.",
1775 "type": "string" 2894 "type": "string"
2895 },
2896 "labels": {
2897 "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 \".",
2898 "items": {
2899 "$ref": "LabelDescriptor"
2900 },
2901 "type": "array"
1776 } 2902 }
1777 }, 2903 },
1778 "type": "object" 2904 "type": "object"
1779 }, 2905 },
1780 "LogEntrySourceLocation": { 2906 "LogEntrySourceLocation": {
1781 "description": "Additional information about the source code locatio n that produced the log entry.", 2907 "description": "Additional information about the source code locatio n that produced the log entry.",
1782 "id": "LogEntrySourceLocation", 2908 "id": "LogEntrySourceLocation",
1783 "properties": { 2909 "properties": {
1784 "file": { 2910 "file": {
1785 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.", 2911 "description": "Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.",
1786 "type": "string" 2912 "type": "string"
1787 }, 2913 },
1788 "function": { 2914 "function": {
1789 "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). ", 2915 "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). ",
1790 "type": "string" 2916 "type": "string"
1791 }, 2917 },
1792 "line": { 2918 "line": {
1793 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.", 2919 "description": "Optional. Line within the source file. 1-bas ed; 0 indicates no line number available.",
1794 "format": "int64", 2920 "format": "int64",
1795 "type": "string" 2921 "type": "string"
1796 } 2922 }
1797 }, 2923 },
1798 "type": "object" 2924 "type": "object"
1799 }, 2925 },
1800 "ListLogEntriesResponse": { 2926 "ListLogEntriesResponse": {
1801 "description": "Result returned from ListLogEntries.", 2927 "description": "Result returned from ListLogEntries.",
1802 "id": "ListLogEntriesResponse", 2928 "id": "ListLogEntriesResponse",
1803 "properties": { 2929 "properties": {
2930 "nextPageToken": {
2931 "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.",
2932 "type": "string"
2933 },
1804 "entries": { 2934 "entries": {
1805 "description": "A list of log entries.", 2935 "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.",
1806 "items": { 2936 "items": {
1807 "$ref": "LogEntry" 2937 "$ref": "LogEntry"
1808 }, 2938 },
1809 "type": "array" 2939 "type": "array"
1810 },
1811 "nextPageToken": {
1812 "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.",
1813 "type": "string"
1814 } 2940 }
1815 }, 2941 },
1816 "type": "object" 2942 "type": "object"
1817 }, 2943 },
1818 "LogLine": { 2944 "LogLine": {
1819 "description": "Application log line emitted while processing a requ est.", 2945 "description": "Application log line emitted while processing a requ est.",
1820 "id": "LogLine", 2946 "id": "LogLine",
1821 "properties": { 2947 "properties": {
1822 "time": {
1823 "description": "Approximate time when this log entry was mad e.",
1824 "format": "google-datetime",
1825 "type": "string"
1826 },
1827 "logMessage": { 2948 "logMessage": {
1828 "description": "App-provided log message.", 2949 "description": "App-provided log message.",
1829 "type": "string" 2950 "type": "string"
1830 }, 2951 },
1831 "severity": { 2952 "severity": {
1832 "description": "Severity of this log entry.", 2953 "description": "Severity of this log entry.",
1833 "enum": [ 2954 "enum": [
1834 "DEFAULT", 2955 "DEFAULT",
1835 "DEBUG", 2956 "DEBUG",
1836 "INFO",
1837 "NOTICE",
1838 "WARNING",
1839 "ERROR",
1840 "CRITICAL",
1841 "ALERT",
1842 "EMERGENCY"
1843 ],
1844 "enumDescriptions": [
1845 "(0) The log entry has no assigned severity level.",
1846 "(100) Debug or trace information.",
1847 "(200) Routine information, such as ongoing status or pe rformance.",
1848 "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
1849 "(400) Warning events might cause problems.",
1850 "(500) Error events are likely to cause problems.",
1851 "(600) Critical events cause more severe problems or out ages.",
1852 "(700) A person must take an action immediately.",
1853 "(800) One or more systems are unusable."
1854 ],
1855 "type": "string"
1856 },
1857 "sourceLocation": {
1858 "$ref": "SourceLocation",
1859 "description": "Where in the source code this log message wa s written."
1860 }
1861 },
1862 "type": "object"
1863 },
1864 "ListLogMetricsResponse": {
1865 "description": "Result returned from ListLogMetrics.",
1866 "id": "ListLogMetricsResponse",
1867 "properties": {
1868 "metrics": {
1869 "description": "A list of logs-based metrics.",
1870 "items": {
1871 "$ref": "LogMetric"
1872 },
1873 "type": "array"
1874 },
1875 "nextPageToken": {
1876 "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.",
1877 "type": "string"
1878 }
1879 },
1880 "type": "object"
1881 },
1882 "LogEntry": {
1883 "description": "An individual entry in a log.",
1884 "id": "LogEntry",
1885 "properties": {
1886 "operation": {
1887 "$ref": "LogEntryOperation",
1888 "description": "Optional. Information about an operation ass ociated with the log entry, if applicable."
1889 },
1890 "insertId": {
1891 "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.",
1892 "type": "string"
1893 },
1894 "textPayload": {
1895 "description": "The log entry payload, represented as a Unic ode string (UTF-8).",
1896 "type": "string"
1897 },
1898 "protoPayload": {
1899 "additionalProperties": {
1900 "description": "Properties of the object. Contains field @type with type URL.",
1901 "type": "any"
1902 },
1903 "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.",
1904 "type": "object"
1905 },
1906 "labels": {
1907 "additionalProperties": {
1908 "type": "string"
1909 },
1910 "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.",
1911 "type": "object"
1912 },
1913 "trace": {
1914 "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",
1915 "type": "string"
1916 },
1917 "severity": {
1918 "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.",
1919 "enum": [
1920 "DEFAULT",
1921 "DEBUG",
1922 "INFO", 2957 "INFO",
1923 "NOTICE", 2958 "NOTICE",
1924 "WARNING", 2959 "WARNING",
1925 "ERROR", 2960 "ERROR",
1926 "CRITICAL", 2961 "CRITICAL",
1927 "ALERT", 2962 "ALERT",
1928 "EMERGENCY" 2963 "EMERGENCY"
1929 ], 2964 ],
1930 "enumDescriptions": [ 2965 "enumDescriptions": [
1931 "(0) The log entry has no assigned severity level.", 2966 "(0) The log entry has no assigned severity level.",
1932 "(100) Debug or trace information.", 2967 "(100) Debug or trace information.",
1933 "(200) Routine information, such as ongoing status or pe rformance.", 2968 "(200) Routine information, such as ongoing status or pe rformance.",
1934 "(300) Normal but significant events, such as start up, shut down, or a configuration change.", 2969 "(300) Normal but significant events, such as start up, shut down, or a configuration change.",
1935 "(400) Warning events might cause problems.", 2970 "(400) Warning events might cause problems.",
1936 "(500) Error events are likely to cause problems.", 2971 "(500) Error events are likely to cause problems.",
1937 "(600) Critical events cause more severe problems or out ages.", 2972 "(600) Critical events cause more severe problems or out ages.",
1938 "(700) A person must take an action immediately.", 2973 "(700) A person must take an action immediately.",
1939 "(800) One or more systems are unusable." 2974 "(800) One or more systems are unusable."
1940 ], 2975 ],
1941 "type": "string" 2976 "type": "string"
1942 }, 2977 },
1943 "sourceLocation": { 2978 "sourceLocation": {
1944 "$ref": "LogEntrySourceLocation", 2979 "$ref": "SourceLocation",
1945 "description": "Optional. Source code location information a ssociated with the log entry, if any." 2980 "description": "Where in the source code this log message wa s written."
1946 }, 2981 },
1947 "timestamp": { 2982 "time": {
1948 "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.", 2983 "description": "Approximate time when this log entry was mad e.",
1949 "format": "google-datetime", 2984 "format": "google-datetime",
1950 "type": "string" 2985 "type": "string"
1951 },
1952 "receiveTimestamp": {
1953 "description": "Output only. The time the log entry was rece ived by Stackdriver Logging.",
1954 "format": "google-datetime",
1955 "type": "string"
1956 },
1957 "logName": {
1958 "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.",
1959 "type": "string"
1960 },
1961 "httpRequest": {
1962 "$ref": "HttpRequest",
1963 "description": "Optional. Information about the HTTP request associated with this log entry, if applicable."
1964 },
1965 "resource": {
1966 "$ref": "MonitoredResource",
1967 "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."
1968 },
1969 "jsonPayload": {
1970 "additionalProperties": {
1971 "description": "Properties of the object.",
1972 "type": "any"
1973 },
1974 "description": "The log entry payload, represented as a stru cture that is expressed as a JSON object.",
1975 "type": "object"
1976 } 2986 }
1977 }, 2987 },
1978 "type": "object" 2988 "type": "object"
2989 },
2990 "Linear": {
2991 "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)).",
2992 "id": "Linear",
2993 "properties": {
2994 "numFiniteBuckets": {
2995 "description": "Must be greater than 0.",
2996 "format": "int32",
2997 "type": "integer"
2998 },
2999 "width": {
3000 "description": "Must be greater than 0.",
3001 "format": "double",
3002 "type": "number"
3003 },
3004 "offset": {
3005 "description": "Lower bound of the first bucket.",
3006 "format": "double",
3007 "type": "number"
3008 }
3009 },
3010 "type": "object"
1979 }, 3011 },
1980 "Empty": { 3012 "Empty": {
1981 "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 {}.", 3013 "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 {}.",
1982 "id": "Empty", 3014 "id": "Empty",
1983 "properties": {}, 3015 "properties": {},
1984 "type": "object" 3016 "type": "object"
1985 }, 3017 },
1986 "SourceLocation": { 3018 "SourceLocation": {
1987 "description": "Specifies a location in a source code file.", 3019 "description": "Specifies a location in a source code file.",
1988 "id": "SourceLocation", 3020 "id": "SourceLocation",
(...skipping 22 matching lines...) Expand all
2011 "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.", 3043 "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.",
2012 "type": "string" 3044 "type": "string"
2013 }, 3045 },
2014 "resourceNames": { 3046 "resourceNames": {
2015 "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.", 3047 "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.",
2016 "items": { 3048 "items": {
2017 "type": "string" 3049 "type": "string"
2018 }, 3050 },
2019 "type": "array" 3051 "type": "array"
2020 }, 3052 },
2021 "filter": {
2022 "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.",
2023 "type": "string"
2024 },
2025 "projectIds": { 3053 "projectIds": {
2026 "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. ", 3054 "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. ",
2027 "items": { 3055 "items": {
2028 "type": "string" 3056 "type": "string"
2029 }, 3057 },
2030 "type": "array" 3058 "type": "array"
2031 }, 3059 },
3060 "filter": {
3061 "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.",
3062 "type": "string"
3063 },
2032 "pageToken": { 3064 "pageToken": {
2033 "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.", 3065 "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.",
2034 "type": "string" 3066 "type": "string"
2035 }, 3067 },
2036 "pageSize": { 3068 "pageSize": {
2037 "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.", 3069 "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.",
2038 "format": "int32", 3070 "format": "int32",
2039 "type": "integer" 3071 "type": "integer"
2040 } 3072 }
2041 }, 3073 },
2042 "type": "object" 3074 "type": "object"
2043 },
2044 "RequestLog": {
2045 "description": "Complete log information about a single HTTP request to an App Engine application.",
2046 "id": "RequestLog",
2047 "properties": {
2048 "first": {
2049 "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.",
2050 "type": "boolean"
2051 },
2052 "versionId": {
2053 "description": "Version of the application that handled this request.",
2054 "type": "string"
2055 },
2056 "moduleId": {
2057 "description": "Module of the application that handled this request.",
2058 "type": "string"
2059 },
2060 "endTime": {
2061 "description": "Time when the request finished.",
2062 "format": "google-datetime",
2063 "type": "string"
2064 },
2065 "userAgent": {
2066 "description": "User agent that made the request.",
2067 "type": "string"
2068 },
2069 "wasLoadingRequest": {
2070 "description": "Whether this was a loading request for the i nstance.",
2071 "type": "boolean"
2072 },
2073 "sourceReference": {
2074 "description": "Source code for the application that handled this request. There can be more than one source reference per deployed applicat ion if source code is distributed among multiple repositories.",
2075 "items": {
2076 "$ref": "SourceReference"
2077 },
2078 "type": "array"
2079 },
2080 "responseSize": {
2081 "description": "Size in bytes sent back to client by request .",
2082 "format": "int64",
2083 "type": "string"
2084 },
2085 "traceId": {
2086 "description": "Stackdriver Trace identifier for this reques t.",
2087 "type": "string"
2088 },
2089 "line": {
2090 "description": "A list of log lines emitted by the applicati on while serving this request.",
2091 "items": {
2092 "$ref": "LogLine"
2093 },
2094 "type": "array"
2095 },
2096 "referrer": {
2097 "description": "Referrer URL of request.",
2098 "type": "string"
2099 },
2100 "taskQueueName": {
2101 "description": "Queue name of the request, in the case of an offline request.",
2102 "type": "string"
2103 },
2104 "requestId": {
2105 "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.",
2106 "type": "string"
2107 },
2108 "nickname": {
2109 "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.",
2110 "type": "string"
2111 },
2112 "pendingTime": {
2113 "description": "Time this request spent in the pending reque st queue.",
2114 "format": "google-duration",
2115 "type": "string"
2116 },
2117 "status": {
2118 "description": "HTTP response status code. Example: 200, 404 .",
2119 "format": "int32",
2120 "type": "integer"
2121 },
2122 "resource": {
2123 "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.",
2124 "type": "string"
2125 },
2126 "taskName": {
2127 "description": "Task name of the request, in the case of an offline request.",
2128 "type": "string"
2129 },
2130 "urlMapEntry": {
2131 "description": "File or class that handled the request.",
2132 "type": "string"
2133 },
2134 "instanceIndex": {
2135 "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.",
2136 "format": "int32",
2137 "type": "integer"
2138 },
2139 "host": {
2140 "description": "Internet host and port number of the resourc e being requested.",
2141 "type": "string"
2142 },
2143 "finished": {
2144 "description": "Whether this request is finished or active." ,
2145 "type": "boolean"
2146 },
2147 "httpVersion": {
2148 "description": "HTTP version of request. Example: \"HTTP/1.1 \".",
2149 "type": "string"
2150 },
2151 "startTime": {
2152 "description": "Time when the request started.",
2153 "format": "google-datetime",
2154 "type": "string"
2155 },
2156 "latency": {
2157 "description": "Latency of the request.",
2158 "format": "google-duration",
2159 "type": "string"
2160 },
2161 "ip": {
2162 "description": "Origin IP address.",
2163 "type": "string"
2164 },
2165 "appId": {
2166 "description": "Application that handled this request.",
2167 "type": "string"
2168 },
2169 "appEngineRelease": {
2170 "description": "App Engine release version.",
2171 "type": "string"
2172 },
2173 "method": {
2174 "description": "Request method. Example: \"GET\", \"HEAD\", \"PUT\", \"POST\", \"DELETE\".",
2175 "type": "string"
2176 },
2177 "cost": {
2178 "description": "An indication of the relative cost of servin g this request.",
2179 "format": "double",
2180 "type": "number"
2181 },
2182 "instanceId": {
2183 "description": "An identifier for the instance that handled the request.",
2184 "type": "string"
2185 },
2186 "megaCycles": {
2187 "description": "Number of CPU megacycles used to process req uest.",
2188 "format": "int64",
2189 "type": "string"
2190 }
2191 },
2192 "type": "object"
2193 } 3075 }
2194 }, 3076 },
2195 "servicePath": "", 3077 "servicePath": "",
2196 "title": "Stackdriver Logging API", 3078 "title": "Stackdriver Logging API",
2197 "version": "v2" 3079 "version": "v2"
2198 } 3080 }
OLDNEW
« no previous file with comments | « discovery/googleapis/licensing__v1.json ('k') | discovery/googleapis/manufacturers__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698