google-cloud-monitoring-dashboard-v1 0.9.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,347 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ require "google/monitoring/dashboard/v1/dashboards_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Monitoring
24
+ module Dashboard
25
+ module V1
26
+ module DashboardsService
27
+ module Rest
28
+ ##
29
+ # REST service stub for the DashboardsService service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ def initialize endpoint:, credentials:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
40
+ numeric_enums: true,
41
+ raise_faraday_errors: false
42
+ end
43
+
44
+ ##
45
+ # Baseline implementation for the create_dashboard REST call
46
+ #
47
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest]
48
+ # A request object representing the call parameters. Required.
49
+ # @param options [::Gapic::CallOptions]
50
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
51
+ #
52
+ # @yield [result, operation] Access the result along with the TransportOperation object
53
+ # @yieldparam result [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
54
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
55
+ #
56
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
57
+ # A result object deserialized from the server's reply
58
+ def create_dashboard request_pb, options = nil
59
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
60
+
61
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_dashboard_request request_pb
62
+ query_string_params = if query_string_params.any?
63
+ query_string_params.to_h { |p| p.split("=", 2) }
64
+ else
65
+ {}
66
+ end
67
+
68
+ response = @client_stub.make_http_request(
69
+ verb,
70
+ uri: uri,
71
+ body: body || "",
72
+ params: query_string_params,
73
+ options: options
74
+ )
75
+ operation = ::Gapic::Rest::TransportOperation.new response
76
+ result = ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard.decode_json response.body, ignore_unknown_fields: true
77
+
78
+ yield result, operation if block_given?
79
+ result
80
+ end
81
+
82
+ ##
83
+ # Baseline implementation for the list_dashboards REST call
84
+ #
85
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsRequest]
86
+ # A request object representing the call parameters. Required.
87
+ # @param options [::Gapic::CallOptions]
88
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
89
+ #
90
+ # @yield [result, operation] Access the result along with the TransportOperation object
91
+ # @yieldparam result [::Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsResponse]
92
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
93
+ #
94
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsResponse]
95
+ # A result object deserialized from the server's reply
96
+ def list_dashboards request_pb, options = nil
97
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
98
+
99
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_dashboards_request request_pb
100
+ query_string_params = if query_string_params.any?
101
+ query_string_params.to_h { |p| p.split("=", 2) }
102
+ else
103
+ {}
104
+ end
105
+
106
+ response = @client_stub.make_http_request(
107
+ verb,
108
+ uri: uri,
109
+ body: body || "",
110
+ params: query_string_params,
111
+ options: options
112
+ )
113
+ operation = ::Gapic::Rest::TransportOperation.new response
114
+ result = ::Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsResponse.decode_json response.body, ignore_unknown_fields: true
115
+
116
+ yield result, operation if block_given?
117
+ result
118
+ end
119
+
120
+ ##
121
+ # Baseline implementation for the get_dashboard REST call
122
+ #
123
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::GetDashboardRequest]
124
+ # A request object representing the call parameters. Required.
125
+ # @param options [::Gapic::CallOptions]
126
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
+ #
128
+ # @yield [result, operation] Access the result along with the TransportOperation object
129
+ # @yieldparam result [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
130
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
131
+ #
132
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
133
+ # A result object deserialized from the server's reply
134
+ def get_dashboard request_pb, options = nil
135
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
136
+
137
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_dashboard_request request_pb
138
+ query_string_params = if query_string_params.any?
139
+ query_string_params.to_h { |p| p.split("=", 2) }
140
+ else
141
+ {}
142
+ end
143
+
144
+ response = @client_stub.make_http_request(
145
+ verb,
146
+ uri: uri,
147
+ body: body || "",
148
+ params: query_string_params,
149
+ options: options
150
+ )
151
+ operation = ::Gapic::Rest::TransportOperation.new response
152
+ result = ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard.decode_json response.body, ignore_unknown_fields: true
153
+
154
+ yield result, operation if block_given?
155
+ result
156
+ end
157
+
158
+ ##
159
+ # Baseline implementation for the delete_dashboard REST call
160
+ #
161
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::DeleteDashboardRequest]
162
+ # A request object representing the call parameters. Required.
163
+ # @param options [::Gapic::CallOptions]
164
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
165
+ #
166
+ # @yield [result, operation] Access the result along with the TransportOperation object
167
+ # @yieldparam result [::Google::Protobuf::Empty]
168
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
169
+ #
170
+ # @return [::Google::Protobuf::Empty]
171
+ # A result object deserialized from the server's reply
172
+ def delete_dashboard request_pb, options = nil
173
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
174
+
175
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_dashboard_request request_pb
176
+ query_string_params = if query_string_params.any?
177
+ query_string_params.to_h { |p| p.split("=", 2) }
178
+ else
179
+ {}
180
+ end
181
+
182
+ response = @client_stub.make_http_request(
183
+ verb,
184
+ uri: uri,
185
+ body: body || "",
186
+ params: query_string_params,
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
191
+
192
+ yield result, operation if block_given?
193
+ result
194
+ end
195
+
196
+ ##
197
+ # Baseline implementation for the update_dashboard REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::UpdateDashboardRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::Dashboard]
209
+ # A result object deserialized from the server's reply
210
+ def update_dashboard request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_dashboard_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split("=", 2) }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ options: options
226
+ )
227
+ operation = ::Gapic::Rest::TransportOperation.new response
228
+ result = ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard.decode_json response.body, ignore_unknown_fields: true
229
+
230
+ yield result, operation if block_given?
231
+ result
232
+ end
233
+
234
+ ##
235
+ # @private
236
+ #
237
+ # GRPC transcoding helper method for the create_dashboard REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @return [Array(String, [String, nil], Hash{String => String})]
242
+ # Uri, Body, Query string parameters
243
+ def self.transcode_create_dashboard_request request_pb
244
+ transcoder = Gapic::Rest::GrpcTranscoder.new
245
+ .with_bindings(
246
+ uri_method: :post,
247
+ uri_template: "/v1/{parent}/dashboards",
248
+ body: "dashboard",
249
+ matches: [
250
+ ["parent", %r{^projects/[^/]+/?$}, false]
251
+ ]
252
+ )
253
+ transcoder.transcode request_pb
254
+ end
255
+
256
+ ##
257
+ # @private
258
+ #
259
+ # GRPC transcoding helper method for the list_dashboards REST call
260
+ #
261
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::ListDashboardsRequest]
262
+ # A request object representing the call parameters. Required.
263
+ # @return [Array(String, [String, nil], Hash{String => String})]
264
+ # Uri, Body, Query string parameters
265
+ def self.transcode_list_dashboards_request request_pb
266
+ transcoder = Gapic::Rest::GrpcTranscoder.new
267
+ .with_bindings(
268
+ uri_method: :get,
269
+ uri_template: "/v1/{parent}/dashboards",
270
+ matches: [
271
+ ["parent", %r{^projects/[^/]+/?$}, false]
272
+ ]
273
+ )
274
+ transcoder.transcode request_pb
275
+ end
276
+
277
+ ##
278
+ # @private
279
+ #
280
+ # GRPC transcoding helper method for the get_dashboard REST call
281
+ #
282
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::GetDashboardRequest]
283
+ # A request object representing the call parameters. Required.
284
+ # @return [Array(String, [String, nil], Hash{String => String})]
285
+ # Uri, Body, Query string parameters
286
+ def self.transcode_get_dashboard_request request_pb
287
+ transcoder = Gapic::Rest::GrpcTranscoder.new
288
+ .with_bindings(
289
+ uri_method: :get,
290
+ uri_template: "/v1/{name}",
291
+ matches: [
292
+ ["name", %r{^projects/[^/]+/dashboards/[^/]+/?$}, false]
293
+ ]
294
+ )
295
+ transcoder.transcode request_pb
296
+ end
297
+
298
+ ##
299
+ # @private
300
+ #
301
+ # GRPC transcoding helper method for the delete_dashboard REST call
302
+ #
303
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::DeleteDashboardRequest]
304
+ # A request object representing the call parameters. Required.
305
+ # @return [Array(String, [String, nil], Hash{String => String})]
306
+ # Uri, Body, Query string parameters
307
+ def self.transcode_delete_dashboard_request request_pb
308
+ transcoder = Gapic::Rest::GrpcTranscoder.new
309
+ .with_bindings(
310
+ uri_method: :delete,
311
+ uri_template: "/v1/{name}",
312
+ matches: [
313
+ ["name", %r{^projects/[^/]+/dashboards/[^/]+/?$}, false]
314
+ ]
315
+ )
316
+ transcoder.transcode request_pb
317
+ end
318
+
319
+ ##
320
+ # @private
321
+ #
322
+ # GRPC transcoding helper method for the update_dashboard REST call
323
+ #
324
+ # @param request_pb [::Google::Cloud::Monitoring::Dashboard::V1::UpdateDashboardRequest]
325
+ # A request object representing the call parameters. Required.
326
+ # @return [Array(String, [String, nil], Hash{String => String})]
327
+ # Uri, Body, Query string parameters
328
+ def self.transcode_update_dashboard_request request_pb
329
+ transcoder = Gapic::Rest::GrpcTranscoder.new
330
+ .with_bindings(
331
+ uri_method: :patch,
332
+ uri_template: "/v1/{dashboard.name}",
333
+ body: "dashboard",
334
+ matches: [
335
+ ["dashboard.name", %r{^projects/[^/]+/dashboards/[^/]+/?$}, false]
336
+ ]
337
+ )
338
+ transcoder.transcode request_pb
339
+ end
340
+ end
341
+ end
342
+ end
343
+ end
344
+ end
345
+ end
346
+ end
347
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/monitoring/dashboard/v1/version"
24
+
25
+ require "google/cloud/monitoring/dashboard/v1/dashboards_service/credentials"
26
+ require "google/cloud/monitoring/dashboard/v1/dashboards_service/paths"
27
+ require "google/cloud/monitoring/dashboard/v1/dashboards_service/rest/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Monitoring
32
+ module Dashboard
33
+ module V1
34
+ ##
35
+ # Manages Stackdriver dashboards. A dashboard is an arrangement of data display
36
+ # widgets in a specific layout.
37
+ #
38
+ # To load this service and instantiate a REST client:
39
+ #
40
+ # require "google/cloud/monitoring/dashboard/v1/dashboards_service/rest"
41
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
42
+ #
43
+ module DashboardsService
44
+ # Client for the REST transport
45
+ module Rest
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
55
+ require "google/cloud/monitoring/dashboard/v1/dashboards_service/rest/helpers" if ::File.file? helper_path
@@ -25,6 +25,7 @@ require "google/cloud/monitoring/dashboard/v1/version"
25
25
  require "google/cloud/monitoring/dashboard/v1/dashboards_service/credentials"
