google-cloud-logging-v2 0.3.0 → 0.5.2
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/AUTHENTICATION.md +5 -5
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/logging/v2.rb +3 -0
- data/lib/google/cloud/logging/v2/config_service/client.rb +42 -57
- data/lib/google/cloud/logging/v2/config_service/paths.rb +15 -15
- data/lib/google/cloud/logging/v2/logging_service/client.rb +24 -36
- data/lib/google/cloud/logging/v2/logging_service/paths.rb +3 -3
- data/lib/google/cloud/logging/v2/metrics_service/client.rb +21 -27
- data/lib/google/cloud/logging/v2/version.rb +1 -1
- data/proto_docs/google/api/distribution.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/metric.rb +109 -36
- data/proto_docs/google/api/monitored_resource.rb +7 -6
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +21 -13
- data/lib/google/logging/type/http_request_pb.rb +0 -38
- data/lib/google/logging/type/log_severity_pb.rb +0 -31
@@ -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 :=
|
60
|
+
# any, err := anypb.New(foo)
|
61
|
+
# if err != nil {
|
62
|
+
# ...
|
63
|
+
# }
|
61
64
|
# ...
|
62
65
|
# foo := &pb.Foo{}
|
63
|
-
# if err :=
|
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
|
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,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-logging-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,14 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
53
|
+
version: 1.25.1
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
60
|
+
version: 1.25.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: minitest
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +157,10 @@ dependencies:
|
|
151
157
|
- !ruby/object:Gem::Version
|
152
158
|
version: '0.9'
|
153
159
|
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.
|
160
|
+
set up exclusions, create logs-based metrics, and manage export sinks. Note that
|
161
|
+
google-cloud-logging-v2 is a version-specific client library. For most uses, we
|
162
|
+
recommend installing the main client library google-cloud-logging instead. See the
|
163
|
+
readme for more details.
|
155
164
|
email: googleapis-packages@google.com
|
156
165
|
executables: []
|
157
166
|
extensions: []
|
@@ -176,8 +185,6 @@ files:
|
|
176
185
|
- lib/google/cloud/logging/v2/metrics_service/credentials.rb
|
177
186
|
- lib/google/cloud/logging/v2/metrics_service/paths.rb
|
178
187
|
- lib/google/cloud/logging/v2/version.rb
|
179
|
-
- lib/google/logging/type/http_request_pb.rb
|
180
|
-
- lib/google/logging/type/log_severity_pb.rb
|
181
188
|
- lib/google/logging/v2/log_entry_pb.rb
|
182
189
|
- lib/google/logging/v2/logging_config_pb.rb
|
183
190
|
- lib/google/logging/v2/logging_config_services_pb.rb
|
@@ -189,6 +196,7 @@ files:
|
|
189
196
|
- proto_docs/google/api/distribution.rb
|
190
197
|
- proto_docs/google/api/field_behavior.rb
|
191
198
|
- proto_docs/google/api/label.rb
|
199
|
+
- proto_docs/google/api/launch_stage.rb
|
192
200
|
- proto_docs/google/api/metric.rb
|
193
201
|
- proto_docs/google/api/monitored_resource.rb
|
194
202
|
- proto_docs/google/api/resource.rb
|
@@ -217,14 +225,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
217
225
|
requirements:
|
218
226
|
- - ">="
|
219
227
|
- !ruby/object:Gem::Version
|
220
|
-
version: '2.
|
228
|
+
version: '2.5'
|
221
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
230
|
requirements:
|
223
231
|
- - ">="
|
224
232
|
- !ruby/object:Gem::Version
|
225
233
|
version: '0'
|
226
234
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
235
|
+
rubygems_version: 3.2.17
|
228
236
|
signing_key:
|
229
237
|
specification_version: 4
|
230
238
|
summary: API Client library for the Cloud Logging V2 API
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/logging/type/http_request.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/protobuf/duration_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
-
add_file("google/logging/type/http_request.proto", :syntax => :proto3) do
|
10
|
-
add_message "google.logging.type.HttpRequest" do
|
11
|
-
optional :request_method, :string, 1
|
12
|
-
optional :request_url, :string, 2
|
13
|
-
optional :request_size, :int64, 3
|
14
|
-
optional :status, :int32, 4
|
15
|
-
optional :response_size, :int64, 5
|
16
|
-
optional :user_agent, :string, 6
|
17
|
-
optional :remote_ip, :string, 7
|
18
|
-
optional :server_ip, :string, 13
|
19
|
-
optional :referer, :string, 8
|
20
|
-
optional :latency, :message, 14, "google.protobuf.Duration"
|
21
|
-
optional :cache_lookup, :bool, 11
|
22
|
-
optional :cache_hit, :bool, 9
|
23
|
-
optional :cache_validated_with_origin_server, :bool, 10
|
24
|
-
optional :cache_fill_bytes, :int64, 12
|
25
|
-
optional :protocol, :string, 15
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
module Google
|
31
|
-
module Cloud
|
32
|
-
module Logging
|
33
|
-
module Type
|
34
|
-
HttpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.HttpRequest").msgclass
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/logging/type/log_severity.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/logging/type/log_severity.proto", :syntax => :proto3) do
|
9
|
-
add_enum "google.logging.type.LogSeverity" do
|
10
|
-
value :DEFAULT, 0
|
11
|
-
value :DEBUG, 100
|
12
|
-
value :INFO, 200
|
13
|
-
value :NOTICE, 300
|
14
|
-
value :WARNING, 400
|
15
|
-
value :ERROR, 500
|
16
|
-
value :CRITICAL, 600
|
17
|
-
value :ALERT, 700
|
18
|
-
value :EMERGENCY, 800
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Cloud
|
25
|
-
module Logging
|
26
|
-
module Type
|
27
|
-
LogSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.LogSeverity").enummodule
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|