google-cloud-logging 1.10.5 → 2.0.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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +2 -1
  3. data/CHANGELOG.md +47 -0
  4. data/TROUBLESHOOTING.md +2 -8
  5. data/lib/google-cloud-logging.rb +14 -15
  6. data/lib/google/cloud/logging.rb +12 -13
  7. data/lib/google/cloud/logging/credentials.rb +2 -2
  8. data/lib/google/cloud/logging/entry.rb +5 -5
  9. data/lib/google/cloud/logging/entry/http_request.rb +3 -3
  10. data/lib/google/cloud/logging/entry/list.rb +1 -1
  11. data/lib/google/cloud/logging/entry/operation.rb +3 -3
  12. data/lib/google/cloud/logging/entry/source_location.rb +3 -3
  13. data/lib/google/cloud/logging/log/list.rb +1 -1
  14. data/lib/google/cloud/logging/metric.rb +2 -2
  15. data/lib/google/cloud/logging/metric/list.rb +1 -1
  16. data/lib/google/cloud/logging/resource_descriptor/list.rb +1 -1
  17. data/lib/google/cloud/logging/service.rb +70 -173
  18. data/lib/google/cloud/logging/sink.rb +2 -2
  19. data/lib/google/cloud/logging/sink/list.rb +1 -1
  20. data/lib/google/cloud/logging/version.rb +1 -1
  21. metadata +11 -81
  22. data/lib/google/cloud/logging/v2.rb +0 -18
  23. data/lib/google/cloud/logging/v2/config_service_v2_client.rb +0 -1368
  24. data/lib/google/cloud/logging/v2/config_service_v2_client_config.json +0 -101
  25. data/lib/google/cloud/logging/v2/credentials.rb +0 -39
  26. data/lib/google/cloud/logging/v2/doc/google/api/distribution.rb +0 -164
  27. data/lib/google/cloud/logging/v2/doc/google/api/label.rb +0 -42
  28. data/lib/google/cloud/logging/v2/doc/google/api/metric.rb +0 -233
  29. data/lib/google/cloud/logging/v2/doc/google/api/monitored_resource.rb +0 -85
  30. data/lib/google/cloud/logging/v2/doc/google/logging/type/http_request.rb +0 -86
  31. data/lib/google/cloud/logging/v2/doc/google/logging/v2/log_entry.rb +0 -179
  32. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging.rb +0 -238
  33. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb +0 -660
  34. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_metrics.rb +0 -220
  35. data/lib/google/cloud/logging/v2/doc/google/protobuf/any.rb +0 -131
  36. data/lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb +0 -91
  37. data/lib/google/cloud/logging/v2/doc/google/protobuf/empty.rb +0 -29
  38. data/lib/google/cloud/logging/v2/doc/google/protobuf/field_mask.rb +0 -222
  39. data/lib/google/cloud/logging/v2/doc/google/protobuf/struct.rb +0 -74
  40. data/lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb +0 -113
  41. data/lib/google/cloud/logging/v2/logging_service_v2_client.rb +0 -680
  42. data/lib/google/cloud/logging/v2/logging_service_v2_client_config.json +0 -56
  43. data/lib/google/cloud/logging/v2/metrics_service_v2_client.rb +0 -475
  44. data/lib/google/cloud/logging/v2/metrics_service_v2_client_config.json +0 -51
  45. data/lib/google/logging/v2/log_entry_pb.rb +0 -59
  46. data/lib/google/logging/v2/logging_config_pb.rb +0 -173
  47. data/lib/google/logging/v2/logging_config_services_pb.rb +0 -112
  48. data/lib/google/logging/v2/logging_metrics_pb.rb +0 -72
  49. data/lib/google/logging/v2/logging_metrics_services_pb.rb +0 -52
  50. data/lib/google/logging/v2/logging_pb.rb +0 -80
  51. data/lib/google/logging/v2/logging_services_pb.rb +0 -64