26
26
  require "google/cloud/monitoring/dashboard/v1/dashboards_service/paths"
27
27
  require "google/cloud/monitoring/dashboard/v1/dashboards_service/client"
28
+ require "google/cloud/monitoring/dashboard/v1/dashboards_service/rest"
28
29
 
29
30
  module Google
30
31
  module Cloud
@@ -35,11 +36,16 @@ module Google
35
36
  # Manages Stackdriver dashboards. A dashboard is an arrangement of data display
36
37
  # widgets in a specific layout.
37
38
  #
38
- # To load this service and instantiate a client:
39
+ # @example Load this service and instantiate a gRPC client
39
40
  #
40
41
  # require "google/cloud/monitoring/dashboard/v1/dashboards_service"
41
42
  # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
42
43
  #
44
+ # @example Load this service and instantiate a REST client
45
+ #
46
+ # require "google/cloud/monitoring/dashboard/v1/dashboards_service/rest"
47
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
48
+ #
43
49
  module DashboardsService
44
50
  end
45
51
  end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ require "google/cloud/monitoring/dashboard/v1/dashboards_service/rest"
20
+ require "google/cloud/monitoring/dashboard/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Monitoring
25
+ module Dashboard
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/monitoring/dashboard/v1/rest"
32
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -22,7 +22,7 @@ module Google
22
22
  module Monitoring
