google-cloud-monitoring 1.5.0 → 1.6.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 829edc9782b72e5039c3569c9e6a12f242da314f1cabb77aa90025e51053d8d1
|
4
|
+
data.tar.gz: 9d9c6b73a15f4aa6e3f5f96d61e82602e935e4f29c04d8c452b20b5d4263a42e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 817d280ef7b6c7bbe306ee330c4d48cc018772a4b7961c8d8028b5b84635b52a85095f944fda4d60f57c39f049af113e508185c33a4aea7bfa286883bfdbfedf
|
7
|
+
data.tar.gz: 27c393b716d022a9c7a945a9f4406bbb667ec4e5b77cd978a3f80182d95e27a57c6835d54f826067e097aa3d8d52e01fbad8383b8632b20119af66db6a6d22c7
|
data/README.md
CHANGED
@@ -16,9 +16,9 @@ for this library, google-cloud-monitoring, to see the convenience methods for
|
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
18
18
|
client gems:
|
19
|
-
[google-cloud-monitoring-v3](https://
|
20
|
-
[google-cloud-monitoring-dashboard-v1](https://
|
21
|
-
[google-cloud-monitoring-metrics_scope-v1](https://
|
19
|
+
[google-cloud-monitoring-v3](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest),
|
20
|
+
[google-cloud-monitoring-dashboard-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest),
|
21
|
+
[google-cloud-monitoring-metrics_scope-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-metrics_scope-v1/latest).
|
22
22
|
|
23
23
|
See also the [Product Documentation](https://cloud.google.com/monitoring)
|
24
24
|
for more usage information.
|
@@ -48,7 +48,7 @@ See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
|
48
48
|
|
49
49
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
50
50
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
51
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
51
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
52
52
|
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)
|
53
53
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
54
54
|
|
@@ -49,12 +49,14 @@ module Google
|
|
49
49
|
# Create a new client object for DashboardsService.
|
50
50
|
#
|
51
51
|
# By default, this returns an instance of
|
52
|
-
# [Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client](https://
|
52
|
+
# [Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-DashboardsService-Client)
|
53
53
|
# for a gRPC client for version V1 of the API.
|
54
54
|
# However, you can specify a different API version by passing it in the
|
55
55
|
# `version` parameter. If the DashboardsService service is
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
57
57
|
# appropriate versioned client will be returned.
|
58
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
59
|
+
# the `transport` parameter.
|
58
60
|
#
|
59
61
|
# ## About DashboardsService
|
60
62
|
#
|
@@ -63,9 +65,10 @@ module Google
|
|
63
65
|
#
|
64
66
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
65
67
|
# Defaults to `:v1`.
|
68
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
66
69
|
# @return [::Object] A client object for the specified version.
|
67
70
|
#
|
68
|
-
def self.dashboards_service version: :v1, &block
|
71
|
+
def self.dashboards_service version: :v1, transport: :grpc, &block
|
69
72
|
require "google/cloud/monitoring/dashboard/#{version.to_s.downcase}"
|
70
73
|
|
71
74
|
package_name = Google::Cloud::Monitoring::Dashboard
|
@@ -73,6 +76,7 @@ module Google
|
|
73
76
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
74
77
|
.first
|
75
78
|
service_module = Google::Cloud::Monitoring::Dashboard.const_get(package_name).const_get(:DashboardsService)
|
79
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
76
80
|
service_module.const_get(:Client).new(&block)
|
77
81
|
end
|
78
82
|
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
# Create a new client object for MetricsScopes.
|
50
50
|
#
|
51
51
|
# By default, this returns an instance of
|
52
|
-
# [Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client](https://
|
52
|
+
# [Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-metrics_scope-v1/latest/Google-Cloud-Monitoring-MetricsScope-V1-MetricsScopes-Client)
|
53
53
|
# for a gRPC client for version V1 of the API.
|
54
54
|
# However, you can specify a different API version by passing it in the
|
55
55
|
# `version` parameter. If the MetricsScopes service is
|
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
# Create a new client object for AlertPolicyService.
|
49
49
|
#
|
50
50
|
# By default, this returns an instance of
|
51
|
-
# [Google::Cloud::Monitoring::V3::AlertPolicyService::Client](https://
|
51
|
+
# [Google::Cloud::Monitoring::V3::AlertPolicyService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-AlertPolicyService-Client)
|
52
52
|
# for a gRPC client for version V3 of the API.
|
53
53
|
# However, you can specify a different API version by passing it in the
|
54
54
|
# `version` parameter. If the AlertPolicyService service is
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
# Create a new client object for GroupService.
|
87
87
|
#
|
88
88
|
# By default, this returns an instance of
|
89
|
-
# [Google::Cloud::Monitoring::V3::GroupService::Client](https://
|
89
|
+
# [Google::Cloud::Monitoring::V3::GroupService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-GroupService-Client)
|
90
90
|
# for a gRPC client for version V3 of the API.
|
91
91
|
# However, you can specify a different API version by passing it in the
|
92
92
|
# `version` parameter. If the GroupService service is
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
# Create a new client object for MetricService.
|
128
128
|
#
|
129
129
|
# By default, this returns an instance of
|
130
|
-
# [Google::Cloud::Monitoring::V3::MetricService::Client](https://
|
130
|
+
# [Google::Cloud::Monitoring::V3::MetricService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-MetricService-Client)
|
131
131
|
# for a gRPC client for version V3 of the API.
|
132
132
|
# However, you can specify a different API version by passing it in the
|
133
133
|
# `version` parameter. If the MetricService service is
|
@@ -158,7 +158,7 @@ module Google
|
|
158
158
|
# Create a new client object for NotificationChannelService.
|
159
159
|
#
|
160
160
|
# By default, this returns an instance of
|
161
|
-
# [Google::Cloud::Monitoring::V3::NotificationChannelService::Client](https://
|
161
|
+
# [Google::Cloud::Monitoring::V3::NotificationChannelService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-NotificationChannelService-Client)
|
162
162
|
# for a gRPC client for version V3 of the API.
|
163
163
|
# However, you can specify a different API version by passing it in the
|
164
164
|
# `version` parameter. If the NotificationChannelService service is
|
@@ -189,7 +189,7 @@ module Google
|
|
189
189
|
# Create a new client object for QueryService.
|
190
190
|
#
|
191
191
|
# By default, this returns an instance of
|
192
|
-
# [Google::Cloud::Monitoring::V3::QueryService::Client](https://
|
192
|
+
# [Google::Cloud::Monitoring::V3::QueryService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-QueryService-Client)
|
193
193
|
# for a gRPC client for version V3 of the API.
|
194
194
|
# However, you can specify a different API version by passing it in the
|
195
195
|
# `version` parameter. If the QueryService service is
|
@@ -221,7 +221,7 @@ module Google
|
|
221
221
|
# Create a new client object for ServiceMonitoringService.
|
222
222
|
#
|
223
223
|
# By default, this returns an instance of
|
224
|
-
# [Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client](https://
|
224
|
+
# [Google::Cloud::Monitoring::V3::ServiceMonitoringService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-ServiceMonitoringService-Client)
|
225
225
|
# for a gRPC client for version V3 of the API.
|
226
226
|
# However, you can specify a different API version by passing it in the
|
227
227
|
# `version` parameter. If the ServiceMonitoringService service is
|
@@ -254,7 +254,7 @@ module Google
|
|
254
254
|
# Create a new client object for SnoozeService.
|
255
255
|
#
|
256
256
|
# By default, this returns an instance of
|
257
|
-
# [Google::Cloud::Monitoring::V3::SnoozeService::Client](https://
|
257
|
+
# [Google::Cloud::Monitoring::V3::SnoozeService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-SnoozeService-Client)
|
258
258
|
# for a gRPC client for version V3 of the API.
|
259
259
|
# However, you can specify a different API version by passing it in the
|
260
260
|
# `version` parameter. If the SnoozeService service is
|
@@ -286,7 +286,7 @@ module Google
|
|
286
286
|
# Create a new client object for UptimeCheckService.
|
287
287
|
#
|
288
288
|
# By default, this returns an instance of
|
289
|
-
# [Google::Cloud::Monitoring::V3::UptimeCheckService::Client](https://
|
289
|
+
# [Google::Cloud::Monitoring::V3::UptimeCheckService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-UptimeCheckService-Client)
|
290
290
|
# for a gRPC client for version V3 of the API.
|
291
291
|
# However, you can specify a different API version by passing it in the
|
292
292
|
# `version` parameter. If the UptimeCheckService service is
|
@@ -296,13 +296,13 @@ module Google
|
|
296
296
|
# ## About UptimeCheckService
|
297
297
|
#
|
298
298
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
299
|
-
# Uptime check configurations in the
|
299
|
+
# Uptime check configurations in the Cloud Monitoring product. An Uptime
|
300
300
|
# check is a piece of configuration that determines which resources and
|
301
301
|
# services to monitor for availability. These configurations can also be
|
302
|
-
# configured interactively by navigating to the [Cloud
|
303
|
-
# (
|
304
|
-
# clicking on "Monitoring" on the left-hand side to navigate to
|
305
|
-
# and then clicking on "Uptime".
|
302
|
+
# configured interactively by navigating to the [Cloud console]
|
303
|
+
# (https://console.cloud.google.com), selecting the appropriate project,
|
304
|
+
# clicking on "Monitoring" on the left-hand side to navigate to Cloud
|
305
|
+
# Monitoring, and then clicking on "Uptime".
|
306
306
|
#
|
307
307
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
308
308
|
# Defaults to `:v3`.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.11'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.11'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|