google-apis-monitoring_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module MonitoringV1
18
+ # Version of the google-apis-monitoring_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200915"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,566 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module MonitoringV1
24
+
25
+ class Aggregation
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Axis
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ChartOptions
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Column
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ColumnLayout
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Dashboard
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DataSet
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DroppedLabels
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Empty
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Field
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GaugeView
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GridLayout
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListDashboardsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class MosaicLayout
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Option
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class PickTimeSeriesFilter
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class RatioPart
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Row
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class RowLayout
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Scorecard
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class SourceContext
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class SpanContext
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class SparkChartView
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class StatisticalTimeSeriesFilter
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Text
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Threshold
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Tile
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class TimeSeriesFilter
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TimeSeriesFilterRatio
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TimeSeriesQuery
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class Type
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class Widget
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class XyChart
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class Aggregation
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :alignment_period, as: 'alignmentPeriod'
227
+ property :cross_series_reducer, as: 'crossSeriesReducer'
228
+ collection :group_by_fields, as: 'groupByFields'
229
+ property :per_series_aligner, as: 'perSeriesAligner'
230
+ end
231
+ end
232
+
233
+ class Axis
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ property :label, as: 'label'
237
+ property :scale, as: 'scale'
238
+ end
239
+ end
240
+
241
+ class ChartOptions
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :mode, as: 'mode'
245
+ end
246
+ end
247
+
248
+ class Column
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :weight, :numeric_string => true, as: 'weight'
252
+ collection :widgets, as: 'widgets', class: Google::Apis::MonitoringV1::Widget, decorator: Google::Apis::MonitoringV1::Widget::Representation
253
+
254
+ end
255
+ end
256
+
257
+ class ColumnLayout
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ collection :columns, as: 'columns', class: Google::Apis::MonitoringV1::Column, decorator: Google::Apis::MonitoringV1::Column::Representation
261
+
262
+ end
263
+ end
264
+
265
+ class Dashboard
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :column_layout, as: 'columnLayout', class: Google::Apis::MonitoringV1::ColumnLayout, decorator: Google::Apis::MonitoringV1::ColumnLayout::Representation
269
+
270
+ property :display_name, as: 'displayName'
271
+ property :etag, as: 'etag'
272
+ property :grid_layout, as: 'gridLayout', class: Google::Apis::MonitoringV1::GridLayout, decorator: Google::Apis::MonitoringV1::GridLayout::Representation
273
+
274
+ property :mosaic_layout, as: 'mosaicLayout', class: Google::Apis::MonitoringV1::MosaicLayout, decorator: Google::Apis::MonitoringV1::MosaicLayout::Representation
275
+
276
+ property :name, as: 'name'
277
+ property :row_layout, as: 'rowLayout', class: Google::Apis::MonitoringV1::RowLayout, decorator: Google::Apis::MonitoringV1::RowLayout::Representation
278
+
279
+ end
280
+ end
281
+
282
+ class DataSet
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :legend_template, as: 'legendTemplate'
286
+ property :min_alignment_period, as: 'minAlignmentPeriod'
287
+ property :plot_type, as: 'plotType'
288
+ property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
289
+
290
+ end
291
+ end
292
+
293
+ class DroppedLabels
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ hash :label, as: 'label'
297
+ end
298
+ end
299
+
300
+ class Empty
301
+ # @private
302
+ class Representation < Google::Apis::Core::JsonRepresentation
303
+ end
304
+ end
305
+
306
+ class Field
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :cardinality, as: 'cardinality'
310
+ property :default_value, as: 'defaultValue'
311
+ property :json_name, as: 'jsonName'
312
+ property :kind, as: 'kind'
313
+ property :name, as: 'name'
314
+ property :number, as: 'number'
315
+ property :oneof_index, as: 'oneofIndex'
316
+ collection :options, as: 'options', class: Google::Apis::MonitoringV1::Option, decorator: Google::Apis::MonitoringV1::Option::Representation
317
+
318
+ property :packed, as: 'packed'
319
+ property :type_url, as: 'typeUrl'
320
+ end
321
+ end
322
+
323
+ class GaugeView
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :lower_bound, as: 'lowerBound'
327
+ property :upper_bound, as: 'upperBound'
328
+ end
329
+ end
330
+
331
+ class GridLayout
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :columns, :numeric_string => true, as: 'columns'
335
+ collection :widgets, as: 'widgets', class: Google::Apis::MonitoringV1::Widget, decorator: Google::Apis::MonitoringV1::Widget::Representation
336
+
337
+ end
338
+ end
339
+
340
+ class ListDashboardsResponse
341
+ # @private
342
+ class Representation < Google::Apis::Core::JsonRepresentation
343
+ collection :dashboards, as: 'dashboards', class: Google::Apis::MonitoringV1::Dashboard, decorator: Google::Apis::MonitoringV1::Dashboard::Representation
344
+
345
+ property :next_page_token, as: 'nextPageToken'
346
+ end
347
+ end
348
+
349
+ class MosaicLayout
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :columns, as: 'columns'
353
+ collection :tiles, as: 'tiles', class: Google::Apis::MonitoringV1::Tile, decorator: Google::Apis::MonitoringV1::Tile::Representation
354
+
355
+ end
356
+ end
357
+
358
+ class Option
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ property :name, as: 'name'
362
+ hash :value, as: 'value'
363
+ end
364
+ end
365
+
366
+ class PickTimeSeriesFilter
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :direction, as: 'direction'
370
+ property :num_time_series, as: 'numTimeSeries'
371
+ property :ranking_method, as: 'rankingMethod'
372
+ end
373
+ end
374
+
375
+ class RatioPart
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :aggregation, as: 'aggregation', class: Google::Apis::MonitoringV1::Aggregation, decorator: Google::Apis::MonitoringV1::Aggregation::Representation
379
+
380
+ property :filter, as: 'filter'
381
+ end
382
+ end
383
+
384
+ class Row
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ property :weight, :numeric_string => true, as: 'weight'
388
+ collection :widgets, as: 'widgets', class: Google::Apis::MonitoringV1::Widget, decorator: Google::Apis::MonitoringV1::Widget::Representation
389
+
390
+ end
391
+ end
392
+
393
+ class RowLayout
394
+ # @private
395
+ class Representation < Google::Apis::Core::JsonRepresentation
396
+ collection :rows, as: 'rows', class: Google::Apis::MonitoringV1::Row, decorator: Google::Apis::MonitoringV1::Row::Representation
397
+
398
+ end
399
+ end
400
+
401
+ class Scorecard
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ property :gauge_view, as: 'gaugeView', class: Google::Apis::MonitoringV1::GaugeView, decorator: Google::Apis::MonitoringV1::GaugeView::Representation
405
+
406
+ property :spark_chart_view, as: 'sparkChartView', class: Google::Apis::MonitoringV1::SparkChartView, decorator: Google::Apis::MonitoringV1::SparkChartView::Representation
407
+
408
+ collection :thresholds, as: 'thresholds', class: Google::Apis::MonitoringV1::Threshold, decorator: Google::Apis::MonitoringV1::Threshold::Representation
409
+
410
+ property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
411
+
412
+ end
413
+ end
414
+
415
+ class SourceContext
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :file_name, as: 'fileName'
419
+ end
420
+ end
421
+
422
+ class SpanContext
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :span_name, as: 'spanName'
426
+ end
427
+ end
428
+
429
+ class SparkChartView
430
+ # @private
431
+ class Representation < Google::Apis::Core::JsonRepresentation
432
+ property :min_alignment_period, as: 'minAlignmentPeriod'
433
+ property :spark_chart_type, as: 'sparkChartType'
434
+ end
435
+ end
436
+
437
+ class StatisticalTimeSeriesFilter
438
+ # @private
439
+ class Representation < Google::Apis::Core::JsonRepresentation
440
+ property :num_time_series, as: 'numTimeSeries'
441
+ property :ranking_method, as: 'rankingMethod'
442
+ end
443
+ end
444
+
445
+ class Text
446
+ # @private
447
+ class Representation < Google::Apis::Core::JsonRepresentation
448
+ property :content, as: 'content'
449
+ property :format, as: 'format'
450
+ end
451
+ end
452
+
453
+ class Threshold
454
+ # @private
455
+ class Representation < Google::Apis::Core::JsonRepresentation
456
+ property :color, as: 'color'
457
+ property :direction, as: 'direction'
458
+ property :label, as: 'label'
459
+ property :value, as: 'value'
460
+ end
461
+ end
462
+
463
+ class Tile
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ property :height, as: 'height'
467
+ property :widget, as: 'widget', class: Google::Apis::MonitoringV1::Widget, decorator: Google::Apis::MonitoringV1::Widget::Representation
468
+
469
+ property :width, as: 'width'
470
+ property :x_pos, as: 'xPos'
471
+ property :y_pos, as: 'yPos'
472
+ end
473
+ end
474
+
475
+ class TimeSeriesFilter
476
+ # @private
477
+ class Representation < Google::Apis::Core::JsonRepresentation
478
+ property :aggregation, as: 'aggregation', class: Google::Apis::MonitoringV1::Aggregation, decorator: Google::Apis::MonitoringV1::Aggregation::Representation
479
+
480
+ property :filter, as: 'filter'
481
+ property :pick_time_series_filter, as: 'pickTimeSeriesFilter', class: Google::Apis::MonitoringV1::PickTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::PickTimeSeriesFilter::Representation
482
+
483
+ property :secondary_aggregation, as: 'secondaryAggregation', class: Google::Apis::MonitoringV1::Aggregation, decorator: Google::Apis::MonitoringV1::Aggregation::Representation
484
+
485
+ property :statistical_time_series_filter, as: 'statisticalTimeSeriesFilter', class: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter::Representation
486
+
487
+ end
488
+ end
489
+
490
+ class TimeSeriesFilterRatio
491
+ # @private
492
+ class Representation < Google::Apis::Core::JsonRepresentation
493
+ property :denominator, as: 'denominator', class: Google::Apis::MonitoringV1::RatioPart, decorator: Google::Apis::MonitoringV1::RatioPart::Representation
494
+
495
+ property :numerator, as: 'numerator', class: Google::Apis::MonitoringV1::RatioPart, decorator: Google::Apis::MonitoringV1::RatioPart::Representation
496
+
497
+ property :pick_time_series_filter, as: 'pickTimeSeriesFilter', class: Google::Apis::MonitoringV1::PickTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::PickTimeSeriesFilter::Representation
498
+
499
+ property :secondary_aggregation, as: 'secondaryAggregation', class: Google::Apis::MonitoringV1::Aggregation, decorator: Google::Apis::MonitoringV1::Aggregation::Representation
500
+
501
+ property :statistical_time_series_filter, as: 'statisticalTimeSeriesFilter', class: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter, decorator: Google::Apis::MonitoringV1::StatisticalTimeSeriesFilter::Representation
502
+
503
+ end
504
+ end
505
+
506
+ class TimeSeriesQuery
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ property :time_series_filter, as: 'timeSeriesFilter', class: Google::Apis::MonitoringV1::TimeSeriesFilter, decorator: Google::Apis::MonitoringV1::TimeSeriesFilter::Representation
510
+
511
+ property :time_series_filter_ratio, as: 'timeSeriesFilterRatio', class: Google::Apis::MonitoringV1::TimeSeriesFilterRatio, decorator: Google::Apis::MonitoringV1::TimeSeriesFilterRatio::Representation
512
+
513
+ property :time_series_query_language, as: 'timeSeriesQueryLanguage'
514
+ property :unit_override, as: 'unitOverride'
515
+ end
516
+ end
517
+
518
+ class Type
519
+ # @private
520
+ class Representation < Google::Apis::Core::JsonRepresentation
521
+ collection :fields, as: 'fields', class: Google::Apis::MonitoringV1::Field, decorator: Google::Apis::MonitoringV1::Field::Representation
522
+
523
+ property :name, as: 'name'
524
+ collection :oneofs, as: 'oneofs'
525
+ collection :options, as: 'options', class: Google::Apis::MonitoringV1::Option, decorator: Google::Apis::MonitoringV1::Option::Representation
526
+
527
+ property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV1::SourceContext, decorator: Google::Apis::MonitoringV1::SourceContext::Representation
528
+
529
+ property :syntax, as: 'syntax'
530
+ end
531
+ end
532
+
533
+ class Widget
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :blank, as: 'blank', class: Google::Apis::MonitoringV1::Empty, decorator: Google::Apis::MonitoringV1::Empty::Representation
537
+
538
+ property :scorecard, as: 'scorecard', class: Google::Apis::MonitoringV1::Scorecard, decorator: Google::Apis::MonitoringV1::Scorecard::Representation
539
+
540
+ property :text, as: 'text', class: Google::Apis::MonitoringV1::Text, decorator: Google::Apis::MonitoringV1::Text::Representation
541
+
542
+ property :title, as: 'title'
543
+ property :xy_chart, as: 'xyChart', class: Google::Apis::MonitoringV1::XyChart, decorator: Google::Apis::MonitoringV1::XyChart::Representation
544
+
545
+ end
546
+ end
547
+
548
+ class XyChart
549
+ # @private
550
+ class Representation < Google::Apis::Core::JsonRepresentation
551
+ property :chart_options, as: 'chartOptions', class: Google::Apis::MonitoringV1::ChartOptions, decorator: Google::Apis::MonitoringV1::ChartOptions::Representation
552
+
553
+ collection :data_sets, as: 'dataSets', class: Google::Apis::MonitoringV1::DataSet, decorator: Google::Apis::MonitoringV1::DataSet::Representation
554
+
555
+ collection :thresholds, as: 'thresholds', class: Google::Apis::MonitoringV1::Threshold, decorator: Google::Apis::MonitoringV1::Threshold::Representation
556
+
557
+ property :timeshift_duration, as: 'timeshiftDuration'
558
+ property :x_axis, as: 'xAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
559
+
560
+ property :y_axis, as: 'yAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
561
+
562
+ end
563
+ end
564
+ end
565
+ end
566
+ end