google-cloud-logging 0.24.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/lib/google/cloud/logging.rb +5 -6
  4. data/lib/google/cloud/logging/entry.rb +28 -2
  5. data/lib/google/cloud/logging/entry/list.rb +6 -6
  6. data/lib/google/cloud/logging/entry/operation.rb +1 -1
  7. data/lib/google/cloud/logging/entry/source_location.rb +86 -0
  8. data/lib/google/cloud/logging/log/list.rb +155 -0
  9. data/lib/google/cloud/logging/metric/list.rb +6 -6
  10. data/lib/google/cloud/logging/middleware.rb +27 -23
  11. data/lib/google/cloud/logging/project.rb +46 -3
  12. data/lib/google/cloud/logging/rails.rb +37 -20
  13. data/lib/google/cloud/logging/resource_descriptor/list.rb +6 -6
  14. data/lib/google/cloud/logging/service.rb +15 -0
  15. data/lib/google/cloud/logging/sink/list.rb +6 -6
  16. data/lib/google/cloud/logging/v2/config_service_v2_client.rb +24 -13
  17. data/lib/google/cloud/logging/v2/config_service_v2_client_config.json +3 -1
  18. data/lib/google/cloud/logging/v2/doc/google/logging/v2/log_entry.rb +12 -6
  19. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging.rb +26 -12
  20. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb +23 -12
  21. data/lib/google/cloud/logging/v2/doc/google/protobuf/any.rb +13 -3
  22. data/lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb +6 -0
  23. data/lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb +3 -5
  24. data/lib/google/cloud/logging/v2/logging_service_v2_client.rb +43 -27
  25. data/lib/google/cloud/logging/v2/logging_service_v2_client_config.json +6 -4
  26. data/lib/google/cloud/logging/v2/metrics_service_v2_client.rb +3 -2
  27. data/lib/google/cloud/logging/v2/metrics_service_v2_client_config.json +3 -1
  28. data/lib/google/cloud/logging/version.rb +1 -1
  29. data/lib/google/logging/v2/logging_config_services_pb.rb +1 -1
  30. data/lib/google/logging/v2/logging_metrics_pb.rb +2 -0
  31. data/lib/google/logging/v2/logging_metrics_services_pb.rb +1 -1
  32. data/lib/google/logging/v2/logging_services_pb.rb +5 -4
  33. metadata +9 -7
@@ -22,6 +22,8 @@ module Google
22
22
  #
23
23
  # "projects/[PROJECT_ID]/logs/[LOG_ID]"
24
24
  # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
25
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
26
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
25
27
  #
26
28
  # +[LOG_ID]+ must be URL-encoded. For example,
27
29
  # +"projects/my-project-id/logs/syslog"+,
@@ -38,6 +40,8 @@ module Google
38
40
  #
39
41
  # "projects/[PROJECT_ID]/logs/[LOG_ID]"
40
42
  # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
43
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
44
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
41
45
  #
42
46
  # +[LOG_ID]+ must be URL-encoded. For example,
43
47
  # +"projects/my-project-id/logs/syslog"+ or
@@ -62,10 +66,16 @@ module Google
62
66
  # See LogEntry.
63
67
  # @!attribute [rw] entries
64
68
  # @return [Array<Google::Logging::V2::LogEntry>]
65
- # Required. The log entries to write. Values supplied for the fields
69
+ # Required. The log entries to write. Values supplied for the fields
66
70
  # +log_name+, +resource+, and +labels+ in this +entries.write+ request are
67
- # added to those log entries that do not provide their own values for the
68
- # fields.
71
+ # inserted into those log entries in this list that do not provide their own
72
+ # values.
73
+ #
74
+ # Stackdriver Logging also creates and inserts values for +timestamp+ and
75
+ # +insert_id+ if the entries do not provide them. The created +insert_id+ for
76
+ # the N'th entry in this list will be greater than earlier entries and less
77
+ # than later entries. Otherwise, the order of log entries in this list does
78
+ # not matter.
69
79
  #
70
80
  # To improve throughput and to avoid exceeding the
71
81
  # {quota limit}[https://cloud.google.com/logging/quota-policy] for calls to +entries.write+,
@@ -75,9 +85,9 @@ module Google
75
85
  # @return [true, false]
76
86
  # Optional. Whether valid entries should be written even if some other
77
87
  # entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
78
- # entry is not written, the response status will be the error associated
79
- # with one of the failed entries and include error details in the form of
80
- # WriteLogEntriesPartialErrors.
88
+ # entry is not written, then the response status is the error associated
89
+ # with one of the failed entries and the response includes error details
90
+ # keyed by the entries' zero-based index in the +entries.write+ method.
81
91
  class WriteLogEntriesRequest; end
