google-cloud-monitoring-dashboard-v1 0.5.0 → 0.6.2

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
  SHA256:
3
- metadata.gz: edf124aa6639e6dce4e181e6318f42380824709f3fc704cd7049bc26b5bffb1b
4
- data.tar.gz: c78e5315883cd180c0c30922a9bc624ddb4c5cd3123fffdd6a598462e1d9683c
3
+ metadata.gz: 8738bc92d8f84c050a3932c6ef0baf8d065aa9c830367e2df76d2ed456bc7137
4
+ data.tar.gz: 6974c48618cd7b7f529c0397a03023eeea9878e1a429d36a2ed6a79f68208f76
5
5
  SHA512:
6
- metadata.gz: 45f40e6eec546e1ab0ae5b53258ec459ba532ed990f1de4c97985e7175ab943785eb11ee8a49585d98777b6430f97476654bb211222b7227fe100b7be9879043
7
- data.tar.gz: ebf8935b0f4424023e7d68e282b6a55a6af83eb1cb867b695978c8ea6e22c223b5224950bb64ca4b56eba864035137d5bdda1e6c2bb23ebe249dcb6917b2badd
6
+ metadata.gz: 0a4d65a5d26a840d56a6087504839b6a60e1375b0523a77a9f29220ac26418f43b14302446a62b9380a9d4987736ca1aa8b524a804176426b988397704c187a2
7
+ data.tar.gz: 8a2bc4b645872f6dca4169b4cbe10495d78ee0bb975c5aed01606d8f52ce62a01e58182c05b01c194009c25ea862bbf4aba8913249062414addd37ea27a27314
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-monitoring-dashboard-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Credentials}):
68
68
 
69
- 1. `MONITORING_DASHBOARD_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `MONITORING_DASHBOARD_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `MONITORING_DASHBOARD_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `MONITORING_DASHBOARD_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/monitoring/dashboard/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.n
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/monitoring/dashboard/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.n
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/monitoring/dashboard/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/monitoring/dashboard/v1"
34
34
 
35
35
  client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_dashboard request
38
38
  ```
39
39
 
@@ -69,10 +69,7 @@ module Google
69
69
 
70
70
  default_config.timeout = 30.0
71
71
  default_config.retry_policy = {
72
- initial_delay: 1.0,
73
- max_delay: 10.0,
74
- multiplier: 1.3,
75
- retry_codes: [14, 2]
72
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 2]
76
73
  }
77
74
 
78
75
  default_config.rpcs.create_dashboard.timeout = 30.0
@@ -149,7 +146,7 @@ module Google
149
146
  !@config.endpoint.split(".").first.include?("-")
150
147
  credentials ||= Credentials.default scope: @config.scope,
151
148
  enable_self_signed_jwt: enable_self_signed_jwt
152
- if credentials.is_a?(String) || credentials.is_a?(Hash)
149
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
153
150
  credentials = Credentials.new credentials, scope: @config.scope
154
151
  end
155
152
  @quota_project_id = @config.quota_project
@@ -180,7 +177,7 @@ module Google
180
177
  # @param options [::Gapic::CallOptions, ::Hash]
181
178
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
182
179
  #
183
- # @overload create_dashboard(parent: nil, dashboard: nil)
180
+ # @overload create_dashboard(parent: nil, dashboard: nil, validate_only: nil)
184
181
  # Pass arguments to `create_dashboard` via keyword arguments. Note that at
185
182
  # least one keyword argument is required. To specify no parameters, or to keep all
186
183
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -193,6 +190,9 @@ module Google
193
190
  # The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
194
191
  # @param dashboard [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard, ::Hash]
195
192
  # Required. The initial dashboard specification.
193
+ # @param validate_only [::Boolean]
194
+ # If set, validate the request and preview the review, but do not actually
195
+ # save it.
196
196
  #
197
197
  # @yield [response, operation] Access the result along with the RPC operation
198
198
  # @yieldparam response [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
@@ -482,13 +482,16 @@ module Google
482
482
  # @param options [::Gapic::CallOptions, ::Hash]
483
483
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
484
484
  #
485
- # @overload update_dashboard(dashboard: nil)
485
+ # @overload update_dashboard(dashboard: nil, validate_only: nil)
486
486
  # Pass arguments to `update_dashboard` via keyword arguments. Note that at
487
487
  # least one keyword argument is required. To specify no parameters, or to keep all
488
488
  # the default parameter values, pass an empty Hash as a request object (see above).
489
489
  #
490
490
  # @param dashboard [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard, ::Hash]
491
491
  # Required. The dashboard that will replace the existing dashboard.
492
+ # @param validate_only [::Boolean]
493
+ # If set, validate the request and preview the review, but do not actually
494
+ # save it.
492
495
  #
493
496
  # @yield [response, operation] Access the result along with the RPC operation
494
497
  # @yieldparam response [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
@@ -25,6 +25,23 @@ module Google
25
25
  module DashboardsService
26
26
  # Path helper methods for the DashboardsService API.
27
27
  module Paths
28
+ ##
29
+ # Create a fully-qualified AlertPolicy resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/alertPolicies/{alert_policy}`
34
+ #
35
+ # @param project [String]
36
+ # @param alert_policy [String]
37
+ #
38
+ # @return [::String]
39
+ def alert_policy_path project:, alert_policy:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+
42
+ "projects/#{project}/alertPolicies/#{alert_policy}"
43
+ end
44
+
28
45
  ##
