google-cloud-monitoring 0.24.0 → 0.25.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b2f1d29f46cf1e0fb6d8d09427075e6c1bf1348
4
- data.tar.gz: d086c704333bdae52534f6e15e8768a1d5cea883
3
+ metadata.gz: 05bb95e98dc3f0c69cdbf51c258ae2ac0e8bc46d
4
+ data.tar.gz: 9eefc90e8d84691e7e2a2f78fba442d8d99235a7
5
5
  SHA512:
6
- metadata.gz: 9cbe18d3916089f5a2d5b96256ba334cc1d2f3b7a81c196f141280de48fee7331a33f7dcfcc72b2dcf51e503e5fb1354e94151ea52ebdff99f28395e002a524f
7
- data.tar.gz: aa4328c963ac1332548186231df3467814a511f93747497888d9fc1498e7dfced339eacadf487eb65bdd6a2a0df75899ba1397019ae555193562ad9dfc58b1fc
6
+ metadata.gz: 70ac93cc06d5993bc2cc45f0f69cc24cde1bb59e2e317f3b4eb32bfa3ea5ef0c43eb63a664701dd62aa178d66b5e8a8159c2274f0a7993e2648273399e01c4e8
7
+ data.tar.gz: d1abae8219dff92e473240d77aa32e9b9fd13d2a920bec110950004d201aa8094de54d3c6a3c29ea470f22eb7aa7916a323f12c97f458ebc85c9e31554fe051e
data/README.md CHANGED
@@ -1,45 +1,50 @@
1
- Stackdriver Monitoring API for Ruby
2
- =================================================
1
+ # Ruby Client for Stackdriver Monitoring API (Alpha)
3
2
 
4
- google-cloud-monitoring uses [Google API extensions][google-gax] to provide an
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
- [googleapis]: https://github.com/googleapis/googleapis/tree/master/google/monitoring/v3
9
- [google-gax]: https://github.com/googleapis/gax-ruby
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
- Getting started
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
- google-cloud-monitoring will allow you to connect to the [Stackdriver Monitoring API][] and access all its methods.
15
+ ### Installation
16
+ ```
17
+ $ gem install google-cloud-monitoring
18
+ ```
16
19
 
17
- In order to achieve so you need to set up authentication as well as install the library locally.
20
+ ### Preview
21
+ #### MetricServiceClient
22
+ ```rb
23
+ require "google/cloud/monitoring/v3"
18
24
 
25
+ MetricServiceClient = Google::Cloud::Monitoring::V3::MetricServiceClient
19
26
 
20
- Setup Authentication
21
- --------------------
27
+ metric_service_client = MetricServiceClient.new
28
+ formatted_name = MetricServiceClient.project_path(project_id)
22
29
 
23
- To authenticate all your API calls, first install and setup the [Google Cloud SDK][].
24
- Once done, you can then run the following command in your terminal:
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
- $ gcloud beta auth application-default login
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
- or
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
- $ gcloud auth login
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
@@ -6,9 +6,7 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": [
10
- "UNAVAILABLE"
11
- ]
9
+ "non_idempotent": []
12
10
  },
13
11
  "retry_params": {
14
12
  "default": {
@@ -6,9 +6,7 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": [
10
- "UNAVAILABLE"
11
- ]
9
+ "non_idempotent": []
12
10
  },
13
11
  "retry_params": {
14
12
  "default": {
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.24.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-04-01 00:00:00.000000000 Z
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: http://googlecloudplatform.github.io/google-cloud-ruby/
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.11
93
+ rubygems_version: 2.6.12
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: API Cient library for Stackdriver Monitoring