google-cloud-service_control-v1 0.4.0 → 0.4.4
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 +8 -8
- data/README.md +1 -1
- data/lib/google/api/servicecontrol/v1/check_error_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/distribution_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/http_request_pb.rb +1 -1
- data/lib/google/api/servicecontrol/v1/log_entry_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/metric_value_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/operation_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/quota_controller_pb.rb +2 -2
- data/lib/google/api/servicecontrol/v1/service_controller_pb.rb +2 -2
- data/lib/google/cloud/service_control/v1/quota_controller/client.rb +33 -38
- data/lib/google/cloud/service_control/v1/service_controller/client.rb +43 -39
- data/lib/google/cloud/service_control/v1/version.rb +1 -1
- data/proto_docs/google/api/distribution.rb +2 -2
- data/proto_docs/google/api/servicecontrol/v1/distribution.rb +4 -4
- data/proto_docs/google/api/servicecontrol/v1/log_entry.rb +1 -1
- data/proto_docs/google/logging/type/log_severity.rb +39 -37
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0217fd1deb50d87d9231da187a508edfc80adab34754b5cd209b18faa3ce6d3
|
4
|
+
data.tar.gz: e76be4c3d95a3cad71bbee586d91601f993128c541fed56f40f7b9703c4534fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a3297c147dc7dedcab85cc5ea6be69d7d9598a2e408da789d69f4dc5c4b43c56e7a694545ff7301951721565a0c498a3d5b3039b6c60ce131dabcf94ce4232
|
7
|
+
data.tar.gz: 4be09a8bdbd984d8f272e986239123a28b8937ff7789cbe49e82aab81a8ccac0d1dcacd4fa06a056adeb69ad4e8865891e01c61ac89c5e22cd57a53625d871f8
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-service_control-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::ServiceControl::V1::QuotaController::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `SERVICE_CONTROL_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `SERVICE_CONTROL_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/service_control/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/service_control/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |co
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/service_control/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/service_control/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::ServiceControl::V1::AllocateQuotaRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.allocate_quota request
|
38
38
|
```
|
39
39
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/check_error.proto
|
3
3
|
|
4
|
+
require 'google/rpc/status_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/rpc/status_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/api/servicecontrol/v1/check_error.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.api.servicecontrol.v1.CheckError" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/distribution.proto
|
3
3
|
|
4
|
+
require 'google/api/distribution_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/distribution_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/api/servicecontrol/v1/distribution.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.api.servicecontrol.v1.Distribution" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/http_request.proto
|
3
3
|
|
4
|
+
require 'google/protobuf/duration_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/protobuf/duration_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/api/servicecontrol/v1/http_request.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.api.servicecontrol.v1.HttpRequest" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/log_entry.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/servicecontrol/v1/http_request_pb'
|
7
5
|
require 'google/logging/type/log_severity_pb'
|
8
6
|
require 'google/protobuf/any_pb'
|
9
7
|
require 'google/protobuf/struct_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/api/servicecontrol/v1/log_entry.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.api.servicecontrol.v1.LogEntry" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/metric_value.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/servicecontrol/v1/distribution_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/api/servicecontrol/v1/metric_value.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.api.servicecontrol.v1.MetricValue" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/operation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/servicecontrol/v1/log_entry_pb'
|
7
5
|
require 'google/api/servicecontrol/v1/metric_value_pb'
|
8
6
|
require 'google/protobuf/any_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/api/servicecontrol/v1/operation.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.api.servicecontrol.v1.Operation" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/quota_controller.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/servicecontrol/v1/metric_value_pb'
|
8
6
|
require 'google/rpc/status_pb'
|
9
7
|
require 'google/api/client_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/api/servicecontrol/v1/quota_controller.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.api.servicecontrol.v1.AllocateQuotaRequest" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicecontrol/v1/service_controller.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/servicecontrol/v1/check_error_pb'
|
9
7
|
require 'google/api/servicecontrol/v1/operation_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/rpc/status_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/api/servicecontrol/v1/service_controller.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.api.servicecontrol.v1.CheckRequest" do
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::ServiceControl::V1::QuotaController::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all QuotaController clients
|
48
|
+
# ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -95,19 +94,15 @@ module Google
|
|
95
94
|
##
|
96
95
|
# Create a new QuotaController client object.
|
97
96
|
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
# To create a new QuotaController client with the default
|
101
|
-
# configuration:
|
97
|
+
# @example
|
102
98
|
#
|
103
|
-
#
|
99
|
+
# # Create a client using the default configuration
|
100
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new
|
104
101
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
102
|
+
# # Create a client using a custom configuration
|
103
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
|
104
|
+
# config.timeout = 10.0
|
105
|
+
# end
|
111
106
|
#
|
112
107
|
# @yield [config] Configure the QuotaController client.
|
113
108
|
# @yieldparam config [Client::Configuration]
|
@@ -127,14 +122,13 @@ module Google
|
|
127
122
|
|
128
123
|
# Create credentials
|
129
124
|
credentials = @config.credentials
|
130
|
-
# Use self-signed JWT if the
|
125
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
126
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.
|
133
|
-
@config.endpoint == Client.configure.endpoint &&
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
134
128
|
!@config.endpoint.split(".").first.include?("-")
|
135
129
|
credentials ||= Credentials.default scope: @config.scope,
|
136
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
137
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
131
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
138
132
|
credentials = Credentials.new credentials, scope: @config.scope
|
139
133
|
end
|
140
134
|
@quota_project_id = @config.quota_project
|
@@ -225,7 +219,9 @@ module Google
|
|
225
219
|
options.apply_defaults timeout: @config.rpcs.allocate_quota.timeout,
|
226
220
|
metadata: metadata,
|
227
221
|
retry_policy: @config.rpcs.allocate_quota.retry_policy
|
228
|
-
|
222
|
+
|
223
|
+
options.apply_defaults timeout: @config.timeout,
|
224
|
+
metadata: @config.metadata,
|
229
225
|
retry_policy: @config.retry_policy
|
230
226
|
|
231
227
|
@quota_controller_stub.call_rpc :allocate_quota, request, options: options do |response, operation|
|
@@ -249,22 +245,21 @@ module Google
|
|
249
245
|
# Configuration can be applied globally to all clients, or to a single client
|
250
246
|
# on construction.
|
251
247
|
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# to 20 seconds,
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
267
|
-
# end
|
248
|
+
# @example
|
249
|
+
#
|
250
|
+
# # Modify the global config, setting the timeout for
|
251
|
+
# # allocate_quota to 20 seconds,
|
252
|
+
# # and all remaining timeouts to 10 seconds.
|
253
|
+
# ::Google::Cloud::ServiceControl::V1::QuotaController::Client.configure do |config|
|
254
|
+
# config.timeout = 10.0
|
255
|
+
# config.rpcs.allocate_quota.timeout = 20.0
|
256
|
+
# end
|
257
|
+
#
|
258
|
+
# # Apply the above configuration only to a new client.
|
259
|
+
# client = ::Google::Cloud::ServiceControl::V1::QuotaController::Client.new do |config|
|
260
|
+
# config.timeout = 10.0
|
261
|
+
# config.rpcs.allocate_quota.timeout = 20.0
|
262
|
+
# end
|
268
263
|
#
|
269
264
|
# @!attribute [rw] endpoint
|
270
265
|
# The hostname or hostname:port of the service endpoint.
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::ServiceControl::V1::ServiceController::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all ServiceController clients
|
48
|
+
# ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -66,6 +65,13 @@ module Google
|
|
66
65
|
end
|
67
66
|
default_config = Client::Configuration.new parent_config
|
68
67
|
|
68
|
+
default_config.rpcs.check.timeout = 5.0
|
69
|
+
default_config.rpcs.check.retry_policy = {
|
70
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
71
|
+
}
|
72
|
+
|
73
|
+
default_config.rpcs.report.timeout = 16.0
|
74
|
+
|
69
75
|
default_config
|
70
76
|
end
|
71
77
|
yield @configure if block_given?
|
@@ -95,19 +101,15 @@ module Google
|
|
95
101
|
##
|
96
102
|
# Create a new ServiceController client object.
|
97
103
|
#
|
98
|
-
#
|
104
|
+
# @example
|
99
105
|
#
|
100
|
-
#
|
101
|
-
#
|
106
|
+
# # Create a client using the default configuration
|
107
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new
|
102
108
|
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
|
109
|
-
# config.timeout = 10.0
|
110
|
-
# end
|
109
|
+
# # Create a client using a custom configuration
|
110
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
|
111
|
+
# config.timeout = 10.0
|
112
|
+
# end
|
111
113
|
#
|
112
114
|
# @yield [config] Configure the ServiceController client.
|
113
115
|
# @yieldparam config [Client::Configuration]
|
@@ -127,14 +129,13 @@ module Google
|
|
127
129
|
|
128
130
|
# Create credentials
|
129
131
|
credentials = @config.credentials
|
130
|
-
# Use self-signed JWT if the
|
132
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
131
133
|
# but only if the default endpoint does not have a region prefix.
|
132
|
-
enable_self_signed_jwt = @config.
|
133
|
-
@config.endpoint == Client.configure.endpoint &&
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
134
135
|
!@config.endpoint.split(".").first.include?("-")
|
135
136
|
credentials ||= Credentials.default scope: @config.scope,
|
136
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
137
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
138
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
138
139
|
credentials = Credentials.new credentials, scope: @config.scope
|
139
140
|
end
|
140
141
|
@quota_project_id = @config.quota_project
|
@@ -235,7 +236,9 @@ module Google
|
|
235
236
|
options.apply_defaults timeout: @config.rpcs.check.timeout,
|
236
237
|
metadata: metadata,
|
237
238
|
retry_policy: @config.rpcs.check.retry_policy
|
238
|
-
|
239
|
+
|
240
|
+
options.apply_defaults timeout: @config.timeout,
|
241
|
+
metadata: @config.metadata,
|
239
242
|
retry_policy: @config.retry_policy
|
240
243
|
|
241
244
|
@service_controller_stub.call_rpc :check, request, options: options do |response, operation|
|
@@ -338,7 +341,9 @@ module Google
|
|
338
341
|
options.apply_defaults timeout: @config.rpcs.report.timeout,
|
339
342
|
metadata: metadata,
|
340
343
|
retry_policy: @config.rpcs.report.retry_policy
|
341
|
-
|
344
|
+
|
345
|
+
options.apply_defaults timeout: @config.timeout,
|
346
|
+
metadata: @config.metadata,
|
342
347
|
retry_policy: @config.retry_policy
|
343
348
|
|
344
349
|
@service_controller_stub.call_rpc :report, request, options: options do |response, operation|
|
@@ -362,22 +367,21 @@ module Google
|
|
362
367
|
# Configuration can be applied globally to all clients, or to a single client
|
363
368
|
# on construction.
|
364
369
|
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
# to 20 seconds,
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
# end
|
370
|
+
# @example
|
371
|
+
#
|
372
|
+
# # Modify the global config, setting the timeout for
|
373
|
+
# # check to 20 seconds,
|
374
|
+
# # and all remaining timeouts to 10 seconds.
|
375
|
+
# ::Google::Cloud::ServiceControl::V1::ServiceController::Client.configure do |config|
|
376
|
+
# config.timeout = 10.0
|
377
|
+
# config.rpcs.check.timeout = 20.0
|
378
|
+
# end
|
379
|
+
#
|
380
|
+
# # Apply the above configuration only to a new client.
|
381
|
+
# client = ::Google::Cloud::ServiceControl::V1::ServiceController::Client.new do |config|
|
382
|
+
# config.timeout = 10.0
|
383
|
+
# config.rpcs.check.timeout = 20.0
|
384
|
+
# end
|
381
385
|
#
|
382
386
|
# @!attribute [rw] endpoint
|
383
387
|
# The hostname or hostname:port of the service endpoint.
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
#
|
50
50
|
# Sum[i=1..n]((x_i - mean)^2)
|
51
51
|
#
|
52
|
-
# Knuth, "The Art of Computer Programming", Vol. 2, page
|
52
|
+
# Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
53
53
|
# describes Welford's method for accumulating this sum in one pass.
|
54
54
|
#
|
55
55
|
# If `count` is zero then this field must be zero.
|
@@ -207,7 +207,7 @@ module Google
|
|
207
207
|
# @return [::Array<::Google::Protobuf::Any>]
|
208
208
|
# Contextual information about the example value. Examples are:
|
209
209
|
#
|
210
|
-
# Trace
|
210
|
+
# Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
211
211
|
#
|
212
212
|
# Literal string: type.googleapis.com/google.protobuf.StringValue
|
213
213
|
#
|
@@ -25,10 +25,10 @@ module Google
|
|
25
25
|
# points. It contains the size of the population of sample points plus
|
26
26
|
# additional optional information:
|
27
27
|
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
28
|
+
# * the arithmetic mean of the samples
|
29
|
+
# * the minimum and maximum of the samples
|
30
|
+
# * the sum-squared-deviation of the samples, used to compute variance
|
31
|
+
# * a histogram of the values of the sample points
|
32
32
|
# @!attribute [rw] count
|
33
33
|
# @return [::Integer]
|
34
34
|
# The total number of samples in the distribution. Must be >= 0.
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# The time the event described by the log entry occurred. If
|
32
32
|
# omitted, defaults to operation start time.
|
33
33
|
# @!attribute [rw] severity
|
34
|
-
# @return [::Google::Logging::Type::LogSeverity]
|
34
|
+
# @return [::Google::Cloud::Logging::Type::LogSeverity]
|
35
35
|
# The severity of the log entry. The default value is
|
36
36
|
# `LogSeverity.DEFAULT`.
|
37
37
|
# @!attribute [rw] http_request
|
@@ -18,51 +18,53 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
module Google
|
21
|
-
module
|
22
|
-
module
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
21
|
+
module Cloud
|
22
|
+
module Logging
|
23
|
+
module Type
|
24
|
+
# The severity of the event described in a log entry, expressed as one of the
|
25
|
+
# standard severity levels listed below. For your reference, the levels are
|
26
|
+
# assigned the listed numeric values. The effect of using numeric values other
|
27
|
+
# than those listed is undefined.
|
28
|
+
#
|
29
|
+
# You can filter for log entries by severity. For example, the following
|
30
|
+
# filter expression will match log entries with severities `INFO`, `NOTICE`,
|
31
|
+
# and `WARNING`:
|
32
|
+
#
|
33
|
+
# severity > DEBUG AND severity <= WARNING
|
34
|
+
#
|
35
|
+
# If you are writing log entries, you should map other severity encodings to
|
36
|
+
# one of these standard levels. For example, you might map all of Java's FINE,
|
37
|
+
# FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
|
38
|
+
# original severity level in the log entry payload if you wish.
|
39
|
+
module LogSeverity
|
40
|
+
# (0) The log entry has no assigned severity level.
|
41
|
+
DEFAULT = 0
|
41
42
|
|
42
|
-
|
43
|
-
|
43
|
+
# (100) Debug or trace information.
|
44
|
+
DEBUG = 100
|
44
45
|
|
45
|
-
|
46
|
-
|
46
|
+
# (200) Routine information, such as ongoing status or performance.
|
47
|
+
INFO = 200
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
|
49
|
+
# (300) Normal but significant events, such as start up, shut down, or
|
50
|
+
# a configuration change.
|
51
|
+
NOTICE = 300
|
51
52
|
|
52
|
-
|
53
|
-
|
53
|
+
# (400) Warning events might cause problems.
|
54
|
+
WARNING = 400
|
54
55
|
|
55
|
-
|
56
|
-
|
56
|
+
# (500) Error events are likely to cause problems.
|
57
|
+
ERROR = 500
|
57
58
|
|
58
|
-
|
59
|
-
|
59
|
+
# (600) Critical events cause more severe problems or outages.
|
60
|
+
CRITICAL = 600
|
60
61
|
|
61
|
-
|
62
|
-
|
62
|
+
# (700) A person must take an action immediately.
|
63
|
+
ALERT = 700
|
63
64
|
|
64
|
-
|
65
|
-
|
65
|
+
# (800) One or more systems are unusable.
|
66
|
+
EMERGENCY = 800
|
67
|
+
end
|
66
68
|
end
|
67
69
|
end
|
68
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-service_control-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|