google-cloud-monitoring 1.1.0 → 1.2.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/lib/google/cloud/monitoring.rb +32 -0
- data/lib/google/cloud/monitoring/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd54ba8f56a6102bc6660a9c23696596e9f10eebb361b925df8a5aa178bfeec5
|
4
|
+
data.tar.gz: b74d887d821c194c2608c96dcacad842c549fb712bde9aceec8e4b59be65e73d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90367a4b3a1f82ba0183cae76a1b00a8a1513ad6def35d488b1da80a1ea21e88e2ff65f74919e27b3621e3d1eb1b4bfd10303d72532a9f43ec7d90905aee84cc
|
7
|
+
data.tar.gz: 49c849ca27fbe6fd0ada15fa9fd627acbb7102fca1c7c3ba225084d63b0869cc5d4f20a5f5fe7418d5a63d956ac9780ff24e4b36bc5da1e7eafa0a4d58b1f25d
|
@@ -185,6 +185,38 @@ module Google
|
|
185
185
|
package_module.const_get(:NotificationChannelService).const_get(:Client).new(&block)
|
186
186
|
end
|
187
187
|
|
188
|
+
##
|
189
|
+
# Create a new client object for QueryService.
|
190
|
+
#
|
191
|
+
# By default, this returns an instance of
|
192
|
+
# [Google::Cloud::Monitoring::V3::QueryService::Client](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest/Google/Cloud/Monitoring/V3/QueryService/Client.html)
|
193
|
+
# for version V3 of the API.
|
194
|
+
# However, you can specify specify a different API version by passing it in the
|
195
|
+
# `version` parameter. If the QueryService service is
|
196
|
+
# supported by that API version, and the corresponding gem is available, the
|
197
|
+
# appropriate versioned client will be returned.
|
198
|
+
#
|
199
|
+
# ## About QueryService
|
200
|
+
#
|
201
|
+
# The QueryService API is used to manage time series data in Stackdriver
|
202
|
+
# Monitoring. Time series data is a collection of data points that describes
|
203
|
+
# the time-varying values of a metric.
|
204
|
+
#
|
205
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
206
|
+
# Defaults to `:v3`.
|
207
|
+
# @return [QueryService::Client] A client object for the specified version.
|
208
|
+
#
|
209
|
+
def self.query_service version: :v3, &block
|
210
|
+
require "google/cloud/monitoring/#{version.to_s.downcase}"
|
211
|
+
|
212
|
+
package_name = Google::Cloud::Monitoring
|
213
|
+
.constants
|
214
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
215
|
+
.first
|
216
|
+
package_module = Google::Cloud::Monitoring.const_get package_name
|
217
|
+
package_module.const_get(:QueryService).const_get(:Client).new(&block)
|
218
|
+
end
|
219
|
+
|
188
220
|
##
|
189
221
|
# Create a new client object for ServiceMonitoringService.
|
190
222
|
#
|
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.2.0
|
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-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: google-cloud-monitoring-dashboard-v1
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.5'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.5'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: google-style
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|