82
92
 
83
93
  # Result returned from WriteLogEntries.
@@ -94,11 +104,13 @@ module Google
94
104
  # +resource_names+.
95
105
  # @!attribute [rw] resource_names
96
106
  # @return [Array<String>]
97
- # Required. Names of one or more resources from which to retrieve log
98
- # entries:
107
+ # Required. Names of one or more parent resources from which to
108
+ # retrieve log entries:
99
109
  #
100
110
  # "projects/[PROJECT_ID]"
101
111
  # "organizations/[ORGANIZATION_ID]"
112
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
113
+ # "folders/[FOLDER_ID]"
102
114
  #
103
115
  # Projects listed in the +project_ids+ field are added to this list.
104
116
  # @!attribute [rw] filter
@@ -117,17 +129,17 @@ module Google
117
129
  # option returns entries in order of increasing values of
118
130
  # +LogEntry.timestamp+ (oldest first), and the second option returns entries
119
131
  # in order of decreasing timestamps (newest first). Entries with equal
120
- # timestamps are returned in order of +LogEntry.insertId+.
132
+ # timestamps are returned in order of their +insert_id+ values.
121
133
  # @!attribute [rw] page_size
122
134
  # @return [Integer]
123
135
  # Optional. The maximum number of results to return from this request.
124
- # Non-positive values are ignored. The presence of +nextPageToken+ in the
136
+ # Non-positive values are ignored. The presence of +next_page_token+ in the
125
137
  # response indicates that more results might be available.
126
138
  # @!attribute [rw] page_token
127
139
  # @return [String]
128
140
  # Optional. If present, then retrieve the next batch of results from the
129
- # preceding call to this method. +pageToken+ must be the value of
130
- # +nextPageToken+ from the previous response. The values of other method
141
+ # preceding call to this method. +page_token+ must be the value of
142
+ # +next_page_token+ from the previous response. The values of other method
131
143
  # parameters should be identical to those in the previous call.
132
144
  class ListLogEntriesRequest; end
133
145
 
@@ -181,6 +193,8 @@ module Google
181
193
  #
182
194
  # "projects/[PROJECT_ID]"
183
195
  # "organizations/[ORGANIZATION_ID]"
196
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
197
+ # "folders/[FOLDER_ID]"
184
198
  # @!attribute [rw] page_size
185
199
  # @return [Integer]
186
200
  # Optional. The maximum number of results to return from this request.
@@ -18,7 +18,8 @@ module Google
18
18
  # Describes a sink used to export log entries to one of the following
19
19
  # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
20
20
  # Cloud Pub/Sub topic. A logs filter controls which log entries are
21
- # exported. The sink must be created within a project or organization.
21
+ # exported. The sink must be created within a project, organization, billing
22
+ # account, or folder.
22
23
  # @!attribute [rw] name
23
24
  # @return [String]
24
25
  # Required. The client-assigned sink identifier, unique within the
@@ -102,8 +103,12 @@ module Google
102
103
  # The parameters to +ListSinks+.
103
104
  # @!attribute [rw] parent
104
105
  # @return [String]
105
- # Required. The parent resource whose sinks are to be listed.
106
- # Examples: +"projects/my-logging-project"+, +"organizations/123456789"+.
106
+ # Required. The parent resource whose sinks are to be listed:
107
+ #
108
+ # "projects/[PROJECT_ID]"
109
+ # "organizations/[ORGANIZATION_ID]"
110
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
111
+ # "folders/[FOLDER_ID]"
107
112
  # @!attribute [rw] page_token
108
113
  # @return [String]
109
114
  # Optional. If present, then retrieve the next batch of results from the
@@ -131,10 +136,12 @@ module Google
131
136
  # The parameters to +GetSink+.
132
137
  # @!attribute [rw] sink_name
133
138
  # @return [String]
134
- # Required. The parent resource name of the sink:
139
+ # Required. The resource name of the sink:
135
140
  #
136
141
  # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
137
142
  # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
143
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
144
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
138
145
  #
139
146
  # Example: +"projects/my-project-id/sinks/my-sink-id"+.
140
147
  class GetSinkRequest; end
@@ -146,6 +153,8 @@ module Google
146
153
  #
147
154
  # "projects/[PROJECT_ID]"
148
155
  # "organizations/[ORGANIZATION_ID]"
156
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
157
+ # "folders/[FOLDER_ID]"
149
158
  #