23
23
  module Dashboard
24
24
  module V1
25
- VERSION = "0.9.1"
25
+ VERSION = "0.11.0"
26
26
  end
27
27
  end
28
28
  end
@@ -24,13 +24,18 @@ module Google
24
24
  module Monitoring
25
25
  module Dashboard
26
26
  ##
27
- # To load this package, including all its services, and instantiate a client:
27
+ # API client module.
28
28
  #
29
- # @example
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
30
  #
31
31
  # require "google/cloud/monitoring/dashboard/v1"
32
32
  # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Client.new
33
33
  #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/monitoring/dashboard/v1"
37
+ # client = ::Google::Cloud::Monitoring::Dashboard::V1::DashboardsService::Rest::Client.new
38
+ #
34
39
  module V1
35
40
  end
36
41
  end
@@ -35,8 +35,12 @@ module Google
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 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).
38
+ # Creates a new custom dashboard. For examples on how you can use this API to
39
+ # create dashboards, see [Managing dashboards by
40
+ # API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This
41
+ # method requires the `monitoring.dashboards.create` permission on the
42
+ # specified project. For more information about permissions, see [Cloud
43
+ # Identity and Access Management](https://cloud.google.com/iam).
40
44
  rpc :CreateDashboard, ::Google::Cloud::Monitoring::Dashboard::V1::CreateDashboardRequest, ::Google::Cloud::Monitoring::Dashboard::V1::Dashboard
