google-cloud-monitoring-dashboard-v1 0.5.1 → 0.6.3
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/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/client.rb +56 -54
- data/lib/google/cloud/monitoring/dashboard/v1/dashboards_service/paths.rb +17 -0
- data/lib/google/cloud/monitoring/dashboard/v1/version.rb +1 -1
- data/lib/google/monitoring/dashboard/v1/alertchart_pb.rb +26 -0
- data/lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb +2 -0
- data/lib/google/monitoring/dashboard/v1/dashboards_service_services_pb.rb +3 -7
- data/lib/google/monitoring/dashboard/v1/widget_pb.rb +2 -0
- data/proto_docs/google/api/distribution.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/monitoring/dashboard/v1/alertchart.rb +39 -0
- data/proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb +8 -0
- data/proto_docs/google/monitoring/dashboard/v1/metrics.rb +2 -3
- data/proto_docs/google/monitoring/dashboard/v1/widget.rb +3 -0
- data/proto_docs/google/monitoring/dashboard/v1/xychart.rb +4 -4
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b6168e7f56971d6146a74b97d7f9faccc2847e2c8de06b90a716b733510f77b
|
4
|
+
data.tar.gz: 6b1681608973ea9da1401179dd6e0c60cfbc4b3da856faef5e49ace2bdadfc4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3726675afbe1e08e6419e8a972d117eb46e5540eb9028bd470aadddaa7d2e118540c1b91b6ff4f708e4f1850717d11a92240cb60fec8496a73a23094c0f61189
|
7
|
+
data.tar.gz: 35af0ff4db699f86375c1a59c17e4614be06e41ab2d6fa7a33451b1c1f947d17b8cc9c8a2ecf782167f8dded95a5716a457292a675adf17f4cb826be62cbf3fa
|
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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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
|
86
|
-
environment
|
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
|
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 =
|
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
|
|
@@ -43,13 +43,12 @@ module Google
|
|
43
43
|
# See {::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client::Configuration}
|
44
44
|
# for a description of the configuration fields.
|
45
45
|
#
|
46
|
-
#
|
46
|
+
# @example
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
# end
|
48
|
+
# # Modify the configuration for all DashboardsService clients
|
49
|
+
# ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
|
+
# end
|
53
52
|
#
|
54
53
|
# @yield [config] Configure the Client client.
|
55
54
|
# @yieldparam config [Client::Configuration]
|
@@ -69,10 +68,7 @@ module Google
|
|
69
68
|
|
70
69
|
default_config.timeout = 30.0
|
71
70
|
default_config.retry_policy = {
|
72
|
-
initial_delay: 1.0,
|
73
|
-
max_delay: 10.0,
|
74
|
-
multiplier: 1.3,
|
75
|
-
retry_codes: [14, 2]
|
71
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 2]
|
76
72
|
}
|
77
73
|
|
78
74
|
default_config.rpcs.create_dashboard.timeout = 30.0
|
@@ -110,19 +106,15 @@ module Google
|
|
110
106
|
##
|
111
107
|
# Create a new DashboardsService client object.
|
112
108
|
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
# To create a new DashboardsService client with the default
|
116
|
-
# configuration:
|
117
|
-
#
|
118
|
-
# client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
|
109
|
+
# @example
|
119
110
|
#
|
120
|
-
#
|
121
|
-
#
|
111
|
+
# # Create a client using the default configuration
|
112
|
+
# client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
|
122
113
|
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
114
|
+
# # Create a client using a custom configuration
|
115
|
+
# client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new do |config|
|
116
|
+
# config.timeout = 10.0
|
117
|
+
# end
|
126
118
|
#
|
127
119
|
# @yield [config] Configure the DashboardsService client.
|
128
120
|
# @yieldparam config [Client::Configuration]
|
@@ -142,14 +134,13 @@ module Google
|
|
142
134
|
|
143
135
|
# Create credentials
|
144
136
|
credentials = @config.credentials
|
145
|
-
# Use self-signed JWT if the
|
137
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
146
138
|
# but only if the default endpoint does not have a region prefix.
|
147
|
-
enable_self_signed_jwt = @config.
|
148
|
-
@config.endpoint == Client.configure.endpoint &&
|
139
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
149
140
|
!@config.endpoint.split(".").first.include?("-")
|
150
141
|
credentials ||= Credentials.default scope: @config.scope,
|
151
142
|
enable_self_signed_jwt: enable_self_signed_jwt
|
152
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
143
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
153
144
|
credentials = Credentials.new credentials, scope: @config.scope
|
154
145
|
end
|
155
146
|
@quota_project_id = @config.quota_project
|
@@ -167,12 +158,8 @@ module Google
|
|
167
158
|
# Service calls
|
168
159
|
|
169
160
|
##
|
170
|
-
# Creates a new custom dashboard. For examples on how you can use this API to
|
171
|
-
# create
|
172
|
-
# API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the
|
173
|
-
# `monitoring.dashboards.create` permission on the specified project. For
|
174
|
-
# more information about permissions, see [Cloud Identity and Access
|
175
|
-
# Management](https://cloud.google.com/iam).
|
161
|
+
# Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
|
162
|
+
# This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
|
176
163
|
#
|
177
164
|
# @overload create_dashboard(request, options = nil)
|
178
165
|
# Pass arguments to `create_dashboard` via a request object, either of type
|
@@ -184,7 +171,7 @@ module Google
|
|
184
171
|
# @param options [::Gapic::CallOptions, ::Hash]
|
185
172
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
186
173
|
#
|
187
|
-
# @overload create_dashboard(parent: nil, dashboard: nil)
|
174
|
+
# @overload create_dashboard(parent: nil, dashboard: nil, validate_only: nil)
|
188
175
|
# Pass arguments to `create_dashboard` via keyword arguments. Note that at
|
189
176
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
190
177
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -197,6 +184,9 @@ module Google
|
|
197
184
|
# The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
|
198
185
|
# @param dashboard [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard, ::Hash]
|
199
186
|
# Required. The initial dashboard specification.
|
187
|
+
# @param validate_only [::Boolean]
|
188
|
+
# If set, validate the request and preview the review, but do not actually
|
189
|
+
# save it.
|
200
190
|
#
|
201
191
|
# @yield [response, operation] Access the result along with the RPC operation
|
202
192
|
# @yieldparam response [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
|
@@ -232,7 +222,9 @@ module Google
|
|
232
222
|
options.apply_defaults timeout: @config.rpcs.create_dashboard.timeout,
|
233
223
|
metadata: metadata,
|
234
224
|
retry_policy: @config.rpcs.create_dashboard.retry_policy
|
235
|
-
|
225
|
+
|
226
|
+
options.apply_defaults timeout: @config.timeout,
|
227
|
+
metadata: @config.metadata,
|
236
228
|
retry_policy: @config.retry_policy
|
237
229
|
|
238
230
|
@dashboards_service_stub.call_rpc :create_dashboard, request, options: options do |response, operation|
|
@@ -311,7 +303,9 @@ module Google
|
|
311
303
|
options.apply_defaults timeout: @config.rpcs.list_dashboards.timeout,
|
312
304
|
metadata: metadata,
|
313
305
|
retry_policy: @config.rpcs.list_dashboards.retry_policy
|
314
|
-
|
306
|
+
|
307
|
+
options.apply_defaults timeout: @config.timeout,
|
308
|
+
metadata: @config.metadata,
|
315
309
|
retry_policy: @config.retry_policy
|
316
310
|
|
317
311
|
@dashboards_service_stub.call_rpc :list_dashboards, request, options: options do |response, operation|
|
@@ -386,7 +380,9 @@ module Google
|
|
386
380
|
options.apply_defaults timeout: @config.rpcs.get_dashboard.timeout,
|
387
381
|
metadata: metadata,
|
388
382
|
retry_policy: @config.rpcs.get_dashboard.retry_policy
|
389
|
-
|
383
|
+
|
384
|
+
options.apply_defaults timeout: @config.timeout,
|
385
|
+
metadata: @config.metadata,
|
390
386
|
retry_policy: @config.retry_policy
|
391
387
|
|
392
388
|
@dashboards_service_stub.call_rpc :get_dashboard, request, options: options do |response, operation|
|
@@ -458,7 +454,9 @@ module Google
|
|
458
454
|
options.apply_defaults timeout: @config.rpcs.delete_dashboard.timeout,
|
459
455
|
metadata: metadata,
|
460
456
|
retry_policy: @config.rpcs.delete_dashboard.retry_policy
|
461
|
-
|
457
|
+
|
458
|
+
options.apply_defaults timeout: @config.timeout,
|
459
|
+
metadata: @config.metadata,
|
462
460
|
retry_policy: @config.retry_policy
|
463
461
|
|
464
462
|
@dashboards_service_stub.call_rpc :delete_dashboard, request, options: options do |response, operation|
|
@@ -486,13 +484,16 @@ module Google
|
|
486
484
|
# @param options [::Gapic::CallOptions, ::Hash]
|
487
485
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
488
486
|
#
|
489
|
-
# @overload update_dashboard(dashboard: nil)
|
487
|
+
# @overload update_dashboard(dashboard: nil, validate_only: nil)
|
490
488
|
# Pass arguments to `update_dashboard` via keyword arguments. Note that at
|
491
489
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
492
490
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
493
491
|
#
|
494
492
|
# @param dashboard [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard, ::Hash]
|
495
493
|
# Required. The dashboard that will replace the existing dashboard.
|
494
|
+
# @param validate_only [::Boolean]
|
495
|
+
# If set, validate the request and preview the review, but do not actually
|
496
|
+
# save it.
|
496
497
|
#
|
497
498
|
# @yield [response, operation] Access the result along with the RPC operation
|
498
499
|
# @yieldparam response [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
|
@@ -528,7 +529,9 @@ module Google
|
|
528
529
|
options.apply_defaults timeout: @config.rpcs.update_dashboard.timeout,
|
529
530
|
metadata: metadata,
|
530
531
|
retry_policy: @config.rpcs.update_dashboard.retry_policy
|
531
|
-
|
532
|
+
|
533
|
+
options.apply_defaults timeout: @config.timeout,
|
534
|
+
metadata: @config.metadata,
|
532
535
|
retry_policy: @config.retry_policy
|
533
536
|
|
534
537
|
@dashboards_service_stub.call_rpc :update_dashboard, request, options: options do |response, operation|
|
@@ -552,22 +555,21 @@ module Google
|
|
552
555
|
# Configuration can be applied globally to all clients, or to a single client
|
553
556
|
# on construction.
|
554
557
|
#
|
555
|
-
#
|
556
|
-
#
|
557
|
-
#
|
558
|
-
# to 20 seconds,
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
568
|
-
#
|
569
|
-
#
|
570
|
-
# end
|
558
|
+
# @example
|
559
|
+
#
|
560
|
+
# # Modify the global config, setting the timeout for
|
561
|
+
# # create_dashboard to 20 seconds,
|
562
|
+
# # and all remaining timeouts to 10 seconds.
|
563
|
+
# ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.configure do |config|
|
564
|
+
# config.timeout = 10.0
|
565
|
+
# config.rpcs.create_dashboard.timeout = 20.0
|
566
|
+
# end
|
567
|
+
#
|
568
|
+
# # Apply the above configuration only to a new client.
|
569
|
+
# client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new do |config|
|
570
|
+
# config.timeout = 10.0
|
571
|
+
# config.rpcs.create_dashboard.timeout = 20.0
|
572
|
+
# end
|
571
573
|
#
|
572
574
|
# @!attribute [rw] endpoint
|
573
575
|
# The hostname or hostname:port of the service endpoint.
|
@@ -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
|
#
|
@@ -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
|
@@ -29,18 +29,14 @@ module Google
|
|
29
29
|
# widgets in a specific layout.
|
30
30
|
class Service
|
31
31
|
|
32
|
-
include
|
32
|
+
include GRPC::GenericService
|
33
33
|
|
34
34
|
self.marshal_class_method = :encode
|
35
35
|
self.unmarshal_class_method = :decode
|
36
36
|
self.service_name = 'google.monitoring.dashboard.v1.DashboardsService'
|
37
37
|
|
38
|
-
# Creates a new custom dashboard. For examples on how you can use this API to
|
39
|
-
# create
|
40
|
-
# API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the
|
41
|
-
# `monitoring.dashboards.create` permission on the specified project. For
|
42
|
-
# more information about permissions, see [Cloud Identity and Access
|
43
|
-
# Management](https://cloud.google.com/iam).
|
38
|
+
# Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard).
|
39
|
+
# This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).
|
44
40
|
rpc :CreateDashboard, ::Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest, ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
|
45
41
|
# Lists the existing dashboards.
|
46
42
|
#
|
@@ -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
|
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
|
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
|
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
|
@@ -51,9 +51,8 @@ module Google
|
|
51
51
|
# method.
|
52
52
|
# @!attribute [rw] filter
|
53
53
|
# @return [::String]
|
54
|
-
# Required. The [monitoring
|
55
|
-
#
|
56
|
-
# the metric types, resources, and projects to query.
|
54
|
+
# Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
|
55
|
+
# that identifies the metric types, resources, and projects to query.
|
57
56
|
# @!attribute [rw] aggregation
|
58
57
|
# @return [::Google::Cloud::Monitoring::Dashboard::V1::Aggregation]
|
59
58
|
# By default, the raw time series data is returned.
|
@@ -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
|
@@ -64,10 +64,10 @@ module Google
|
|
64
64
|
# which will resolve to the label's value.
|
65
65
|
# @!attribute [rw] min_alignment_period
|
66
66
|
# @return [::Google::Protobuf::Duration]
|
67
|
-
# Optional. The lower bound on data point frequency for this data set,
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
67
|
+
# Optional. The lower bound on data point frequency for this data set, implemented by
|
68
|
+
# specifying the minimum alignment period to use in a time series query
|
69
|
+
# For example, if the data is published once every 10 minutes, the
|
70
|
+
# `min_alignment_period` should be at least 10 minutes. It would not
|
71
71
|
# make sense to fetch and align data at one minute intervals.
|
72
72
|
class DataSet
|
73
73
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-dashboard-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.3
|
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-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- lib/google/cloud/monitoring/dashboard/v1/dashboards_service/credentials.rb
|
179
179
|
- lib/google/cloud/monitoring/dashboard/v1/dashboards_service/paths.rb
|
180
180
|
- lib/google/cloud/monitoring/dashboard/v1/version.rb
|
181
|
+
- lib/google/monitoring/dashboard/v1/alertchart_pb.rb
|
181
182
|
- lib/google/monitoring/dashboard/v1/common_pb.rb
|
182
183
|
- lib/google/monitoring/dashboard/v1/dashboard_pb.rb
|
183
184
|
- lib/google/monitoring/dashboard/v1/dashboards_service_pb.rb
|
@@ -194,6 +195,7 @@ files:
|
|
194
195
|
- proto_docs/google/api/distribution.rb
|
195
196
|
- proto_docs/google/api/field_behavior.rb
|
196
197
|
- proto_docs/google/api/resource.rb
|
198
|
+
- proto_docs/google/monitoring/dashboard/v1/alertchart.rb
|
197
199
|
- proto_docs/google/monitoring/dashboard/v1/common.rb
|
198
200
|
- proto_docs/google/monitoring/dashboard/v1/dashboard.rb
|
199
201
|
- proto_docs/google/monitoring/dashboard/v1/dashboards_service.rb
|