29
46
  # Create a fully-qualified Dashboard resource string.
30
47
  #
@@ -22,7 +22,7 @@ module Google
22
22
  module Monitoring
23
23
  module Dashboard
24
24
  module V1
25
- VERSION = "0.5.0"
25
+ VERSION = "0.6.2"
26
26
  end
27
27
  end
28
28
  end
@@ -0,0 +1,26 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/monitoring/dashboard/v1/alertchart.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/monitoring/dashboard/v1/alertchart.proto", :syntax => :proto3) do
10
+ add_message "google.monitoring.dashboard.v1.AlertChart" do
11
+ optional :name, :string, 1
12
+ end
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Cloud
18
+ module Monitoring
19
+ module Dashboard
20
+ module V1
21
+ AlertChart = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.AlertChart").msgclass
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_message "google.monitoring.dashboard.v1.CreateDashboardRequest" do
16
16
  optional :parent, :string, 1
17
17
  optional :dashboard, :message, 2, "google.monitoring.dashboard.v1.Dashboard"
18
+ optional :validate_only, :bool, 3
18
19
  end
19
20
  add_message "google.monitoring.dashboard.v1.ListDashboardsRequest" do
20
21
  optional :parent, :string, 1
@@ -33,6 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
33
34
  end
34
35
  add_message "google.monitoring.dashboard.v1.UpdateDashboardRequest" do
35
36
  optional :dashboard, :message, 1, "google.monitoring.dashboard.v1.Dashboard"
37
+ optional :validate_only, :bool, 3
36
38
  end
37
39
  end
38
40
  end
@@ -4,6 +4,7 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/field_behavior_pb'
7
+ require 'google/monitoring/dashboard/v1/alertchart_pb'
7
8
  require 'google/monitoring/dashboard/v1/scorecard_pb'
8
9
  require 'google/monitoring/dashboard/v1/text_pb'
9
10
  require 'google/monitoring/dashboard/v1/xychart_pb'
@@ -17,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  optional :scorecard, :message, 3, "google.monitoring.dashboard.v1.Scorecard"
18
19
  optional :text, :message, 4, "google.monitoring.dashboard.v1.Text"
19
20
  optional :blank, :message, 5, "google.protobuf.Empty"
21
+ optional :alert_chart, :message, 7, "google.monitoring.dashboard.v1.AlertChart"
20
22
  end
21
23
  end