150
159
  # Examples: +"projects/my-logging-project"+, +"organizations/123456789"+.
151
160
  # @!attribute [rw] sink
@@ -157,9 +166,9 @@ module Google
157
166
  # Optional. Determines the kind of IAM identity returned as +writer_identity+
158
167
  # in the new sink. If this value is omitted or set to false, and if the
159
168
  # sink's parent is a project, then the value returned as +writer_identity+ is
160
- # +cloud-logs@google.com+, the same identity used before the addition of
161
- # writer identities to this API. The sink's destination must be in the same
162
- # project as the sink itself.
169
+ # the same group or service account used by Stackdriver Logging before the
170
+ # addition of writer identities to this API. The sink's destination must be
171
+ # in the same project as the sink itself.
163
172
  #
164
173
  # If this field is set to true, or if the sink is owned by a non-project
165
174
  # resource such as an organization, then the value of +writer_identity+ will
@@ -175,6 +184,8 @@ module Google
175
184
  #
176
185
  # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
177
186
  # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
187
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
188
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
178
189
  #
179
190
  # Example: +"projects/my-project-id/sinks/my-sink-id"+.
180
191
  # @!attribute [rw] sink
@@ -192,9 +203,9 @@ module Google
192
203
  #
193
204
  # + If the old and new values of this field are both false or both true,
194
205
  # then there is no change to the sink's +writer_identity+.
195
- # + If the old value was false and the new value is true, then
206
+ # + If the old value is false and the new value is true, then
196
207
  # +writer_identity+ is changed to a unique service account.
197
- # + It is an error if the old value was true and the new value is false.
208
+ # + It is an error if the old value is true and the new value is false.
198
209
  class UpdateSinkRequest; end
199
210
 
200
211
  # The parameters to +DeleteSink+.
@@ -205,10 +216,10 @@ module Google
205
216
  #
206
217
  # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
207
218
  # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
219
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
220
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
208
221
  #
209
- # It is an error if the sink does not exist. Example:
210
- # +"projects/my-project-id/sinks/my-sink-id"+. It is an error if
211
- # the sink does not exist.
222
+ # Example: +"projects/my-project-id/sinks/my-sink-id"+.
212
223
  class DeleteSinkRequest; end
213
224
  end
214
225
  end
@@ -39,6 +39,16 @@ module Google
39
39
  # foo = any.unpack(Foo.class);
40
40
  # }
41
41
  #
42
+ # Example 3: Pack and unpack a message in Python.
43
+ #
44
+ # foo = Foo(...)
45
+ # any = Any()
46
+ # any.Pack(foo)
47
+ # ...
48
+ # if any.Is(Foo.DESCRIPTOR):
49
+ # any.Unpack(foo)
50
+ # ...
51
+ #
42
52
  # The pack methods provided by protobuf library will by default use
43
53
  # 'type.googleapis.com/full.type.name' as the type URL and the unpack
44
54
  # methods only use the fully qualified type name after the last '/'
@@ -78,10 +88,10 @@ module Google
78
88
  # A URL/resource name whose content describes the type of the
79
89
  # serialized protocol buffer message.
80
90
  #
81
- # For URLs which use the schema +http+, +https+, or no schema, the
91
+ # For URLs which use the scheme +http+, +https+, or no scheme, the
82
92
  # following restrictions and interpretations apply:
83
93
  #
84
- # * If no schema is provided, +https+ is assumed.
94
+ # * If no scheme is provided, +https+ is assumed.
85
95
  # * The last segment of the URL's path must represent the fully
86
96
  # qualified name of the type (as in +path/google.protobuf.Duration+).
87
97
  # The name should be in a canonical form (e.g., leading "." is
@@ -94,7 +104,7 @@ module Google
94
104
  # on changes to types. (Use versioned type names to manage
95
105
  # breaking changes.)
96
106
  #
97
- # Schemas other than +http+, +https+ (or the empty schema) might be
107
+ # Schemes other than +http+, +https+ (or the empty scheme) might be
98
108
  # used with implementation specific semantics.
99
109
  # @!attribute [rw] value
100
110
  # @return [String]
@@ -54,6 +54,12 @@ module Google
54
54
  # end.seconds += 1;
55
55
  # end.nanos -= 1000000000;
56
56
  # }
57
+ #
58
+ # Example 3: Compute Duration from datetime.timedelta in Python.
59
+ #
60
+ # td = datetime.timedelta(days=3, minutes=10)
61
+ # duration = Duration()
62
+ # duration.FromTimedelta(td)
57
63
  # @!attribute [rw] seconds