41
45
  # Lists the existing dashboards.
42
46
  #
@@ -12,6 +12,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/monitoring/dashboard/v1/table.proto", :syntax => :proto3) do
13
13
  add_message "google.monitoring.dashboard.v1.TimeSeriesTable" do
14
14
  repeated :data_sets, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet"
15
+ optional :metric_visualization, :enum, 2, "google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization"
16
+ repeated :column_settings, :message, 4, "google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings"
15
17
  end
16
18
  add_message "google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet" do
17
19
  optional :time_series_query, :message, 1, "google.monitoring.dashboard.v1.TimeSeriesQuery"
@@ -19,6 +21,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
21
  optional :min_alignment_period, :message, 3, "google.protobuf.Duration"
20
22
  optional :table_display_options, :message, 4, "google.monitoring.dashboard.v1.TableDisplayOptions"
21
23
  end
24
+ add_message "google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings" do
25
+ optional :column, :string, 1
26
+ optional :visible, :bool, 2
27
+ end
28
+ add_enum "google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization" do
29
+ value :METRIC_VISUALIZATION_UNSPECIFIED, 0
30
+ value :NUMBER, 1
31
+ value :BAR, 2
32
+ end
22
33
  end
23
34
  end
24
35
 
@@ -29,6 +40,8 @@ module Google
29
40
  module V1
30
41
  TimeSeriesTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesTable").msgclass
31
42
  TimeSeriesTable::TableDataSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesTable.TableDataSet").msgclass
43
+ TimeSeriesTable::ColumnSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesTable.ColumnSettings").msgclass
44
+ TimeSeriesTable::MetricVisualization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.TimeSeriesTable.MetricVisualization").enummodule
32
45
  end
33
46
  end
34
47
  end
@@ -54,8 +54,9 @@ module Google
54
54
  # method.
55
55
  # @!attribute [rw] filter
56
56
  # @return [::String]
57
- # Required. The [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
58
- # that identifies the metric types, resources, and projects to query.
57
+ # Required. The [monitoring
58
+ # filter](https://cloud.google.com/monitoring/api/v3/filters) that identifies
59
+ # the metric types, resources, and projects to query.
59
60
  # @!attribute [rw] aggregation
60
61
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::Aggregation]
61
62
  # By default, the raw time series data is returned.
@@ -26,6 +26,12 @@ module Google
26
26
  # @!attribute [rw] data_sets