22
24
  end
@@ -49,7 +49,7 @@ module Google
49
49
  #
50
50
  # Sum[i=1..n]((x_i - mean)^2)
51
51
  #
52
- # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
52
+ # Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
53
53
  # describes Welford's method for accumulating this sum in one pass.
54
54
  #
55
55
  # If `count` is zero then this field must be zero.
@@ -207,7 +207,7 @@ module Google
207
207
  # @return [::Array<::Google::Protobuf::Any>]
208
208
  # Contextual information about the example value. Examples are:
209
209
  #
210
- # Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
210
+ # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
211
211
  #
212
212
  # Literal string: type.googleapis.com/google.protobuf.StringValue
213
213
  #
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Monitoring
23
+ module Dashboard
24
+ module V1
25
+ # A chart that displays alert policy data.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Required. The resource name of the alert policy. The format is:
29
+ #
30
+ # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
31
+ class AlertChart
32
+ include ::Google::Protobuf::MessageExts
33
+ extend ::Google::Protobuf::MessageExts::ClassMethods
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -33,6 +33,10 @@ module Google
33
33
  # @!attribute [rw] dashboard
34
34
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
35
35
  # Required. The initial dashboard specification.
36
+ # @!attribute [rw] validate_only
37
+ # @return [::Boolean]
38
+ # If set, validate the request and preview the review, but do not actually
39
+ # save it.
36
40
  class CreateDashboardRequest
37
41
  include ::Google::Protobuf::MessageExts
38
42
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -100,6 +104,10 @@ module Google
100
104
  # @!attribute [rw] dashboard
101
105
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
102
106
  # Required. The dashboard that will replace the existing dashboard.
107
+ # @!attribute [rw] validate_only
108
+ # @return [::Boolean]
109
+ # If set, validate the request and preview the review, but do not actually
110
+ # save it.
103
111
  class UpdateDashboardRequest
104
112
  include ::Google::Protobuf::MessageExts
105
113
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -39,6 +39,9 @@ module Google
39
39
  # @!attribute [rw] blank
40
40
  # @return [::Google::Protobuf::Empty]
41
41
  # A blank space.
42
+ # @!attribute [rw] alert_chart
43
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::AlertChart]
44
+ # A chart of alert policy data.
42
45
  class Widget
43
46
  include ::Google::Protobuf::MessageExts
44
47
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring-dashboard-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.2
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-03-30 00:00:00.000000000 Z
11
+ date: 2021-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.4'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.4'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -172,6 +178,7 @@ files:
172
178
  - lib/google/cloud/monitoring/dashboard/v1/dashboards_service/credentials.rb
173
179
  - lib/google/cloud/monitoring/dashboard/v1/dashboards_service/paths.rb
174
180
  - lib/google/cloud/monitoring/dashboard/v1/version.rb
181
+ - lib/google/monitoring/dashboard/v1/alertchart_pb.rb
175
182
  - lib/google/monitoring/dashboard/v1/common_pb.rb
176
183
  - lib/google/monitoring/dashboard/v1/dashboard_pb.rb
177
184
  - lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb
@@ -188,6 +195,7 @@ files:
188
195
  - proto_docs/google/api/distribution.rb
189
196
  - proto_docs/google/api/field_behavior.rb
190
197
  - proto_docs/google/api/resource.rb
198
+ - proto_docs/google/monitoring/dashboard/v1/alertchart.rb
191
199
  - proto_docs/google/monitoring/dashboard/v1/common.rb
192
200
  - proto_docs/google/monitoring/dashboard/v1/dashboard.rb
193
201
  - proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb
@@ -221,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
229
  - !ruby/object:Gem::Version
222
230
  version: '0'
223
231
  requirements: []
224
- rubygems_version: 3.2.13
232
+ rubygems_version: 3.2.17
225
233
  signing_key:
226
234
  specification_version: 4
227
235
  summary: API Client library for the Cloud Monitoring Dashboards V1 API