58
64
  # @return [Integer]
59
65
  # Signed seconds of the span of time. Must be from -315,576,000,000
@@ -63,14 +63,12 @@ module Google
63
63
  #
64
64
  # Example 5: Compute Timestamp from current time in Python.
65
65
  #
66
- # now = time.time()
67
- # seconds = int(now)
68
- # nanos = int((now - seconds) * 10**9)
69
- # timestamp = Timestamp(seconds=seconds, nanos=nanos)
66
+ # timestamp = Timestamp()
67
+ # timestamp.GetCurrentTime()
70
68
  # @!attribute [rw] seconds
71
69
  # @return [Integer]
72
70
  # Represents seconds of UTC time since Unix epoch
73
- # 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to
71
+ # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
74
72
  # 9999-12-31T23:59:59Z inclusive.
75
73
  # @!attribute [rw] nanos
76
74
  # @return [Integer]
@@ -1,10 +1,10 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
1
+ # Copyright 2017, Google Inc. All rights reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -26,6 +26,7 @@ require "json"
26
26
  require "pathname"
27
27
 
28
28
  require "google/gax"
29
+
29
30
  require "google/logging/v2/logging_pb"
30
31
 
31
32
  module Google
@@ -235,12 +236,16 @@ module Google
235
236
 
236
237
  # Deletes all the log entries in a log.
237
238
  # The log reappears if it receives new entries.
239
+ # Log entries written shortly before the delete operation might not be
240
+ # deleted.
238
241
  #
239
242
  # @param log_name [String]
240
243
  # Required. The resource name of the log to delete:
241
244
  #
242
245
  # "projects/[PROJECT_ID]/logs/[LOG_ID]"
243
246
  # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
247
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
248
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
244
249
  #
245
250
  # +[LOG_ID]+ must be URL-encoded. For example,
246
251
  # +"projects/my-project-id/logs/syslog"+,
@@ -270,15 +275,32 @@ module Google
270
275
  nil
271
276
  end
272
277
 
273
- # Writes log entries to Stackdriver Logging. All log entries are
274
- # written by this method.
278
+ # Writes log entries to Stackdriver Logging.
279
+ #
280
+ # @param entries [Array<Google::Logging::V2::LogEntry>]
281
+ # Required. The log entries to write. Values supplied for the fields
282
+ # +log_name+, +resource+, and +labels+ in this +entries.write+ request are
283
+ # inserted into those log entries in this list that do not provide their own
284
+ # values.
275
285
  #
286
+ # Stackdriver Logging also creates and inserts values for +timestamp+ and
287
+ # +insert_id+ if the entries do not provide them. The created +insert_id+ for
288
+ # the N'th entry in this list will be greater than earlier entries and less
289
+ # than later entries. Otherwise, the order of log entries in this list does
290
+ # not matter.
291
+ #
292
+ # To improve throughput and to avoid exceeding the
293
+ # {quota limit}[https://cloud.google.com/logging/quota-policy] for calls to +entries.write+,
294
+ # you should write multiple log entries at once rather than
295
+ # calling this method for each individual log entry.
276
296
  # @param log_name [String]
277
297
  # Optional. A default log resource name that is assigned to all log entries
278
298
  # in +entries+ that do not specify a value for +log_name+:
279
299
  #
280
300
  # "projects/[PROJECT_ID]/logs/[LOG_ID]"
281
301
  # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
302
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
303
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
282
304
  #
283
305
  # +[LOG_ID]+ must be URL-encoded. For example,
284
306
  # +"projects/my-project-id/logs/syslog"+ or
@@ -299,22 +321,12 @@ module Google
299
321
  # entries in +entries+. If a log entry already has a label with the same key
300
322
  # as a label in this parameter, then the log entry's label is not changed.
301
323
  # See LogEntry.
302
- # @param entries [Array<Google::Logging::V2::LogEntry>]
303
- # Required. The log entries to write. Values supplied for the fields
304
- # +log_name+, +resource+, and +labels+ in this +entries.write+ request are
305
- # added to those log entries that do not provide their own values for the
306
- # fields.
307
- #
308
- # To improve throughput and to avoid exceeding the
309
- # {quota limit}[https://cloud.google.com/logging/quota-policy] for calls to +entries.write+,
310
- # you should write multiple log entries at once rather than
311
- # calling this method for each individual log entry.
312
324
  # @param partial_success [true, false]
313
325
  # Optional. Whether valid entries should be written even if some other
314
326
  # entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
