google-cloud-logging 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/INSTRUMENTATION.md +1 -1
- data/LOGGING.md +1 -1
- data/lib/google-cloud-logging.rb +1 -1
- data/lib/google/cloud/logging.rb +1 -1
- data/lib/google/cloud/logging/logger.rb +27 -18
- data/lib/google/cloud/logging/middleware.rb +1 -1
- data/lib/google/cloud/logging/rails.rb +1 -1
- data/lib/google/cloud/logging/v2/config_service_v2_client.rb +35 -35
- data/lib/google/cloud/logging/v2/doc/google/api/distribution.rb +18 -18
- data/lib/google/cloud/logging/v2/doc/google/api/metric.rb +69 -48
- data/lib/google/cloud/logging/v2/doc/google/api/monitored_resource.rb +20 -21
- data/lib/google/cloud/logging/v2/doc/google/logging/type/http_request.rb +5 -5
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/log_entry.rb +17 -17
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging.rb +50 -50
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb +55 -55
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_metrics.rb +28 -28
- data/lib/google/cloud/logging/v2/doc/google/protobuf/any.rb +8 -8
- data/lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb +3 -3
- data/lib/google/cloud/logging/v2/doc/google/protobuf/empty.rb +1 -1
- data/lib/google/cloud/logging/v2/doc/google/protobuf/field_mask.rb +7 -7
- data/lib/google/cloud/logging/v2/doc/google/protobuf/struct.rb +11 -11
- data/lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb +7 -7
- data/lib/google/cloud/logging/v2/logging_service_v2_client.rb +27 -27
- data/lib/google/cloud/logging/v2/metrics_service_v2_client.rb +4 -4
- data/lib/google/cloud/logging/version.rb +1 -1
- metadata +3 -3
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
#
|
18
|
+
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
19
19
|
# URL that describes the type of the serialized message.
|
20
20
|
#
|
21
21
|
# Protobuf library provides support to pack/unpack Any values in the form
|
@@ -69,9 +69,9 @@ module Google
|
|
69
69
|
#
|
70
70
|
# = JSON
|
71
71
|
#
|
72
|
-
# The JSON representation of an
|
72
|
+
# The JSON representation of an `Any` value uses the regular
|
73
73
|
# representation of the deserialized, embedded message, with an
|
74
|
-
# additional field
|
74
|
+
# additional field `@type` which contains the type URL. Example:
|
75
75
|
#
|
76
76
|
# package google.profile;
|
77
77
|
# message Person {
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
#
|
88
88
|
# If the embedded message type is well-known and has a custom JSON
|
89
89
|
# representation, that representation will be embedded adding a field
|
90
|
-
#
|
90
|
+
# `value` which holds the custom JSON in addition to the `@type`
|
91
91
|
# field. Example (for message {Google::Protobuf::Duration}):
|
92
92
|
#
|
93
93
|
# {
|
@@ -99,15 +99,15 @@ module Google
|
|
99
99
|
# A URL/resource name that uniquely identifies the type of the serialized
|
100
100
|
# protocol buffer message. The last segment of the URL's path must represent
|
101
101
|
# the fully qualified name of the type (as in
|
102
|
-
#
|
102
|
+
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
103
103
|
# (e.g., leading "." is not accepted).
|
104
104
|
#
|
105
105
|
# In practice, teams usually precompile into the binary all types that they
|
106
106
|
# expect it to use in the context of Any. However, for URLs which use the
|
107
|
-
# scheme
|
107
|
+
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
108
108
|
# server that maps type URLs to message definitions as follows:
|
109
109
|
#
|
110
|
-
# * If no scheme is provided,
|
110
|
+
# * If no scheme is provided, `https` is assumed.
|
111
111
|
# * An HTTP GET on the URL must yield a {Google::Protobuf::Type}
|
112
112
|
# value in binary format, or produce an error.
|
113
113
|
# * Applications are allowed to cache lookup results based on the
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
# protobuf release, and it is not used for type URLs beginning with
|
121
121
|
# type.googleapis.com.
|
122
122
|
#
|
123
|
-
# Schemes other than
|
123
|
+
# Schemes other than `http`, `https` (or the empty scheme) might be
|
124
124
|
# used with implementation specific semantics.
|
125
125
|
# @!attribute [rw] value
|
126
126
|
# @return [String]
|
@@ -82,9 +82,9 @@ module Google
|
|
82
82
|
# @return [Integer]
|
83
83
|
# Signed fractions of a second at nanosecond resolution of the span
|
84
84
|
# of time. Durations less than one second are represented with a 0
|
85
|
-
#
|
86
|
-
# of one second or more, a non-zero value for the
|
87
|
-
# of the same sign as the
|
85
|
+
# `seconds` field and a positive or negative `nanos` field. For durations
|
86
|
+
# of one second or more, a non-zero value for the `nanos` field must be
|
87
|
+
# of the same sign as the `seconds` field. Must be from -999,999,999
|
88
88
|
# to +999,999,999 inclusive.
|
89
89
|
class Duration; end
|
90
90
|
end
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
24
24
|
# }
|
25
25
|
#
|
26
|
-
# The JSON representation for
|
26
|
+
# The JSON representation for `Empty` is empty JSON object `{}`.
|
27
27
|
class Empty; end
|
28
28
|
end
|
29
29
|
end
|
@@ -15,14 +15,14 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
#
|
18
|
+
# `FieldMask` represents a set of symbolic field paths, for example:
|
19
19
|
#
|
20
20
|
# paths: "f.a"
|
21
21
|
# paths: "f.b.d"
|
22
22
|
#
|
23
|
-
# Here
|
24
|
-
# fields in the message found in
|
25
|
-
# message in
|
23
|
+
# Here `f` represents a field in some root message, `a` and `b`
|
24
|
+
# fields in the message found in `f`, and `d` a field found in the
|
25
|
+
# message in `f.b`.
|
26
26
|
#
|
27
27
|
# Field masks are used to specify a subset of fields that should be
|
28
28
|
# returned by a get operation or modified by an update operation.
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
#
|
86
86
|
# If a repeated field is specified for an update operation, the existing
|
87
87
|
# repeated values in the target resource will be overwritten by the new values.
|
88
|
-
# Note that a repeated field is only allowed in the last position of a
|
88
|
+
# Note that a repeated field is only allowed in the last position of a `paths`
|
89
89
|
# string.
|
90
90
|
#
|
91
91
|
# If a sub-message is specified in the last position of the field mask for an
|
@@ -177,7 +177,7 @@ module Google
|
|
177
177
|
# string address = 2;
|
178
178
|
# }
|
179
179
|
#
|
180
|
-
# In proto a field mask for
|
180
|
+
# In proto a field mask for `Profile` may look as such:
|
181
181
|
#
|
182
182
|
# mask {
|
183
183
|
# paths: "user.display_name"
|
@@ -221,7 +221,7 @@ module Google
|
|
221
221
|
#
|
222
222
|
# The implementation of any API method which has a FieldMask type field in the
|
223
223
|
# request should verify the included field paths, and return an
|
224
|
-
#
|
224
|
+
# `INVALID_ARGUMENT` error if any path is duplicated or unmappable.
|
225
225
|
# @!attribute [rw] paths
|
226
226
|
# @return [Array<String>]
|
227
227
|
# The set of field mask paths.
|
@@ -15,25 +15,25 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
#
|
19
|
-
# which map to dynamically typed values. In some languages,
|
18
|
+
# `Struct` represents a structured data value, consisting of fields
|
19
|
+
# which map to dynamically typed values. In some languages, `Struct`
|
20
20
|
# might be supported by a native representation. For example, in
|
21
21
|
# scripting languages like JS a struct is represented as an
|
22
22
|
# object. The details of that representation are described together
|
23
23
|
# with the proto support for the language.
|
24
24
|
#
|
25
|
-
# The JSON representation for
|
25
|
+
# The JSON representation for `Struct` is JSON object.
|
26
26
|
# @!attribute [rw] fields
|
27
27
|
# @return [Hash{String => Google::Protobuf::Value}]
|
28
28
|
# Unordered map of dynamically typed values.
|
29
29
|
class Struct; end
|
30
30
|
|
31
|
-
#
|
31
|
+
# `Value` represents a dynamically typed value which can be either
|
32
32
|
# null, a number, a string, a boolean, a recursive struct value, or a
|
33
33
|
# list of values. A producer of value is expected to set one of that
|
34
34
|
# variants, absence of any variant indicates an error.
|
35
35
|
#
|
36
|
-
# The JSON representation for
|
36
|
+
# The JSON representation for `Value` is JSON value.
|
37
37
|
# @!attribute [rw] null_value
|
38
38
|
# @return [Google::Protobuf::NullValue]
|
39
39
|
# Represents a null value.
|
@@ -51,21 +51,21 @@ module Google
|
|
51
51
|
# Represents a structured value.
|
52
52
|
# @!attribute [rw] list_value
|
53
53
|
# @return [Google::Protobuf::ListValue]
|
54
|
-
# Represents a repeated
|
54
|
+
# Represents a repeated `Value`.
|
55
55
|
class Value; end
|
56
56
|
|
57
|
-
#
|
57
|
+
# `ListValue` is a wrapper around a repeated field of values.
|
58
58
|
#
|
59
|
-
# The JSON representation for
|
59
|
+
# The JSON representation for `ListValue` is JSON array.
|
60
60
|
# @!attribute [rw] values
|
61
61
|
# @return [Array<Google::Protobuf::Value>]
|
62
62
|
# Repeated field of dynamically typed values.
|
63
63
|
class ListValue; end
|
64
64
|
|
65
|
-
#
|
66
|
-
#
|
65
|
+
# `NullValue` is a singleton enumeration to represent the null value for the
|
66
|
+
# `Value` type union.
|
67
67
|
#
|
68
|
-
# The JSON representation for
|
68
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
69
69
|
module NullValue
|
70
70
|
# Null value.
|
71
71
|
NULL_VALUE = 0
|
@@ -29,13 +29,13 @@ module Google
|
|
29
29
|
#
|
30
30
|
# = Examples
|
31
31
|
#
|
32
|
-
# Example 1: Compute Timestamp from POSIX
|
32
|
+
# Example 1: Compute Timestamp from POSIX `time()`.
|
33
33
|
#
|
34
34
|
# Timestamp timestamp;
|
35
35
|
# timestamp.set_seconds(time(NULL));
|
36
36
|
# timestamp.set_nanos(0);
|
37
37
|
#
|
38
|
-
# Example 2: Compute Timestamp from POSIX
|
38
|
+
# Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
39
39
|
#
|
40
40
|
# struct timeval tv;
|
41
41
|
# gettimeofday(&tv, NULL);
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# timestamp.set_seconds(tv.tv_sec);
|
45
45
|
# timestamp.set_nanos(tv.tv_usec * 1000);
|
46
46
|
#
|
47
|
-
# Example 3: Compute Timestamp from Win32
|
47
|
+
# Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
48
48
|
#
|
49
49
|
# FILETIME ft;
|
50
50
|
# GetSystemTimeAsFileTime(&ft);
|
@@ -56,7 +56,7 @@ module Google
|
|
56
56
|
# timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
57
57
|
# timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
58
58
|
#
|
59
|
-
# Example 4: Compute Timestamp from Java
|
59
|
+
# Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
60
60
|
#
|
61
61
|
# long millis = System.currentTimeMillis();
|
62
62
|
#
|
@@ -87,10 +87,10 @@ module Google
|
|
87
87
|
#
|
88
88
|
# In JavaScript, one can convert a Date object to this format using the
|
89
89
|
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
|
90
|
-
# method. In Python, a standard
|
91
|
-
# to this format using [
|
90
|
+
# method. In Python, a standard `datetime.datetime` object can be converted
|
91
|
+
# to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
|
92
92
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
93
|
-
# can use the Joda Time's [
|
93
|
+
# can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
94
94
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
95
95
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
96
96
|
# @!attribute [rw] seconds
|
@@ -269,9 +269,9 @@ module Google
|
|
269
269
|
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
270
270
|
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
271
271
|
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
272
|
+
# `[LOG_ID]` must be URL-encoded. For example,
|
273
|
+
# `"projects/my-project-id/logs/syslog"`,
|
274
|
+
# `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
|
275
275
|
# For more information about log names, see
|
276
276
|
# {Google::Logging::V2::LogEntry LogEntry}.
|
277
277
|
# @param options [Google::Gax::CallOptions]
|
@@ -312,46 +312,46 @@ module Google
|
|
312
312
|
# @param entries [Array<Google::Logging::V2::LogEntry | Hash>]
|
313
313
|
# Required. The log entries to send to Stackdriver Logging. The order of log
|
314
314
|
# entries in this list does not matter. Values supplied in this method's
|
315
|
-
#
|
315
|
+
# `log_name`, `resource`, and `labels` fields are copied into those log
|
316
316
|
# entries in this list that do not include values for their corresponding
|
317
317
|
# fields. For more information, see the
|
318
318
|
# {Google::Logging::V2::LogEntry LogEntry} type.
|
319
319
|
#
|
320
|
-
# If the
|
320
|
+
# If the `timestamp` or `insert_id` fields are missing in log entries, then
|
321
321
|
# this method supplies the current time or a unique identifier, respectively.
|
322
322
|
# The supplied values are chosen so that, among the log entries that did not
|
323
323
|
# supply their own values, the entries earlier in the list will sort before
|
324
|
-
# the entries later in the list. See the
|
324
|
+
# the entries later in the list. See the `entries.list` method.
|
325
325
|
#
|
326
326
|
# Log entries with timestamps that are more than the
|
327
327
|
# [logs retention period](https://cloud.google.com/logging/quota-policy) in the past or more than
|
328
|
-
# 24 hours in the future will not be available when calling
|
328
|
+
# 24 hours in the future will not be available when calling `entries.list`.
|
329
329
|
# However, those log entries can still be exported with
|
330
330
|
# [LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
|
331
331
|
#
|
332
332
|
# To improve throughput and to avoid exceeding the
|
333
|
-
# [quota limit](https://cloud.google.com/logging/quota-policy) for calls to
|
333
|
+
# [quota limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`,
|
334
334
|
# you should try to include several log entries in this list,
|
335
335
|
# rather than calling this method for each individual log entry.
|
336
336
|
# A hash of the same form as `Google::Logging::V2::LogEntry`
|
337
337
|
# can also be provided.
|
338
338
|
# @param log_name [String]
|
339
339
|
# Optional. A default log resource name that is assigned to all log entries
|
340
|
-
# in
|
340
|
+
# in `entries` that do not specify a value for `log_name`:
|
341
341
|
#
|
342
342
|
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
343
343
|
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
344
344
|
# "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
345
345
|
# "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
346
346
|
#
|
347
|
-
#
|
348
|
-
#
|
349
|
-
#
|
347
|
+
# `[LOG_ID]` must be URL-encoded. For example,
|
348
|
+
# `"projects/my-project-id/logs/syslog"` or
|
349
|
+
# `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
|
350
350
|
# For more information about log names, see
|
351
351
|
# {Google::Logging::V2::LogEntry LogEntry}.
|
352
352
|
# @param resource [Google::Api::MonitoredResource | Hash]
|
353
353
|
# Optional. A default monitored resource object that is assigned to all log
|
354
|
-
# entries in
|
354
|
+
# entries in `entries` that do not specify a value for `resource`. Example:
|
355
355
|
#
|
356
356
|
# { "type": "gce_instance",
|
357
357
|
# "labels": {
|
@@ -361,8 +361,8 @@ module Google
|
|
361
361
|
# A hash of the same form as `Google::Api::MonitoredResource`
|
362
362
|
# can also be provided.
|
363
363
|
# @param labels [Hash{String => String}]
|
364
|
-
# Optional. Default labels that are added to the
|
365
|
-
# entries in
|
364
|
+
# Optional. Default labels that are added to the `labels` field of all log
|
365
|
+
# entries in `entries`. If a log entry already has a label with the same key
|
366
366
|
# as a label in this parameter, then the log entry's label is not changed.
|
367
367
|
# See {Google::Logging::V2::LogEntry LogEntry}.
|
368
368
|
# @param partial_success [true, false]
|
@@ -370,7 +370,7 @@ module Google
|
|
370
370
|
# entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
|
371
371
|
# entry is not written, then the response status is the error associated
|
372
372
|
# with one of the failed entries and the response includes error details
|
373
|
-
# keyed by the entries' zero-based index in the
|
373
|
+
# keyed by the entries' zero-based index in the `entries.write` method.
|
374
374
|
# @param dry_run [true, false]
|
375
375
|
# Optional. If true, the request should expect normal response, but the
|
376
376
|
# entries won't be persisted nor exported. Useful for checking whether the
|
@@ -388,7 +388,7 @@ module Google
|
|
388
388
|
#
|
389
389
|
# logging_service_v2_client = Google::Cloud::Logging::V2::LoggingServiceV2Client.new
|
390
390
|
#
|
391
|
-
# # TODO: Initialize
|
391
|
+
# # TODO: Initialize `entries`:
|
392
392
|
# entries = []
|
393
393
|
# response = logging_service_v2_client.write_log_entries(entries)
|
394
394
|
|
@@ -426,28 +426,28 @@ module Google
|
|
426
426
|
# "billingAccounts/[BILLING_ACCOUNT_ID]"
|
427
427
|
# "folders/[FOLDER_ID]"
|
428
428
|
#
|
429
|
-
# Projects listed in the
|
429
|
+
# Projects listed in the `project_ids` field are added to this list.
|
430
430
|
# @param project_ids [Array<String>]
|
431
|
-
# Deprecated. Use
|
431
|
+
# Deprecated. Use `resource_names` instead. One or more project identifiers
|
432
432
|
# or project numbers from which to retrieve log entries. Example:
|
433
|
-
#
|
433
|
+
# `"my-project-1A"`. If present, these project identifiers are converted to
|
434
434
|
# resource name format and added to the list of resources in
|
435
|
-
#
|
435
|
+
# `resource_names`.
|
436
436
|
# @param filter [String]
|
437
437
|
# Optional. A filter that chooses which log entries to return. See [Advanced
|
438
438
|
# Logs Filters](/logging/docs/view/advanced_filters). Only log entries that
|
439
439
|
# match the filter are returned. An empty filter matches all log entries in
|
440
|
-
# the resources listed in
|
441
|
-
# that is not listed in
|
440
|
+
# the resources listed in `resource_names`. Referencing a parent resource
|
441
|
+
# that is not listed in `resource_names` will cause the filter to return no
|
442
442
|
# results.
|
443
443
|
# The maximum length of the filter is 20000 characters.
|
444
444
|
# @param order_by [String]
|
445
445
|
# Optional. How the results should be sorted. Presently, the only permitted
|
446
|
-
# values are
|
446
|
+
# values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
|
447
447
|
# option returns entries in order of increasing values of
|
448
|
-
#
|
448
|
+
# `LogEntry.timestamp` (oldest first), and the second option returns entries
|
449
449
|
# in order of decreasing timestamps (newest first). Entries with equal
|
450
|
-
# timestamps are returned in order of their
|
450
|
+
# timestamps are returned in order of their `insert_id` values.
|
451
451
|
# @param page_size [Integer]
|
452
452
|
# The maximum number of resources contained in the underlying API
|
453
453
|
# response. If page streaming is performed per-resource, this
|
@@ -471,7 +471,7 @@ module Google
|
|
471
471
|
#
|
472
472
|
# logging_service_v2_client = Google::Cloud::Logging::V2::LoggingServiceV2Client.new
|
473
473
|
#
|
474
|
-
# # TODO: Initialize
|
474
|
+
# # TODO: Initialize `formatted_resource_names`:
|
475
475
|
# formatted_resource_names = []
|
476
476
|
#
|
477
477
|
# # Iterate over all results.
|
@@ -350,7 +350,7 @@ module Google
|
|
350
350
|
# metrics_service_v2_client = Google::Cloud::Logging::V2::MetricsServiceV2Client.new
|
351
351
|
# formatted_parent = Google::Cloud::Logging::V2::MetricsServiceV2Client.project_path("[PROJECT]")
|
352
352
|
#
|
353
|
-
# # TODO: Initialize
|
353
|
+
# # TODO: Initialize `metric`:
|
354
354
|
# metric = {}
|
355
355
|
# response = metrics_service_v2_client.create_log_metric(formatted_parent, metric)
|
356
356
|
|
@@ -375,8 +375,8 @@ module Google
|
|
375
375
|
# "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
|
376
376
|
#
|
377
377
|
# The updated metric must be provided in the request and it's
|
378
|
-
#
|
379
|
-
# does not exist in
|
378
|
+
# `name` field must be the same as `[METRIC_ID]` If the metric
|
379
|
+
# does not exist in `[PROJECT_ID]`, then a new metric is created.
|
380
380
|
# @param metric [Google::Logging::V2::LogMetric | Hash]
|
381
381
|
# The updated metric.
|
382
382
|
# A hash of the same form as `Google::Logging::V2::LogMetric`
|
@@ -395,7 +395,7 @@ module Google
|
|
395
395
|
# metrics_service_v2_client = Google::Cloud::Logging::V2::MetricsServiceV2Client.new
|
396
396
|
# formatted_metric_name = Google::Cloud::Logging::V2::MetricsServiceV2Client.metric_path("[PROJECT]", "[METRIC]")
|
397
397
|
#
|
398
|
-
# # TODO: Initialize
|
398
|
+
# # TODO: Initialize `metric`:
|
399
399
|
# metric = {}
|
400
400
|
# response = metrics_service_v2_client.update_log_metric(formatted_metric_name, metric)
|
401
401
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-09-
|
12
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -307,7 +307,7 @@ files:
|
|
307
307
|
- lib/google/logging/v2/logging_metrics_services_pb.rb
|
308
308
|
- lib/google/logging/v2/logging_pb.rb
|
309
309
|
- lib/google/logging/v2/logging_services_pb.rb
|
310
|
-
homepage: https://github.com/
|
310
|
+
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-logging
|
311
311
|
licenses:
|
312
312
|
- Apache-2.0
|
313
313
|
metadata: {}
|