google-cloud-logging 1.10.8 → 2.2.1

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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -2
  3. data/CHANGELOG.md +47 -0
  4. data/CONTRIBUTING.md +4 -5
  5. data/LOGGING.md +1 -1
  6. data/OVERVIEW.md +1 -2
  7. data/lib/google-cloud-logging.rb +15 -15
  8. data/lib/google/cloud/logging.rb +12 -13
  9. data/lib/google/cloud/logging/async_writer.rb +5 -4
  10. data/lib/google/cloud/logging/convert.rb +12 -7
  11. data/lib/google/cloud/logging/credentials.rb +2 -2
  12. data/lib/google/cloud/logging/entry.rb +5 -5
  13. data/lib/google/cloud/logging/entry/http_request.rb +5 -4
  14. data/lib/google/cloud/logging/entry/list.rb +4 -4
  15. data/lib/google/cloud/logging/entry/operation.rb +5 -4
  16. data/lib/google/cloud/logging/entry/source_location.rb +5 -4
  17. data/lib/google/cloud/logging/log/list.rb +4 -4
  18. data/lib/google/cloud/logging/logger.rb +7 -15
  19. data/lib/google/cloud/logging/metric.rb +2 -2
  20. data/lib/google/cloud/logging/metric/list.rb +4 -4
  21. data/lib/google/cloud/logging/middleware.rb +3 -5
  22. data/lib/google/cloud/logging/project.rb +1 -1
  23. data/lib/google/cloud/logging/rails.rb +7 -10
  24. data/lib/google/cloud/logging/resource_descriptor/list.rb +4 -4
  25. data/lib/google/cloud/logging/service.rb +73 -173
  26. data/lib/google/cloud/logging/sink.rb +2 -2
  27. data/lib/google/cloud/logging/sink/list.rb +4 -4
  28. data/lib/google/cloud/logging/version.rb +1 -1
  29. metadata +14 -84
  30. data/lib/google/cloud/logging/v2.rb +0 -18
  31. data/lib/google/cloud/logging/v2/config_service_v2_client.rb +0 -1368
  32. data/lib/google/cloud/logging/v2/config_service_v2_client_config.json +0 -106
  33. data/lib/google/cloud/logging/v2/credentials.rb +0 -39
  34. data/lib/google/cloud/logging/v2/doc/google/api/distribution.rb +0 -164
  35. data/lib/google/cloud/logging/v2/doc/google/api/label.rb +0 -42
  36. data/lib/google/cloud/logging/v2/doc/google/api/metric.rb +0 -274
  37. data/lib/google/cloud/logging/v2/doc/google/api/monitored_resource.rb +0 -104
  38. data/lib/google/cloud/logging/v2/doc/google/logging/type/http_request.rb +0 -86
  39. data/lib/google/cloud/logging/v2/doc/google/logging/v2/log_entry.rb +0 -179
  40. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging.rb +0 -238
  41. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb +0 -660
  42. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_metrics.rb +0 -220
  43. data/lib/google/cloud/logging/v2/doc/google/protobuf/any.rb +0 -131
  44. data/lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb +0 -91
  45. data/lib/google/cloud/logging/v2/doc/google/protobuf/empty.rb +0 -29
  46. data/lib/google/cloud/logging/v2/doc/google/protobuf/field_mask.rb +0 -222
  47. data/lib/google/cloud/logging/v2/doc/google/protobuf/struct.rb +0 -74
  48. data/lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb +0 -113
  49. data/lib/google/cloud/logging/v2/logging_service_v2_client.rb +0 -680
  50. data/lib/google/cloud/logging/v2/logging_service_v2_client_config.json +0 -61
  51. data/lib/google/cloud/logging/v2/metrics_service_v2_client.rb +0 -475
  52. data/lib/google/cloud/logging/v2/metrics_service_v2_client_config.json +0 -56
  53. data/lib/google/logging/v2/log_entry_pb.rb +0 -59
  54. data/lib/google/logging/v2/logging_config_pb.rb +0 -173
  55. data/lib/google/logging/v2/logging_config_services_pb.rb +0 -112
  56. data/lib/google/logging/v2/logging_metrics_pb.rb +0 -72
  57. data/lib/google/logging/v2/logging_metrics_services_pb.rb +0 -52
  58. data/lib/google/logging/v2/logging_pb.rb +0 -80
  59. data/lib/google/logging/v2/logging_services_pb.rb +0 -64
