google-cloud-logging-v2 0.8.1 → 0.10.0
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 +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/logging/v2/config_service/client.rb +728 -71
- data/lib/google/cloud/logging/v2/config_service/operations.rb +14 -16
- data/lib/google/cloud/logging/v2/config_service/paths.rb +81 -0
- data/lib/google/cloud/logging/v2/config_service.rb +1 -1
- data/lib/google/cloud/logging/v2/logging_service/client.rb +47 -48
- data/lib/google/cloud/logging/v2/logging_service.rb +1 -1
- data/lib/google/cloud/logging/v2/metrics_service/client.rb +6 -8
- data/lib/google/cloud/logging/v2/metrics_service.rb +1 -1
- data/lib/google/cloud/logging/v2/version.rb +1 -1
- data/lib/google/cloud/logging/v2.rb +2 -2
- data/lib/google/logging/v2/log_entry_pb.rb +29 -38
- data/lib/google/logging/v2/logging_config_pb.rb +39 -215
- data/lib/google/logging/v2/logging_config_services_pb.rb +23 -5
- data/lib/google/logging/v2/logging_metrics_pb.rb +27 -41
- data/lib/google/logging/v2/logging_pb.rb +28 -64
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/distribution.rb +2 -0
- data/proto_docs/google/api/launch_stage.rb +3 -3
- data/proto_docs/google/api/metric.rb +10 -6
- data/proto_docs/google/api/monitored_resource.rb +30 -18
- data/proto_docs/google/logging/type/http_request.rb +1 -1
- data/proto_docs/google/logging/v2/log_entry.rb +56 -23
- data/proto_docs/google/logging/v2/logging.rb +36 -35
- data/proto_docs/google/logging/v2/logging_config.rb +350 -78
- data/proto_docs/google/logging/v2/logging_metrics.rb +14 -2
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a889079ca36237781388bdc28fd1035058412e2cc008acb5bb3d43fed2704343
|
4
|
+
data.tar.gz: fda685a8fc1d66713f9728a2b9fa2468f8d912c0eef5d4df2e78d9096e6db6be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a92ca1ed92a1bbcf19e4c5231e73fb45fac8cc16f9ce7efc8d0eed67b1d059debef6480139eb888121449bbba671ed8c40888c40536338e177e5ea7b20422c31
|
7
|
+
data.tar.gz: 9f4fde23ee45304025a8f301490c6c47cff81bd1cfd8e096a0f73e45b26a8b4fba23b455659a333829c8e3d584f4d7dc97ce143ba8bbd1e5454b62d63bb61c47
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Logging V2 API
|
2
2
|
|
3
|
-
|
3
|
+
Writes log entries and manages your Cloud Logging configuration.
|
4
4
|
|
5
5
|
The Cloud Logging API lets you programmatically read and write log entries, set up exclusions, create logs-based metrics, and manage export sinks.
|
6
6
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|