27
27
  # @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesTable::TableDataSet>]
28
28
  # Required. The data displayed in this table.
29
+ # @!attribute [rw] metric_visualization
30
+ # @return [::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesTable::MetricVisualization]
31
+ # Optional. Store rendering strategy
32
+ # @!attribute [rw] column_settings
33
+ # @return [::Array<::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesTable::ColumnSettings>]
34
+ # Optional. The list of the persistent column settings for the table.
29
35
  class TimeSeriesTable
30
36
  include ::Google::Protobuf::MessageExts
31
37
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -37,24 +43,49 @@ module Google
37
43
  # Stackdriver metrics API.
38
44
  # @!attribute [rw] table_template
39
45
  # @return [::String]
40
- # Optional. A template string for naming `TimeSeries` in the resulting data set.
41
- # This should be a string with interpolations of the form `${label_name}`,
42
- # which will resolve to the label's value i.e.
46
+ # Optional. A template string for naming `TimeSeries` in the resulting data
47
+ # set. This should be a string with interpolations of the form
48
+ # `${label_name}`, which will resolve to the label's value i.e.
43
49
  # "$\\{resource.labels.project_id}."
44
50
  # @!attribute [rw] min_alignment_period
45
51
  # @return [::Google::Protobuf::Duration]
46
- # Optional. The lower bound on data point frequency for this data set, implemented by
47
- # specifying the minimum alignment period to use in a time series query
48
- # For example, if the data is published once every 10 minutes, the
49
- # `min_alignment_period` should be at least 10 minutes. It would not
52
+ # Optional. The lower bound on data point frequency for this data set,
53
+ # implemented by specifying the minimum alignment period to use in a time
54
+ # series query For example, if the data is published once every 10 minutes,
55
+ # the `min_alignment_period` should be at least 10 minutes. It would not
50
56
  # make sense to fetch and align data at one minute intervals.
51
57
  # @!attribute [rw] table_display_options
52
58
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::TableDisplayOptions]
53
- # Optional. Table display options for configuring how the table is rendered.
59
+ # Optional. Table display options for configuring how the table is
60
+ # rendered.
54
61
  class TableDataSet
55
62
  include ::Google::Protobuf::MessageExts
56
63
  extend ::Google::Protobuf::MessageExts::ClassMethods
57
64
  end
65
+
66
+ # The persistent settings for a table's columns.
67
+ # @!attribute [rw] column
68
+ # @return [::String]
69
+ # Required. The id of the column.
70
+ # @!attribute [rw] visible
71
+ # @return [::Boolean]
72
+ # Required. Whether the column should be visible on page load.
73
+ class ColumnSettings
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+
78
+ # Enum for metric metric_visualization
79
+ module MetricVisualization
80
+ # Unspecified state
81
+ METRIC_VISUALIZATION_UNSPECIFIED = 0
82
+
83
+ # Default text rendering
84
+ NUMBER = 1
85
+
86
+ # Horizontal bar rendering
87
+ BAR = 2
88
+ end
58
89
  end
59
90
  end
60
91
  end
@@ -67,10 +67,10 @@ module Google
67
67
  # which will resolve to the label's value.
68
68
  # @!attribute [rw] min_alignment_period
69
69
  # @return [::Google::Protobuf::Duration]
70
- # Optional. The lower bound on data point frequency for this data set, implemented by
71
- # specifying the minimum alignment period to use in a time series query
72
- # For example, if the data is published once every 10 minutes, the
73
- # `min_alignment_period` should be at least 10 minutes. It would not
70
+ # Optional. The lower bound on data point frequency for this data set,
71
+ # implemented by specifying the minimum alignment period to use in a time
72
+ # series query For example, if the data is published once every 10 minutes,
73
+ # the `min_alignment_period` should be at least 10 minutes. It would not
74
74
  # make sense to fetch and align data at one minute intervals.
75
75
  # @!attribute [rw] target_axis
76
76
  # @return [::Google::Cloud::Monitoring::Dashboard::V1::XyChart::DataSet::TargetAxis]