@@ -1,52 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging_metrics.proto for package 'Google::Cloud::Logging::V2'
3
- # Original file comments:
4
- # Copyright 2020 Google LLC
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/logging/v2/logging_metrics_pb'
22
-
23
- module Google
24
- module Logging
25
- end
26
- end
27
- module Google::Logging::V2
28
- module MetricsServiceV2
29
- # Service for configuring logs-based metrics.
30
- class Service
31
-
32
- include GRPC::GenericService
33
-
34
- self.marshal_class_method = :encode
35
- self.unmarshal_class_method = :decode
36
- self.service_name = 'google.logging.v2.MetricsServiceV2'
37
-
38
- # Lists logs-based metrics.
39
- rpc :ListLogMetrics, ListLogMetricsRequest, ListLogMetricsResponse
40
- # Gets a logs-based metric.
41
- rpc :GetLogMetric, GetLogMetricRequest, LogMetric
42
- # Creates a logs-based metric.
43
- rpc :CreateLogMetric, CreateLogMetricRequest, LogMetric
44
- # Creates or updates a logs-based metric.
45
- rpc :UpdateLogMetric, UpdateLogMetricRequest, LogMetric
46
- # Deletes a logs-based metric.
47
- rpc :DeleteLogMetric, DeleteLogMetricRequest, Google::Protobuf::Empty
48
- end
49
-
50
- Stub = Service.rpc_stub_class
51
- end
52
- end
@@ -1,80 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/logging/v2/logging.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/client_pb'
8
- require 'google/api/field_behavior_pb'
9
- require 'google/api/monitored_resource_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/logging/v2/log_entry_pb'
12
- require 'google/logging/v2/logging_config_pb'
13
- require 'google/protobuf/duration_pb'
14
- require 'google/protobuf/empty_pb'
15
- require 'google/protobuf/timestamp_pb'
16
- require 'google/rpc/status_pb'
17
- require 'google/api/annotations_pb'
18
- Google::Protobuf::DescriptorPool.generated_pool.build do
19
- add_message "google.logging.v2.DeleteLogRequest" do
20
- optional :log_name, :string, 1
21
- end
22
- add_message "google.logging.v2.WriteLogEntriesRequest" do
23
- optional :log_name, :string, 1
24
- optional :resource, :message, 2, "google.api.MonitoredResource"
25
- map :labels, :string, :string, 3
26
- repeated :entries, :message, 4, "google.logging.v2.LogEntry"
27
- optional :partial_success, :bool, 5
28
- optional :dry_run, :bool, 6
29
- end
30
- add_message "google.logging.v2.WriteLogEntriesResponse" do
31
- end
32
- add_message "google.logging.v2.WriteLogEntriesPartialErrors" do
33
- map :log_entry_errors, :int32, :message, 1, "google.rpc.Status"
34
- end
35
- add_message "google.logging.v2.ListLogEntriesRequest" do
36
- repeated :resource_names, :string, 8
37
- optional :filter, :string, 2
38
- optional :order_by, :string, 3
39
- optional :page_size, :int32, 4
40
- optional :page_token, :string, 5
41
- end
42
- add_message "google.logging.v2.ListLogEntriesResponse" do
43
- repeated :entries, :message, 1, "google.logging.v2.LogEntry"
44
- optional :next_page_token, :string, 2
45
- end
46
- add_message "google.logging.v2.ListMonitoredResourceDescriptorsRequest" do
47
- optional :page_size, :int32, 1
48
- optional :page_token, :string, 2
49
- end
50
- add_message "google.logging.v2.ListMonitoredResourceDescriptorsResponse" do
51
- repeated :resource_descriptors, :message, 1, "google.api.MonitoredResourceDescriptor"
52
- optional :next_page_token, :string, 2
53
- end
54
- add_message "google.logging.v2.ListLogsRequest" do
55
- optional :parent, :string, 1
56
- optional :page_size, :int32, 2
57
- optional :page_token, :string, 3
58
- end
59
- add_message "google.logging.v2.ListLogsResponse" do
60
- repeated :log_names, :string, 3
61
- optional :next_page_token, :string, 2
62
- end
63
- end
64
-
65
- module Google
66
- module Logging
67
- end
68
- end
69
- module Google::Logging::V2
70
- DeleteLogRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogRequest").msgclass
71
- WriteLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesRequest").msgclass
72
- WriteLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesResponse").msgclass
73
- WriteLogEntriesPartialErrors = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesPartialErrors").msgclass
74
- ListLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesRequest").msgclass
75
- ListLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesResponse").msgclass
76
- ListMonitoredResourceDescriptorsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsRequest").msgclass
77
- ListMonitoredResourceDescriptorsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsResponse").msgclass
78
- ListLogsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsRequest").msgclass
79
- ListLogsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsResponse").msgclass
80
- end
@@ -1,64 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging.proto for package 'Google::Cloud::Logging::V2'
3
- # Original file comments:
4
- # Copyright 2020 Google LLC
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/logging/v2/logging_pb'
22
-
23
- module Google
24
- module Logging
25
- end
26
- end
27
- module Google::Logging::V2
28
- module LoggingServiceV2
29
- # Service for ingesting and querying logs.
30
- class Service
31
-
32
- include GRPC::GenericService
33
-
34
- self.marshal_class_method = :encode
35
- self.unmarshal_class_method = :decode
36
- self.service_name = 'google.logging.v2.LoggingServiceV2'
37
-
38
- # Deletes all the log entries in a log. The log reappears if it receives new
39
- # entries. Log entries written shortly before the delete operation might not
40
- # be deleted. Entries received after the delete operation with a timestamp
41
- # before the operation will be deleted.
42
- rpc :DeleteLog, DeleteLogRequest, Google::Protobuf::Empty
43
- # Writes log entries to Logging. This API method is the
44
- # only way to send log entries to Logging. This method
45
- # is used, directly or indirectly, by the Logging agent
46
- # (fluentd) and all logging libraries configured to use Logging.
47
- # A single request may contain log entries for a maximum of 1000
48
- # different resources (projects, organizations, billing accounts or
49
- # folders)
50
- rpc :WriteLogEntries, WriteLogEntriesRequest, WriteLogEntriesResponse
51
- # Lists log entries. Use this method to retrieve log entries that originated
52
- # from a project/folder/organization/billing account. For ways to export log
53
- # entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).
54
- rpc :ListLogEntries, ListLogEntriesRequest, ListLogEntriesResponse
55
- # Lists the descriptors for monitored resource types used by Logging.
56
- rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
57
- # Lists the logs in projects, organizations, folders, or billing accounts.
58
- # Only logs that have entries are listed.
59
- rpc :ListLogs, ListLogsRequest, ListLogsResponse
60
- end
61
-
62
- Stub = Service.rpc_stub_class
63
- end
64
- end