315
- # entry is not written, the response status will be the error associated
316
- # with one of the failed entries and include error details in the form of
317
- # WriteLogEntriesPartialErrors.
327
+ # entry is not written, then the response status is the error associated
328
+ # with one of the failed entries and the response includes error details
329
+ # keyed by the entries' zero-based index in the +entries.write+ method.
318
330
  # @param options [Google::Gax::CallOptions]
319
331
  # Overrides the default settings for this call, e.g, timeout,
320
332
  # retries, etc.
@@ -350,20 +362,22 @@ module Google
350
362
  # Stackdriver Logging. For ways to export log entries, see
351
363
  # {Exporting Logs}[https://cloud.google.com/logging/docs/export].
352
364
  #
353
- # @param project_ids [Array<String>]
354
- # Deprecated. Use +resource_names+ instead. One or more project identifiers
355
- # or project numbers from which to retrieve log entries. Example:
356
- # +"my-project-1A"+. If present, these project identifiers are converted to
357
- # resource name format and added to the list of resources in
358
- # +resource_names+.
359
365
  # @param resource_names [Array<String>]
360
- # Required. Names of one or more resources from which to retrieve log
361
- # entries:
366
+ # Required. Names of one or more parent resources from which to
367
+ # retrieve log entries:
362
368
  #
363
369
  # "projects/[PROJECT_ID]"
364
370
  # "organizations/[ORGANIZATION_ID]"
371
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
372
+ # "folders/[FOLDER_ID]"
365
373
  #
366
374
  # Projects listed in the +project_ids+ field are added to this list.
375
+ # @param project_ids [Array<String>]
376
+ # Deprecated. Use +resource_names+ instead. One or more project identifiers
377
+ # or project numbers from which to retrieve log entries. Example:
378
+ # +"my-project-1A"+. If present, these project identifiers are converted to
379
+ # resource name format and added to the list of resources in
380
+ # +resource_names+.
367
381
  # @param filter [String]
368
382
  # Optional. A filter that chooses which log entries to return. See {Advanced
369
383
  # Logs Filters}[https://cloud.google.com/logging/docs/view/advanced_filters]. Only log entries that
@@ -378,7 +392,7 @@ module Google
378
392
  # option returns entries in order of increasing values of
379
393
  # +LogEntry.timestamp+ (oldest first), and the second option returns entries
380
394
  # in order of decreasing timestamps (newest first). Entries with equal
381
- # timestamps are returned in order of +LogEntry.insertId+.
395
+ # timestamps are returned in order of their +insert_id+ values.
382
396
  # @param page_size [Integer]
383
397
  # The maximum number of resources contained in the underlying API
384
398
  # response. If page streaming is performed per-resource, this
@@ -479,7 +493,7 @@ module Google
479
493
  @list_monitored_resource_descriptors.call(req, options)
480
494
  end
481
495
 
482
- # Lists the logs in projects or organizations.
496
+ # Lists the logs in projects, organizations, folders, or billing accounts.
483
497
  # Only logs that have entries are listed.
484
498
  #
485
499
  # @param parent [String]
@@ -487,6 +501,8 @@ module Google
487
501
  #
488
502
  # "projects/[PROJECT_ID]"
489
503
  # "organizations/[ORGANIZATION_ID]"
504
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
505
+ # "folders/[FOLDER_ID]"
490
506
  # @param page_size [Integer]
491
507
  # The maximum number of resources contained in the underlying API
492
508
  # response. If page streaming is performed per-resource, this
@@ -6,7 +6,9 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": []
9
+ "non_idempotent": [
10
+ "UNAVAILABLE"
11
+ ]
10
12
  },
11
13
  "retry_params": {
12
14
  "default": {
@@ -39,9 +41,9 @@
39
41
  "retry_codes_name": "non_idempotent",
40
42
  "retry_params_name": "default",
41
43
  "bundling": {
42
- "element_count_threshold": 100,
43
- "request_byte_threshold": 1024,
44
- "delay_threshold_millis": 10
44
+ "element_count_threshold": 1000,
45
+ "request_byte_threshold": 1048576,
46
+ "delay_threshold_millis": 50
45
47
  }
46
48
  },
47
49
  "ListLogEntries": {
@@ -1,10 +1,10 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
1
+ # Copyright 2017, Google Inc. All rights reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -26,6 +26,7 @@ require "json"
26
26
  require "pathname"
27
27
 
28
28
  require "google/gax"
29
+
29
30
  require "google/logging/v2/logging_metrics_pb"
30
31
 
31
32
  module Google