google-cloud-monitoring 0.32.0 → 0.33.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
  SHA256:
3
- metadata.gz: 1d54ca27cd867b5b10a787882380c20c36360b5a18cea1bc0b653f711e6fa1f0
4
- data.tar.gz: ca12b4e7e51da60d4c6da2692e19ddb20d0abf57aba0a1ccf27bc4f4d5d5f70a
3
+ metadata.gz: 5909c22fbbac46b05cfcd1a70146a7eaab1064bab8d358d4ded5d811f7258e2d
4
+ data.tar.gz: a3891c07f8b16578a4b44e0a7e20e861b32bce9654204d455e36434db87048f6
5
5
  SHA512:
6
- metadata.gz: 31e3f5b762caa50accd163f62447dc05bc9fbe7f99eaad3279a82b7657653ddd71c6928db07830e25b847a04d6744e561a68a096e574485a33f4ed92eedfbbb6
7
- data.tar.gz: 97904c3fd9b4852971f3b45478e7a4bc994f23e036e6186aaedb0a7bf3b2e010afe00d3b15894df42101dbe5c9eecbee961447223afe30d8de81f145de6ef079
6
+ metadata.gz: 7d366d1ac89bba0873898775fe577f8b7d26c2463623ffcba24e770b1b26f52470be477ba11a8ce01b00e3c29dac7afff01e40be3310c6114c41f0c5fa0a701a
7
+ data.tar.gz: 0cd3051f3cca115289ef80c276c37d6a0913ac6d682ab656e71a012039cacf99f25dbf3611ca6e43425b5b9750208b218d8005f6d249a5dde3dc8b2bf3f049bf
data/AUTHENTICATION.md CHANGED
@@ -26,7 +26,7 @@ export MONITORING_CREDENTIALS=/path/to/json`
26
26
  ```ruby
27
27
  require "google/cloud/monitoring"
28
28
 