@@ -1,51 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.logging.v2.MetricsServiceV2": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 100,
14
- "retry_delay_multiplier": 1.3,
15
- "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "ListLogMetrics": {
24
- "timeout_millis": 60000,
25
- "retry_codes_name": "idempotent",
26
- "retry_params_name": "default"
27
- },
28
- "GetLogMetric": {
29
- "timeout_millis": 60000,
30
- "retry_codes_name": "idempotent",
31
- "retry_params_name": "default"
32
- },
33
- "CreateLogMetric": {
34
- "timeout_millis": 60000,
35
- "retry_codes_name": "non_idempotent",
36
- "retry_params_name": "default"
37
- },
38
- "UpdateLogMetric": {
39
- "timeout_millis": 60000,
40
- "retry_codes_name": "non_idempotent",
41
- "retry_params_name": "default"
42
- },
43
- "DeleteLogMetric": {
44
- "timeout_millis": 60000,
45
- "retry_codes_name": "non_idempotent",
46
- "retry_params_name": "default"
47
- }
48
- }
49
- }
50
- }
51
- }
@@ -1,59 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/logging/v2/log_entry.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/field_behavior_pb'
8
- require 'google/api/monitored_resource_pb'
9
- require 'google/api/resource_pb'
10
- require 'google/logging/type/http_request_pb'
11
- require 'google/logging/type/log_severity_pb'
12
- require 'google/protobuf/any_pb'
13
- require 'google/protobuf/struct_pb'
14
- require 'google/protobuf/timestamp_pb'
15
- require 'google/rpc/status_pb'
16
- require 'google/api/annotations_pb'
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_message "google.logging.v2.LogEntry" do
19
- optional :log_name, :string, 12
20
- optional :resource, :message, 8, "google.api.MonitoredResource"
21
- optional :timestamp, :message, 9, "google.protobuf.Timestamp"
22
- optional :receive_timestamp, :message, 24, "google.protobuf.Timestamp"
23
- optional :severity, :enum, 10, "google.logging.type.LogSeverity"
24
- optional :insert_id, :string, 4
25
- optional :http_request, :message, 7, "google.logging.type.HttpRequest"
26
- map :labels, :string, :string, 11
27
- optional :operation, :message, 15, "google.logging.v2.LogEntryOperation"
28
- optional :trace, :string, 22
29
- optional :span_id, :string, 27
30
- optional :trace_sampled, :bool, 30
31
- optional :source_location, :message, 23, "google.logging.v2.LogEntrySourceLocation"
32
- oneof :payload do
33
- optional :proto_payload, :message, 2, "google.protobuf.Any"
34
- optional :text_payload, :string, 3
35
- optional :json_payload, :message, 6, "google.protobuf.Struct"
36
- end
37
- end
38
- add_message "google.logging.v2.LogEntryOperation" do
39
- optional :id, :string, 1
40
- optional :producer, :string, 2
41
- optional :first, :bool, 3
42
- optional :last, :bool, 4
43
- end
44
- add_message "google.logging.v2.LogEntrySourceLocation" do
45
- optional :file, :string, 1
46
- optional :line, :int64, 2
47
- optional :function, :string, 3
48
- end
49
- end
50
-
51
- module Google
52
- module Logging
53
- module V2
54
- LogEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntry").msgclass
55
- LogEntryOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntryOperation").msgclass
56
- LogEntrySourceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntrySourceLocation").msgclass
57
- end
58
- end
59
- end
@@ -1,173 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/logging/v2/logging_config.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/resource_pb'
10
- require 'google/protobuf/duration_pb'
11
- require 'google/protobuf/empty_pb'
12
- require 'google/protobuf/field_mask_pb'
13
- require 'google/protobuf/timestamp_pb'
14
- require 'google/api/annotations_pb'
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_message "google.logging.v2.LogBucket" do
17
- optional :name, :string, 1
18
- optional :description, :string, 3
19
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
20
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
21
- optional :retention_days, :int32, 11
22
- optional :lifecycle_state, :enum, 12, "google.logging.v2.LifecycleState"
23
- end
24
- add_message "google.logging.v2.LogSink" do
25
- optional :name, :string, 1
26
- optional :destination, :string, 3
27
- optional :filter, :string, 5
28
- optional :description, :string, 18
29
- optional :disabled, :bool, 19
30
- optional :output_version_format, :enum, 6, "google.logging.v2.LogSink.VersionFormat"
31
- optional :writer_identity, :string, 8
32
- optional :include_children, :bool, 9
33
- optional :create_time, :message, 13, "google.protobuf.Timestamp"
34
- optional :update_time, :message, 14, "google.protobuf.Timestamp"
35
- oneof :options do
36
- optional :bigquery_options, :message, 12, "google.logging.v2.BigQueryOptions"
37
- end
38
- end
39
- add_enum "google.logging.v2.LogSink.VersionFormat" do
40
- value :VERSION_FORMAT_UNSPECIFIED, 0
41
- value :V2, 1
42
- value :V1, 2
43
- end
44
- add_message "google.logging.v2.BigQueryOptions" do
45
- optional :use_partitioned_tables, :bool, 1
46
- optional :uses_timestamp_column_partitioning, :bool, 3
47
- end
48
- add_message "google.logging.v2.ListBucketsRequest" do
49
- optional :parent, :string, 1
50
- optional :page_token, :string, 2
51
- optional :page_size, :int32, 3
52
- end
53
- add_message "google.logging.v2.ListBucketsResponse" do
54
- repeated :buckets, :message, 1, "google.logging.v2.LogBucket"
55
- optional :next_page_token, :string, 2
56
- end
57
- add_message "google.logging.v2.UpdateBucketRequest" do
58
- optional :name, :string, 1
59
- optional :bucket, :message, 2, "google.logging.v2.LogBucket"
60
- optional :update_mask, :message, 4, "google.protobuf.FieldMask"
61
- end
62
- add_message "google.logging.v2.GetBucketRequest" do
63
- optional :name, :string, 1
64
- end
65
- add_message "google.logging.v2.ListSinksRequest" do
66
- optional :parent, :string, 1
67
- optional :page_token, :string, 2
68
- optional :page_size, :int32, 3
69
- end
70
- add_message "google.logging.v2.ListSinksResponse" do
71
- repeated :sinks, :message, 1, "google.logging.v2.LogSink"
72
- optional :next_page_token, :string, 2
73
- end
74
- add_message "google.logging.v2.GetSinkRequest" do
75
- optional :sink_name, :string, 1
76
- end
77
- add_message "google.logging.v2.CreateSinkRequest" do
78
- optional :parent, :string, 1
79
- optional :sink, :message, 2, "google.logging.v2.LogSink"
80
- optional :unique_writer_identity, :bool, 3
81
- end
82
- add_message "google.logging.v2.UpdateSinkRequest" do
83
- optional :sink_name, :string, 1
84
- optional :sink, :message, 2, "google.logging.v2.LogSink"
85
- optional :unique_writer_identity, :bool, 3
86
- optional :update_mask, :message, 4, "google.protobuf.FieldMask"
87
- end
88
- add_message "google.logging.v2.DeleteSinkRequest" do
89
- optional :sink_name, :string, 1
90
- end
91
- add_message "google.logging.v2.LogExclusion" do
92
- optional :name, :string, 1
93
- optional :description, :string, 2
94
- optional :filter, :string, 3
95
- optional :disabled, :bool, 4
96
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
97
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
98
- end
99
- add_message "google.logging.v2.ListExclusionsRequest" do
100
- optional :parent, :string, 1
101
- optional :page_token, :string, 2
102
- optional :page_size, :int32, 3
103
- end
104
- add_message "google.logging.v2.ListExclusionsResponse" do
105
- repeated :exclusions, :message, 1, "google.logging.v2.LogExclusion"
106
- optional :next_page_token, :string, 2
107
- end
108
- add_message "google.logging.v2.GetExclusionRequest" do
109
- optional :name, :string, 1
110
- end
111
- add_message "google.logging.v2.CreateExclusionRequest" do
112
- optional :parent, :string, 1
113
- optional :exclusion, :message, 2, "google.logging.v2.LogExclusion"
114
- end
115
- add_message "google.logging.v2.UpdateExclusionRequest" do
116
- optional :name, :string, 1
117
- optional :exclusion, :message, 2, "google.logging.v2.LogExclusion"
118
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
119
- end
120
- add_message "google.logging.v2.DeleteExclusionRequest" do
121
- optional :name, :string, 1
122
- end
123
- add_message "google.logging.v2.GetCmekSettingsRequest" do
124
- optional :name, :string, 1
125
- end
126
- add_message "google.logging.v2.UpdateCmekSettingsRequest" do
127
- optional :name, :string, 1
128
- optional :cmek_settings, :message, 2, "google.logging.v2.CmekSettings"
129
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
130
- end
131
- add_message "google.logging.v2.CmekSettings" do
132
- optional :name, :string, 1
133
- optional :kms_key_name, :string, 2
134
- optional :service_account_id, :string, 3
135
- end
136
- add_enum "google.logging.v2.LifecycleState" do
137
- value :LIFECYCLE_STATE_UNSPECIFIED, 0
138
- value :ACTIVE, 1
139
- value :DELETE_REQUESTED, 2
140
- end
141
- end
142
-
143
- module Google
144
- module Logging
145
- module V2
146
- LogBucket = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogBucket").msgclass
147
- LogSink = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink").msgclass
148
- LogSink::VersionFormat = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink.VersionFormat").enummodule
149
- BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.BigQueryOptions").msgclass
150
- ListBucketsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsRequest").msgclass
151
- ListBucketsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsResponse").msgclass
152
- UpdateBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateBucketRequest").msgclass
153
- GetBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetBucketRequest").msgclass
154
- ListSinksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksRequest").msgclass
155
- ListSinksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksResponse").msgclass
156
- GetSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetSinkRequest").msgclass
157
- CreateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateSinkRequest").msgclass
158
- UpdateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateSinkRequest").msgclass
159
- DeleteSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteSinkRequest").msgclass
160
- LogExclusion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogExclusion").msgclass
161
- ListExclusionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsRequest").msgclass
162
- ListExclusionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsResponse").msgclass
163
- GetExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetExclusionRequest").msgclass
164
- CreateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateExclusionRequest").msgclass
165
- UpdateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateExclusionRequest").msgclass
166
- DeleteExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteExclusionRequest").msgclass
167
- GetCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetCmekSettingsRequest").msgclass
168
- UpdateCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateCmekSettingsRequest").msgclass
169
- CmekSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CmekSettings").msgclass
170
- LifecycleState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LifecycleState").enummodule
171
- end
172
- end
173
- end
@@ -1,112 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging_config.proto for package 'google.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_config_pb'
22
-
23
- module Google
24
- module Logging
25
- module V2
26
- module ConfigServiceV2
27
- # Service for configuring sinks used to route log entries.
28
- class Service
29
-
30
- include GRPC::GenericService
31
-
32
- self.marshal_class_method = :encode
33
- self.unmarshal_class_method = :decode
34
- self.service_name = 'google.logging.v2.ConfigServiceV2'
35
-
36
- # Lists buckets (Beta).
37
- rpc :ListBuckets, ListBucketsRequest, ListBucketsResponse
38
- # Gets a bucket (Beta).
39
- rpc :GetBucket, GetBucketRequest, LogBucket
40
- # Updates a bucket. This method replaces the following fields in the
41
- # existing bucket with values from the new bucket: `retention_period`
42
- #
43
- # If the retention period is decreased and the bucket is locked,
44
- # FAILED_PRECONDITION will be returned.
45
- #
46
- # If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
47
- # will be returned.
48
- #
49
- # A buckets region may not be modified after it is created.
50
- # This method is in Beta.
51
- rpc :UpdateBucket, UpdateBucketRequest, LogBucket
52
- # Lists sinks.
53
- rpc :ListSinks, ListSinksRequest, ListSinksResponse
54
- # Gets a sink.
55
- rpc :GetSink, GetSinkRequest, LogSink
56
- # Creates a sink that exports specified log entries to a destination. The
57
- # export of newly-ingested log entries begins immediately, unless the sink's
58
- # `writer_identity` is not permitted to write to the destination. A sink can
59
- # export log entries only from the resource owning the sink.
60
- rpc :CreateSink, CreateSinkRequest, LogSink
61
- # Updates a sink. This method replaces the following fields in the existing
62
- # sink with values from the new sink: `destination`, and `filter`.
63
- #
64
- # The updated sink might also have a new `writer_identity`; see the
65
- # `unique_writer_identity` field.
66
- rpc :UpdateSink, UpdateSinkRequest, LogSink
67
- # Deletes a sink. If the sink has a unique `writer_identity`, then that
68
- # service account is also deleted.
69
- rpc :DeleteSink, DeleteSinkRequest, Google::Protobuf::Empty
70
- # Lists all the exclusions in a parent resource.
71
- rpc :ListExclusions, ListExclusionsRequest, ListExclusionsResponse
72
- # Gets the description of an exclusion.
73
- rpc :GetExclusion, GetExclusionRequest, LogExclusion
74
- # Creates a new exclusion in a specified parent resource.
75
- # Only log entries belonging to that resource can be excluded.
76
- # You can have up to 10 exclusions in a resource.
77
- rpc :CreateExclusion, CreateExclusionRequest, LogExclusion
78
- # Changes one or more properties of an existing exclusion.
79
- rpc :UpdateExclusion, UpdateExclusionRequest, LogExclusion
80
- # Deletes an exclusion.
81
- rpc :DeleteExclusion, DeleteExclusionRequest, Google::Protobuf::Empty
82
- # Gets the Logs Router CMEK settings for the given resource.
83
- #
84
- # Note: CMEK for the Logs Router can currently only be configured for GCP
85
- # organizations. Once configured, it applies to all projects and folders in
86
- # the GCP organization.
87
- #
88
- # See [Enabling CMEK for Logs
89
- # Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
90
- rpc :GetCmekSettings, GetCmekSettingsRequest, CmekSettings
91
- # Updates the Logs Router CMEK settings for the given resource.
92
- #
93
- # Note: CMEK for the Logs Router can currently only be configured for GCP
94
- # organizations. Once configured, it applies to all projects and folders in
95
- # the GCP organization.
96
- #
97
- # [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
98
- # will fail if 1) `kms_key_name` is invalid, or 2) the associated service
99
- # account does not have the required
100
- # `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
101
- # 3) access to the key is disabled.
102
- #
103
- # See [Enabling CMEK for Logs
104
- # Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
105
- rpc :UpdateCmekSettings, UpdateCmekSettingsRequest, CmekSettings
106
- end
107
-
108
- Stub = Service.rpc_stub_class
109
- end
110
- end
111
- end
112
- end
@@ -1,72 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/logging/v2/logging_metrics.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/client_pb'
8
- require 'google/api/distribution_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/metric_pb'
11
- require 'google/api/resource_pb'
12
- require 'google/protobuf/duration_pb'
13
- require 'google/protobuf/empty_pb'
14
- require 'google/protobuf/field_mask_pb'
15
- require 'google/protobuf/timestamp_pb'
16
- require 'google/api/annotations_pb'
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_message "google.logging.v2.LogMetric" do
19
- optional :name, :string, 1
20
- optional :description, :string, 2
21
- optional :filter, :string, 3
22
- optional :metric_descriptor, :message, 5, "google.api.MetricDescriptor"
23
- optional :value_extractor, :string, 6
24
- map :label_extractors, :string, :string, 7
25
- optional :bucket_options, :message, 8, "google.api.Distribution.BucketOptions"
26
- optional :create_time, :message, 9, "google.protobuf.Timestamp"
27
- optional :update_time, :message, 10, "google.protobuf.Timestamp"
28
- optional :version, :enum, 4, "google.logging.v2.LogMetric.ApiVersion"
29
- end
30
- add_enum "google.logging.v2.LogMetric.ApiVersion" do
31
- value :V2, 0
32
- value :V1, 1
33
- end
34
- add_message "google.logging.v2.ListLogMetricsRequest" do
35
- optional :parent, :string, 1
36
- optional :page_token, :string, 2
37
- optional :page_size, :int32, 3
38
- end
39
- add_message "google.logging.v2.ListLogMetricsResponse" do
40
- repeated :metrics, :message, 1, "google.logging.v2.LogMetric"
41
- optional :next_page_token, :string, 2
42
- end
43
- add_message "google.logging.v2.GetLogMetricRequest" do
44
- optional :metric_name, :string, 1
45
- end
46
- add_message "google.logging.v2.CreateLogMetricRequest" do
47
- optional :parent, :string, 1
48
- optional :metric, :message, 2, "google.logging.v2.LogMetric"
49
- end
50
- add_message "google.logging.v2.UpdateLogMetricRequest" do
51
- optional :metric_name, :string, 1
52
- optional :metric, :message, 2, "google.logging.v2.LogMetric"
53
- end
54
- add_message "google.logging.v2.DeleteLogMetricRequest" do
55
- optional :metric_name, :string, 1
56
- end
57
- end
58
-
59
- module Google
60
- module Logging
61
- module V2
62
- LogMetric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric").msgclass
63
- LogMetric::ApiVersion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric.ApiVersion").enummodule
64
- ListLogMetricsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsRequest").msgclass
65
- ListLogMetricsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsResponse").msgclass
66
- GetLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetLogMetricRequest").msgclass
67
- CreateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateLogMetricRequest").msgclass
68
- UpdateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateLogMetricRequest").msgclass
69
- DeleteLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogMetricRequest").msgclass
70
- end
71
- end
72
- end