google-cloud-logging-v2 0.1.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,8 +24,8 @@ module Google
24
24
  # Describes a logs-based metric. The value of the metric is the number of log
25
25
  # entries that match a logs filter in a given time interval.
26
26
  #
27
- # Logs-based metric can also be used to extract values from logs and create a
28
- # a distribution of the values. The distribution records the statistics of the
27
+ # Logs-based metrics can also be used to extract values from logs and create a
28
+ # distribution of the values. The distribution records the statistics of the
29
29
  # extracted values along with an optional histogram of the values as specified
30
30
  # by the bucket options.
31
31
  # @!attribute [rw] name
@@ -57,10 +57,13 @@ module Google
57
57
  # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
- # any, err := ptypes.MarshalAny(foo)
60
+ # any, err := anypb.New(foo)
61
+ # if err != nil {
62
+ # ...
63
+ # }
61
64
  # ...
62
65
  # foo := &pb.Foo{}
63
- # if err := ptypes.UnmarshalAny(any, foo); err != nil {
66
+ # if err := any.UnmarshalTo(foo); err != nil {
64
67
  # ...
65
68
  # }
66
69
  #
@@ -70,7 +70,16 @@ module Google
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
72
  #
73
- # Example 5: Compute Timestamp from current time in Python.
73
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
74
+ #
75
+ # Instant now = Instant.now();
76
+ #
77
+ # Timestamp timestamp =
78
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
+ # .setNanos(now.getNano()).build();
80
+ #
81
+ #
82
+ # Example 6: Compute Timestamp from current time in Python.
74
83
  #
75
84
  # timestamp = Timestamp()
76
85
  # timestamp.GetCurrentTime()
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-06 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -151,7 +151,10 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.9'
153
153
  description: The Cloud Logging API lets you programmatically read and write log entries,
154
- set up exclusions, create logs-based metrics, and manage export sinks.
154
+ set up exclusions, create logs-based metrics, and manage export sinks. Note that
155
+ google-cloud-logging-v2 is a version-specific client library. For most uses, we
156
+ recommend installing the main client library google-cloud-logging instead. See the
157
+ readme for more details.
155
158
  email: googleapis-packages@google.com
156
159
  executables: []
157
160
  extensions: []
@@ -224,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
227
  - !ruby/object:Gem::Version
225
228
  version: '0'
226
229
  requirements: []
227
- rubygems_version: 3.1.3
230
+ rubygems_version: 3.2.6
228
231
  signing_key:
229
232
  specification_version: 4
230
233
  summary: API Client library for the Cloud Logging V2 API