google-cloud-monitoring 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05bb95e98dc3f0c69cdbf51c258ae2ac0e8bc46d
|
4
|
+
data.tar.gz: 9eefc90e8d84691e7e2a2f78fba442d8d99235a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70ac93cc06d5993bc2cc45f0f69cc24cde1bb59e2e317f3b4eb32bfa3ea5ef0c43eb63a664701dd62aa178d66b5e8a8159c2274f0a7993e2648273399e01c4e8
|
7
|
+
data.tar.gz: d1abae8219dff92e473240d77aa32e9b9fd13d2a920bec110950004d201aa8094de54d3c6a3c29ea470f22eb7aa7916a323f12c97f458ebc85c9e31554fe051e
|
data/README.md
CHANGED
@@ -1,45 +1,50 @@
|
|
1
|
-
Stackdriver Monitoring API
|
2
|
-
=================================================
|
1
|
+
# Ruby Client for Stackdriver Monitoring API (Alpha)
|
3
2
|
|
4
|
-
|
5
|
-
easy-to-use client library for the [Stackdriver Monitoring API][] (v3) defined in the [googleapis][] git repository
|
3
|
+
Idiomatic Ruby client for [Stackdriver Monitoring API][Product Documentation]
|
6
4
|
|
5
|
+
- [Client Library Documentation][]
|
6
|
+
- [Product Documentation][]
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
[Stackdriver Monitoring API]: https://developers.google.com/apis-explorer/#p/monitoring/v3/
|
8
|
+
## Quick Start
|
9
|
+
In order to use this library, you first need to go through the following steps:
|
11
10
|
|
12
|
-
|
13
|
-
|
11
|
+
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
12
|
+
2. [Enable the monitoring api.](https://console.cloud.google.com/apis/api/monitoring)
|
13
|
+
3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
14
14
|
|
15
|
-
|
15
|
+
### Installation
|
16
|
+
```
|
17
|
+
$ gem install google-cloud-monitoring
|
18
|
+
```
|
16
19
|
|
17
|
-
|
20
|
+
### Preview
|
21
|
+
#### MetricServiceClient
|
22
|
+
```rb
|
23
|
+
require "google/cloud/monitoring/v3"
|
18
24
|
|
25
|
+
MetricServiceClient = Google::Cloud::Monitoring::V3::MetricServiceClient
|
19
26
|
|
20
|
-
|
21
|
-
|
27
|
+
metric_service_client = MetricServiceClient.new
|
28
|
+
formatted_name = MetricServiceClient.project_path(project_id)
|
22
29
|
|
23
|
-
|
24
|
-
|
30
|
+
# Iterate over all results.
|
31
|
+
metric_service_client.list_monitored_resource_descriptors(formatted_name).each do |element|
|
32
|
+
# Process element.
|
33
|
+
end
|
25
34
|
|
26
|
-
|
35
|
+
# Or iterate over results one page at a time.
|
36
|
+
metric_service_client.list_monitored_resource_descriptors(formatted_name).each_page do |page|
|
37
|
+
# Process each page at a time.
|
38
|
+
page.each do |element|
|
39
|
+
# Process element.
|
40
|
+
end
|
41
|
+
end
|
42
|
+
```
|
27
43
|
|
28
|
-
|
44
|
+
### Next Steps
|
45
|
+
- Read the [Client Library Documentation][] for Stackdriver Monitoring API to see other available methods on the client.
|
46
|
+
- Read the [Stackdriver Monitoring API Product documentation][Product Documentation] to learn more about the product and see How-to Guides.
|
47
|
+
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md) to see the full list of Cloud APIs that we cover.
|
29
48
|
|
30
|
-
|
31
|
-
|
32
|
-
Please see [gcloud beta auth application-default login][] document for the difference between these commands.
|
33
|
-
|
34
|
-
[Google Cloud SDK]: https://cloud.google.com/sdk/
|
35
|
-
[gcloud beta auth application-default login]: https://cloud.google.com/sdk/gcloud/reference/beta/auth/application-default/login
|
36
|
-
|
37
|
-
|
38
|
-
Installation
|
39
|
-
-------------------
|
40
|
-
|
41
|
-
Install this library using gem:
|
42
|
-
|
43
|
-
$ [sudo] gem install google-cloud-monitoring
|
44
|
-
|
45
|
-
At this point you are all set to continue.
|
49
|
+
[Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-monitoring/latest/google/monitoring/v3
|
50
|
+
[Product Documentation]: https://cloud.google.com/monitoring
|
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: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -70,7 +70,7 @@ files:
|
|
70
70
|
- lib/google/monitoring/v3/metric_pb.rb
|
71
71
|
- lib/google/monitoring/v3/metric_service_pb.rb
|
72
72
|
- lib/google/monitoring/v3/metric_service_services_pb.rb
|
73
|
-
homepage:
|
73
|
+
homepage: https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-monitoring
|
74
74
|
licenses:
|
75
75
|
- Apache-2.0
|
76
76
|
metadata: {}
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.6.
|
93
|
+
rubygems_version: 2.6.12
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: API Cient library for Stackdriver Monitoring
|