29
- client = Google::Cloud::Monitoring.new
29
+ client = Google::Cloud::Monitoring::AlertPolicy.new
30
30
  ```
31
31
 
32
32
  ## Project and Credential Lookup
@@ -41,7 +41,7 @@ code.
41
41
  1. Specify project ID in method arguments
42
42
  2. Specify project ID in configuration
43
43
  3. Discover project ID in environment variables
44
- 4. Discover GCE project ID
44
+ 4. Discover GCP project ID
45
45
  5. Discover project ID in credentials JSON
46
46
 
47
47
  **Credentials** are discovered in the following order:
@@ -51,36 +51,14 @@ code.
51
51
  3. Discover credentials path in environment variables
52
52
  4. Discover credentials JSON in environment variables
53
53
  5. Discover credentials file in the Cloud SDK's path
54
- 6. Discover GCE credentials
54
+ 6. Discover GCP credentials
55
55
 
56
56
  ### Google Cloud Platform environments
57
57
 
58
- While running on Google Cloud Platform environments such as Google Compute
59
- Engine, Google App Engine and Google Kubernetes Engine, no extra work is needed.
60
- The **Project ID** and **Credentials** and are discovered automatically. Code
61
- should be written as if already authenticated. Just be sure when you [set up the
62
- GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
63
- access. For example:
64
-
65
- * **All APIs**
66
- * `https://www.googleapis.com/auth/cloud-platform`
67
- * `https://www.googleapis.com/auth/cloud-platform.read-only`
68
- * **BigQuery**
69
- * `https://www.googleapis.com/auth/bigquery`
70
- * `https://www.googleapis.com/auth/bigquery.insertdata`
71
- * **Compute Engine**
72
- * `https://www.googleapis.com/auth/compute`
73
- * **Datastore**
74
- * `https://www.googleapis.com/auth/datastore`
75
- * `https://www.googleapis.com/auth/userinfo.email`
76
- * **DNS**
77
- * `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
78
- * **Pub/Sub**
79
- * `https://www.googleapis.com/auth/pubsub`
80
- * **Storage**
81
- * `https://www.googleapis.com/auth/devstorage.full_control`
82
- * `https://www.googleapis.com/auth/devstorage.read_only`
83
- * `https://www.googleapis.com/auth/devstorage.read_write`
58
+ When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
59
+ Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
60
+ (GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
61
+ automatically. Code should be written as if already authenticated.
84
62
 
85
63
  ### Environment Variables
86
64
 
@@ -112,7 +90,7 @@ require "google/cloud/monitoring"
112
90
  ENV["MONITORING_PROJECT"] = "my-project-id"
113
91
  ENV["MONITORING_CREDENTIALS"] = "path/to/keyfile.json"
114
92
 
115
- client = Google::Cloud::Monitoring.new
93
+ client = Google::Cloud::Monitoring::AlertPolicy.new
116
94
  ```
117
95
 
118
96
  ### Configuration
@@ -127,7 +105,7 @@ Google::Cloud::Monitoring.configure do |config|
127
105
  config.credentials = "path/to/keyfile.json"
128
106
  end
129
107
 
130
- client = Google::Cloud::Monitoring.new
108
+ client = Google::Cloud::Monitoring::AlertPolicy.new
131
109
  ```
132
110
 
133
111
  ### Cloud SDK
data/README.md CHANGED
@@ -82,11 +82,11 @@ end
82
82
 
83
83
  ## Supported Ruby Versions
84
84
 
85
- This library is supported on Ruby 2.3+.
85
+ This library is supported on Ruby 2.4+.
86
86
 
87
87
  Google provides official support for Ruby versions that are actively supported
88
88
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
89
- in security maintenance, and not end of life. Currently, this means Ruby 2.3
89
+ in security maintenance, and not end of life. Currently, this means Ruby 2.4
90
90
  and later. Older versions of Ruby _may_ still work, but are unsupported and not
91
91
  recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
92
92
  about the Ruby support schedule.
@@ -40,7 +40,8 @@ module Google
40
40
  #
41
41
  # * For a `GAUGE` metric, the `startTime` value is technically optional; if
42
42
  # no value is specified, the start time defaults to the value of the
43
- # end time, and the interval represents a single point in time. Such an
43
+ # end time, and the interval represents a single point in time. If both
44
+ # start and end times are specified, they must be identical. Such an
44
45
  # interval is valid only for `GAUGE` metrics, which are point-in-time
45
46
  # measurements.
46
47
  #
@@ -20,13 +20,14 @@ module Google
20
20
  # @!attribute [rw] interval
21
21
  # @return [Google::Monitoring::V3::TimeInterval]
22
22
  # The time interval to which the data point applies. For `GAUGE` metrics,
23
- # only the end time of the interval is used. For `DELTA` metrics, the start
24
- # and end time should specify a non-zero interval, with subsequent points
25
- # specifying contiguous and non-overlapping intervals. For `CUMULATIVE`
26
- # metrics, the start and end time should specify a non-zero interval, with
27
- # subsequent points specifying the same start time and increasing end times,
28
- # until an event resets the cumulative value to zero and sets a new start
29
- # time for the following points.
23
+ # the start time is optional, but if it is supplied, it must equal the end
24
+ # time. For `DELTA` metrics, the start and end time should specify a
25
+ # non-zero interval, with subsequent points specifying contiguous and
26
+ # non-overlapping intervals. For `CUMULATIVE` metrics, the start and end
27
+ # time should specify a non-zero interval, with subsequent points specifying
28
+ # the same start time and increasing end times, until an event resets the
29
+ # cumulative value to zero and sets a new start time for the following
30
+ # points.
30
31
  # @!attribute [rw] value
31
32
  # @return [Google::Monitoring::V3::TypedValue]
32
33
  # The value of the data point.
@@ -130,6 +130,12 @@ module Google
130
130
  # If this field is specified, enough regions must be provided to include a
131
131
  # minimum of 3 locations. Not specifying this field will result in Uptime
132
132
  # checks running from all available regions.
133
+ # @!attribute [rw] is_internal
134
+ # @return [true, false]
135
+ # If this is `true`, then checks are made only from the 'internal_checkers'.
136
+ # If it is `false`, then checks are made only from the 'selected_regions'.
137
+ # It is an error to provide 'selected_regions' when is_internal is `true`,
138
+ # or to provide 'internal_checkers' when is_internal is `false`.
133
139
  # @!attribute [rw] internal_checkers
134
140
  # @return [Array<Google::Monitoring::V3::InternalChecker>]
135
141
  # The internal checkers that this check will egress from. If `is_internal` is
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Monitoring
19
- VERSION = "0.32.0".freeze
19
+ VERSION = "0.33.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -27,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
27
27
  optional :timeout, :message, 8, "google.protobuf.Duration"
28
28
  repeated :content_matchers, :message, 9, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher"
29
29
  repeated :selected_regions, :enum, 10, "google.monitoring.v3.UptimeCheckRegion"
30
+ optional :is_internal, :bool, 15
30
31
  repeated :internal_checkers, :message, 14, "google.monitoring.v3.InternalChecker"
31
32
  oneof :resource do
32
33
  optional :monitored_resource, :message, 3, "google.api.MonitoredResource"
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.32.0
4
+ version: 0.33.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: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: googleapis-common-protos-types
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,19 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubocop
70
+ name: google-style
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.64.0
75
+ version: 1.24.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.64.0
82
+ version: 1.24.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -189,14 +189,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - ">="
191
191
  - !ruby/object:Gem::Version
192
- version: 2.0.0
192
+ version: '2.4'
193
193
  required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
195
  - - ">="
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  requirements: []
199
- rubygems_version: 3.0.4
199
+ rubygems_version: 3.0.6
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: API Client library for Stackdriver Monitoring API