google-cloud-monitoring-v3 0.4.0 → 0.5.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 +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +52 -56
- data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +14 -0
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +58 -66
- data/lib/google/cloud/monitoring/v3/group_service/paths.rb +14 -0
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +72 -77
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +75 -79
- data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +14 -0
- data/lib/google/cloud/monitoring/v3/query_service/client.rb +35 -39
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +70 -73
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +14 -0
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +56 -61
- data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +14 -0
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +15 -0
- data/lib/google/monitoring/v3/common_pb.rb +0 -6
- data/lib/google/monitoring/v3/notification_pb.rb +0 -2
- data/lib/google/monitoring/v3/service_pb.rb +2 -0
- data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
- data/proto_docs/google/api/distribution.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/api/launch_stage.rb +7 -1
- data/proto_docs/google/api/metric.rb +109 -36
- data/proto_docs/google/api/monitored_resource.rb +7 -6
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/monitoring/v3/alert.rb +66 -1
- data/proto_docs/google/monitoring/v3/alert_service.rb +4 -2
- data/proto_docs/google/monitoring/v3/common.rb +1 -13
- data/proto_docs/google/monitoring/v3/group_service.rb +4 -2
- data/proto_docs/google/monitoring/v3/metric.rb +3 -1
- data/proto_docs/google/monitoring/v3/metric_service.rb +13 -8
- data/proto_docs/google/monitoring/v3/notification.rb +0 -4
- data/proto_docs/google/monitoring/v3/notification_service.rb +8 -4
- data/proto_docs/google/monitoring/v3/service.rb +38 -6
- data/proto_docs/google/monitoring/v3/service_service.rb +4 -2
- data/proto_docs/google/monitoring/v3/span_context.rb +2 -2
- data/proto_docs/google/monitoring/v3/uptime.rb +5 -2
- data/proto_docs/google/monitoring/v3/uptime_service.rb +4 -2
- metadata +14 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c4a4b754aa2a207389ae00d3da7aa82d1e54e649ddfa4d352993b3e1e4c55c5
|
4
|
+
data.tar.gz: edb8e5a5d6a9f9a8d2eca79d702615fc181d93c830a7013c815d10577d9356da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 204e30228200cc150bb96602586058e541e59865432b5c671710931d9c88b0dd45bd9e47ff0f52c6aa04265e7a4a019b8c6de79e50000ff71be93cd172f33438
|
7
|
+
data.tar.gz: 6d0eea897a6f29e661d1a02c59700fe303501e50c88638069b16ec53fdd0f96ef0594474aa277a668bea55fcfbc2e9bd01149c793f5fdb42358d556d5364df84
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-monitoring-v3
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Monitoring::V3::AlertPolicyService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `MONITORING_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `MONITORING_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/monitoring/v3"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::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/monitoring/v3"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |con
|
|
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/monitoring/v3"
|
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/monitoring/v3"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Monitoring::V3::ListAlertPoliciesRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_alert_policies request
|
38
38
|
```
|
39
39
|
|
@@ -49,13 +49,12 @@ module Google
|
|
49
49
|
# See {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client::Configuration}
|
50
50
|
# for a description of the configuration fields.
|
51
51
|
#
|
52
|
-
#
|
52
|
+
# @example
|
53
53
|
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
# end
|
54
|
+
# # Modify the configuration for all AlertPolicyService clients
|
55
|
+
# ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
|
56
|
+
# config.timeout = 10.0
|
57
|
+
# end
|
59
58
|
#
|
60
59
|
# @yield [config] Configure the Client client.
|
61
60
|
# @yieldparam config [Client::Configuration]
|
@@ -75,28 +74,19 @@ module Google
|
|
75
74
|
|
76
75
|
default_config.rpcs.list_alert_policies.timeout = 30.0
|
77
76
|
default_config.rpcs.list_alert_policies.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 30.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: [4, 14]
|
77
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
82
78
|
}
|
83
79
|
|
84
80
|
default_config.rpcs.get_alert_policy.timeout = 30.0
|
85
81
|
default_config.rpcs.get_alert_policy.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 30.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [4, 14]
|
82
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
90
83
|
}
|
91
84
|
|
92
85
|
default_config.rpcs.create_alert_policy.timeout = 30.0
|
93
86
|
|
94
87
|
default_config.rpcs.delete_alert_policy.timeout = 30.0
|
95
88
|
default_config.rpcs.delete_alert_policy.retry_policy = {
|
96
|
-
initial_delay: 0.1,
|
97
|
-
max_delay: 30.0,
|
98
|
-
multiplier: 1.3,
|
99
|
-
retry_codes: [4, 14]
|
89
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
100
90
|
}
|
101
91
|
|
102
92
|
default_config.rpcs.update_alert_policy.timeout = 30.0
|
@@ -130,19 +120,15 @@ module Google
|
|
130
120
|
##
|
131
121
|
# Create a new AlertPolicyService client object.
|
132
122
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
# To create a new AlertPolicyService client with the default
|
136
|
-
# configuration:
|
137
|
-
#
|
138
|
-
# client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
|
123
|
+
# @example
|
139
124
|
#
|
140
|
-
#
|
141
|
-
#
|
125
|
+
# # Create a client using the default configuration
|
126
|
+
# client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
|
142
127
|
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
128
|
+
# # Create a client using a custom configuration
|
129
|
+
# client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
|
130
|
+
# config.timeout = 10.0
|
131
|
+
# end
|
146
132
|
#
|
147
133
|
# @yield [config] Configure the AlertPolicyService client.
|
148
134
|
# @yieldparam config [Client::Configuration]
|
@@ -162,14 +148,13 @@ module Google
|
|
162
148
|
|
163
149
|
# Create credentials
|
164
150
|
credentials = @config.credentials
|
165
|
-
# Use self-signed JWT if the
|
151
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
166
152
|
# but only if the default endpoint does not have a region prefix.
|
167
|
-
enable_self_signed_jwt = @config.
|
168
|
-
@config.endpoint == Client.configure.endpoint &&
|
153
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
169
154
|
!@config.endpoint.split(".").first.include?("-")
|
170
155
|
credentials ||= Credentials.default scope: @config.scope,
|
171
156
|
enable_self_signed_jwt: enable_self_signed_jwt
|
172
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
157
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
173
158
|
credentials = Credentials.new credentials, scope: @config.scope
|
174
159
|
end
|
175
160
|
@quota_project_id = @config.quota_project
|
@@ -205,7 +190,8 @@ module Google
|
|
205
190
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
206
191
|
#
|
207
192
|
# @param name [::String]
|
208
|
-
# Required. The project
|
193
|
+
# Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
|
194
|
+
# whose alert policies are to be listed. The format is:
|
209
195
|
#
|
210
196
|
# projects/[PROJECT_ID_OR_NUMBER]
|
211
197
|
#
|
@@ -268,7 +254,9 @@ module Google
|
|
268
254
|
options.apply_defaults timeout: @config.rpcs.list_alert_policies.timeout,
|
269
255
|
metadata: metadata,
|
270
256
|
retry_policy: @config.rpcs.list_alert_policies.retry_policy
|
271
|
-
|
257
|
+
|
258
|
+
options.apply_defaults timeout: @config.timeout,
|
259
|
+
metadata: @config.metadata,
|
272
260
|
retry_policy: @config.retry_policy
|
273
261
|
|
274
262
|
@alert_policy_service_stub.call_rpc :list_alert_policies, request, options: options do |response, operation|
|
@@ -337,7 +325,9 @@ module Google
|
|
337
325
|
options.apply_defaults timeout: @config.rpcs.get_alert_policy.timeout,
|
338
326
|
metadata: metadata,
|
339
327
|
retry_policy: @config.rpcs.get_alert_policy.retry_policy
|
340
|
-
|
328
|
+
|
329
|
+
options.apply_defaults timeout: @config.timeout,
|
330
|
+
metadata: @config.metadata,
|
341
331
|
retry_policy: @config.retry_policy
|
342
332
|
|
343
333
|
@alert_policy_service_stub.call_rpc :get_alert_policy, request, options: options do |response, operation|
|
@@ -367,7 +357,8 @@ module Google
|
|
367
357
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
368
358
|
#
|
369
359
|
# @param name [::String]
|
370
|
-
# Required. The project in
|
360
|
+
# Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
|
361
|
+
# which to create the alerting policy. The format is:
|
371
362
|
#
|
372
363
|
# projects/[PROJECT_ID_OR_NUMBER]
|
373
364
|
#
|
@@ -417,7 +408,9 @@ module Google
|
|
417
408
|
options.apply_defaults timeout: @config.rpcs.create_alert_policy.timeout,
|
418
409
|
metadata: metadata,
|
419
410
|
retry_policy: @config.rpcs.create_alert_policy.retry_policy
|
420
|
-
|
411
|
+
|
412
|
+
options.apply_defaults timeout: @config.timeout,
|
413
|
+
metadata: @config.metadata,
|
421
414
|
retry_policy: @config.retry_policy
|
422
415
|
|
423
416
|
@alert_policy_service_stub.call_rpc :create_alert_policy, request, options: options do |response, operation|
|
@@ -487,7 +480,9 @@ module Google
|
|
487
480
|
options.apply_defaults timeout: @config.rpcs.delete_alert_policy.timeout,
|
488
481
|
metadata: metadata,
|
489
482
|
retry_policy: @config.rpcs.delete_alert_policy.retry_policy
|
490
|
-
|
483
|
+
|
484
|
+
options.apply_defaults timeout: @config.timeout,
|
485
|
+
metadata: @config.metadata,
|
491
486
|
retry_policy: @config.retry_policy
|
492
487
|
|
493
488
|
@alert_policy_service_stub.call_rpc :delete_alert_policy, request, options: options do |response, operation|
|
@@ -581,7 +576,9 @@ module Google
|
|
581
576
|
options.apply_defaults timeout: @config.rpcs.update_alert_policy.timeout,
|
582
577
|
metadata: metadata,
|
583
578
|
retry_policy: @config.rpcs.update_alert_policy.retry_policy
|
584
|
-
|
579
|
+
|
580
|
+
options.apply_defaults timeout: @config.timeout,
|
581
|
+
metadata: @config.metadata,
|
585
582
|
retry_policy: @config.retry_policy
|
586
583
|
|
587
584
|
@alert_policy_service_stub.call_rpc :update_alert_policy, request, options: options do |response, operation|
|
@@ -605,22 +602,21 @@ module Google
|
|
605
602
|
# Configuration can be applied globally to all clients, or to a single client
|
606
603
|
# on construction.
|
607
604
|
#
|
608
|
-
#
|
609
|
-
#
|
610
|
-
#
|
611
|
-
# to 20 seconds,
|
612
|
-
#
|
613
|
-
#
|
614
|
-
#
|
615
|
-
#
|
616
|
-
#
|
617
|
-
#
|
618
|
-
#
|
619
|
-
#
|
620
|
-
#
|
621
|
-
#
|
622
|
-
#
|
623
|
-
# end
|
605
|
+
# @example
|
606
|
+
#
|
607
|
+
# # Modify the global config, setting the timeout for
|
608
|
+
# # list_alert_policies to 20 seconds,
|
609
|
+
# # and all remaining timeouts to 10 seconds.
|
610
|
+
# ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.configure do |config|
|
611
|
+
# config.timeout = 10.0
|
612
|
+
# config.rpcs.list_alert_policies.timeout = 20.0
|
613
|
+
# end
|
614
|
+
#
|
615
|
+
# # Apply the above configuration only to a new client.
|
616
|
+
# client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new do |config|
|
617
|
+
# config.timeout = 10.0
|
618
|
+
# config.rpcs.list_alert_policies.timeout = 20.0
|
619
|
+
# end
|
624
620
|
#
|
625
621
|
# @!attribute [rw] endpoint
|
626
622
|
# The hostname or hostname:port of the service endpoint.
|
@@ -162,6 +162,20 @@ module Google
|
|
162
162
|
"organizations/#{organization}"
|
163
163
|
end
|
164
164
|
|
165
|
+
##
|
166
|
+
# Create a fully-qualified Project resource string.
|
167
|
+
#
|
168
|
+
# The resource will be in the following format:
|
169
|
+
#
|
170
|
+
# `projects/{project}`
|
171
|
+
#
|
172
|
+
# @param project [String]
|
173
|
+
#
|
174
|
+
# @return [::String]
|
175
|
+
def project_path project:
|
176
|
+
"projects/#{project}"
|
177
|
+
end
|
178
|
+
|
165
179
|
##
|
166
180
|
# Create a fully-qualified Workspace resource string.
|
167
181
|
#
|
@@ -52,13 +52,12 @@ module Google
|
|
52
52
|
# See {::Google::Cloud::Monitoring::V3::GroupService::Client::Configuration}
|
53
53
|
# for a description of the configuration fields.
|
54
54
|
#
|
55
|
-
#
|
55
|
+
# @example
|
56
56
|
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
# end
|
57
|
+
# # Modify the configuration for all GroupService clients
|
58
|
+
# ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
|
59
|
+
# config.timeout = 10.0
|
60
|
+
# end
|
62
61
|
#
|
63
62
|
# @yield [config] Configure the Client client.
|
64
63
|
# @yieldparam config [Client::Configuration]
|
@@ -78,44 +77,29 @@ module Google
|
|
78
77
|
|
79
78
|
default_config.rpcs.list_groups.timeout = 30.0
|
80
79
|
default_config.rpcs.list_groups.retry_policy = {
|
81
|
-
initial_delay: 0.1,
|
82
|
-
max_delay: 30.0,
|
83
|
-
multiplier: 1.3,
|
84
|
-
retry_codes: [4, 14]
|
80
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
85
81
|
}
|
86
82
|
|
87
83
|
default_config.rpcs.get_group.timeout = 30.0
|
88
84
|
default_config.rpcs.get_group.retry_policy = {
|
89
|
-
initial_delay: 0.1,
|
90
|
-
max_delay: 30.0,
|
91
|
-
multiplier: 1.3,
|
92
|
-
retry_codes: [4, 14]
|
85
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
93
86
|
}
|
94
87
|
|
95
88
|
default_config.rpcs.create_group.timeout = 30.0
|
96
89
|
|
97
|
-
default_config.rpcs.update_group.timeout =
|
90
|
+
default_config.rpcs.update_group.timeout = 180.0
|
98
91
|
default_config.rpcs.update_group.retry_policy = {
|
99
|
-
initial_delay: 0.1,
|
100
|
-
max_delay: 30.0,
|
101
|
-
multiplier: 1.3,
|
102
|
-
retry_codes: [4, 14]
|
92
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
103
93
|
}
|
104
94
|
|
105
95
|
default_config.rpcs.delete_group.timeout = 30.0
|
106
96
|
default_config.rpcs.delete_group.retry_policy = {
|
107
|
-
initial_delay: 0.1,
|
108
|
-
max_delay: 30.0,
|
109
|
-
multiplier: 1.3,
|
110
|
-
retry_codes: [4, 14]
|
97
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
111
98
|
}
|
112
99
|
|
113
100
|
default_config.rpcs.list_group_members.timeout = 30.0
|
114
101
|
default_config.rpcs.list_group_members.retry_policy = {
|
115
|
-
initial_delay: 0.1,
|
116
|
-
max_delay: 30.0,
|
117
|
-
multiplier: 1.3,
|
118
|
-
retry_codes: [4, 14]
|
102
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
119
103
|
}
|
120
104
|
|
121
105
|
default_config
|
@@ -147,19 +131,15 @@ module Google
|
|
147
131
|
##
|
148
132
|
# Create a new GroupService client object.
|
149
133
|
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
# To create a new GroupService client with the default
|
153
|
-
# configuration:
|
134
|
+
# @example
|
154
135
|
#
|
155
|
-
#
|
136
|
+
# # Create a client using the default configuration
|
137
|
+
# client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new
|
156
138
|
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
# config.timeout = 10.0
|
162
|
-
# end
|
139
|
+
# # Create a client using a custom configuration
|
140
|
+
# client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
|
141
|
+
# config.timeout = 10.0
|
142
|
+
# end
|
163
143
|
#
|
164
144
|
# @yield [config] Configure the GroupService client.
|
165
145
|
# @yieldparam config [Client::Configuration]
|
@@ -179,14 +159,13 @@ module Google
|
|
179
159
|
|
180
160
|
# Create credentials
|
181
161
|
credentials = @config.credentials
|
182
|
-
# Use self-signed JWT if the
|
162
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
183
163
|
# but only if the default endpoint does not have a region prefix.
|
184
|
-
enable_self_signed_jwt = @config.
|
185
|
-
@config.endpoint == Client.configure.endpoint &&
|
164
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
186
165
|
!@config.endpoint.split(".").first.include?("-")
|
187
166
|
credentials ||= Credentials.default scope: @config.scope,
|
188
167
|
enable_self_signed_jwt: enable_self_signed_jwt
|
189
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
168
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
190
169
|
credentials = Credentials.new credentials, scope: @config.scope
|
191
170
|
end
|
192
171
|
@quota_project_id = @config.quota_project
|
@@ -222,7 +201,8 @@ module Google
|
|
222
201
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
223
202
|
#
|
224
203
|
# @param name [::String]
|
225
|
-
# Required. The project
|
204
|
+
# Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
|
205
|
+
# whose groups are to be listed. The format is:
|
226
206
|
#
|
227
207
|
# projects/[PROJECT_ID_OR_NUMBER]
|
228
208
|
# @param children_of_group [::String]
|
@@ -290,7 +270,9 @@ module Google
|
|
290
270
|
options.apply_defaults timeout: @config.rpcs.list_groups.timeout,
|
291
271
|
metadata: metadata,
|
292
272
|
retry_policy: @config.rpcs.list_groups.retry_policy
|
293
|
-
|
273
|
+
|
274
|
+
options.apply_defaults timeout: @config.timeout,
|
275
|
+
metadata: @config.metadata,
|
294
276
|
retry_policy: @config.retry_policy
|
295
277
|
|
296
278
|
@group_service_stub.call_rpc :list_groups, request, options: options do |response, operation|
|
@@ -359,7 +341,9 @@ module Google
|
|
359
341
|
options.apply_defaults timeout: @config.rpcs.get_group.timeout,
|
360
342
|
metadata: metadata,
|
361
343
|
retry_policy: @config.rpcs.get_group.retry_policy
|
362
|
-
|
344
|
+
|
345
|
+
options.apply_defaults timeout: @config.timeout,
|
346
|
+
metadata: @config.metadata,
|
363
347
|
retry_policy: @config.retry_policy
|
364
348
|
|
365
349
|
@group_service_stub.call_rpc :get_group, request, options: options do |response, operation|
|
@@ -389,7 +373,8 @@ module Google
|
|
389
373
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
390
374
|
#
|
391
375
|
# @param name [::String]
|
392
|
-
# Required. The project in
|
376
|
+
# Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
|
377
|
+
# which to create the group. The format is:
|
393
378
|
#
|
394
379
|
# projects/[PROJECT_ID_OR_NUMBER]
|
395
380
|
# @param group [::Google::Cloud::Monitoring::V3::Group, ::Hash]
|
@@ -432,7 +417,9 @@ module Google
|
|
432
417
|
options.apply_defaults timeout: @config.rpcs.create_group.timeout,
|
433
418
|
metadata: metadata,
|
434
419
|
retry_policy: @config.rpcs.create_group.retry_policy
|
435
|
-
|
420
|
+
|
421
|
+
options.apply_defaults timeout: @config.timeout,
|
422
|
+
metadata: @config.metadata,
|
436
423
|
retry_policy: @config.retry_policy
|
437
424
|
|
438
425
|
@group_service_stub.call_rpc :create_group, request, options: options do |response, operation|
|
@@ -502,7 +489,9 @@ module Google
|
|
502
489
|
options.apply_defaults timeout: @config.rpcs.update_group.timeout,
|
503
490
|
metadata: metadata,
|
504
491
|
retry_policy: @config.rpcs.update_group.retry_policy
|
505
|
-
|
492
|
+
|
493
|
+
options.apply_defaults timeout: @config.timeout,
|
494
|
+
metadata: @config.metadata,
|
506
495
|
retry_policy: @config.retry_policy
|
507
496
|
|
508
497
|
@group_service_stub.call_rpc :update_group, request, options: options do |response, operation|
|
@@ -574,7 +563,9 @@ module Google
|
|
574
563
|
options.apply_defaults timeout: @config.rpcs.delete_group.timeout,
|
575
564
|
metadata: metadata,
|
576
565
|
retry_policy: @config.rpcs.delete_group.retry_policy
|
577
|
-
|
566
|
+
|
567
|
+
options.apply_defaults timeout: @config.timeout,
|
568
|
+
metadata: @config.metadata,
|
578
569
|
retry_policy: @config.retry_policy
|
579
570
|
|
580
571
|
@group_service_stub.call_rpc :delete_group, request, options: options do |response, operation|
|
@@ -662,7 +653,9 @@ module Google
|
|
662
653
|
options.apply_defaults timeout: @config.rpcs.list_group_members.timeout,
|
663
654
|
metadata: metadata,
|
664
655
|
retry_policy: @config.rpcs.list_group_members.retry_policy
|
665
|
-
|
656
|
+
|
657
|
+
options.apply_defaults timeout: @config.timeout,
|
658
|
+
metadata: @config.metadata,
|
666
659
|
retry_policy: @config.retry_policy
|
667
660
|
|
668
661
|
@group_service_stub.call_rpc :list_group_members, request, options: options do |response, operation|
|
@@ -687,22 +680,21 @@ module Google
|
|
687
680
|
# Configuration can be applied globally to all clients, or to a single client
|
688
681
|
# on construction.
|
689
682
|
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
-
# to 20 seconds,
|
694
|
-
#
|
695
|
-
#
|
696
|
-
#
|
697
|
-
#
|
698
|
-
#
|
699
|
-
#
|
700
|
-
#
|
701
|
-
#
|
702
|
-
#
|
703
|
-
#
|
704
|
-
#
|
705
|
-
# end
|
683
|
+
# @example
|
684
|
+
#
|
685
|
+
# # Modify the global config, setting the timeout for
|
686
|
+
# # list_groups to 20 seconds,
|
687
|
+
# # and all remaining timeouts to 10 seconds.
|
688
|
+
# ::Google::Cloud::Monitoring::V3::GroupService::Client.configure do |config|
|
689
|
+
# config.timeout = 10.0
|
690
|
+
# config.rpcs.list_groups.timeout = 20.0
|
691
|
+
# end
|
692
|
+
#
|
693
|
+
# # Apply the above configuration only to a new client.
|
694
|
+
# client = ::Google::Cloud::Monitoring::V3::GroupService::Client.new do |config|
|
695
|
+
# config.timeout = 10.0
|
696
|
+
# config.rpcs.list_groups.timeout = 20.0
|
697
|
+
# end
|
706
698
|
#
|
707
699
|
# @!attribute [rw] endpoint
|
708
700
|
# The hostname or hostname:port of the service endpoint.
|