google-apis-monitoring_v1 0.48.0 → 0.50.0

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: e6bfff08c3af63049b63a2b32402c6667463d1af96ca8f2290fde2386b41eb8e
4
- data.tar.gz: c82d1e07e9c1b7c56e00b8619bacbd676dd530edbbcb1710ca2200aefc74804f
3
+ metadata.gz: 6a2ebcbdf34d02d63599e01e92c434d91b9a9c3ff09410ec9503b3bd732c4093
4
+ data.tar.gz: e1ad40f3184faacfbacc1e2565d94403e3a830294f7895c0a78cdafbad75ac90
5
5
  SHA512:
6
- metadata.gz: e93d91c48faf3296ab697dda4226265f3b7b484f5ba9faccc85e669936d0b8e5ab1280abb277e1e3e29c299342d54b6cfabb6a2c1afebb4223ceeedbf1265a6e
7
- data.tar.gz: 57ec386e3e08ea8217aa73c45ccb60543b76c82d32ef4ec44dbb1b2d5353fabd6b3833ec4d8572dbfb291b74925401fd7683b9ad13d0f88ef3982a6258e8b1e2
6
+ metadata.gz: c647195c8c993f168f39e349087dec25ef5937b3112f0605146b35a1d308be0de22c1757d82cb1b071f7ddcad2c52c7c074c9eb734f8bf391a33d420f45f24ea
7
+ data.tar.gz: a5725c9bd25a79b1ecc0a6bffcb4cd67c04a8a843597019321d1cf15056839721bd642a250c878058486e0c7a26165c00c694bc8b95e92869992a21c0f1bbdfc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.50.0 (2024-06-16)
4
+
5
+ * Regenerated from discovery document revision 20240609
6
+
7
+ ### v0.49.0 (2024-05-19)
8
+
9
+ * Regenerated from discovery document revision 20240505
10
+ * Regenerated using generator version 0.15.0
11
+
3
12
  ### v0.48.0 (2024-05-05)
4
13
 
5
14
  * Regenerated from discovery document revision 20240427
@@ -368,6 +368,11 @@ module Google
368
368
  class Dashboard
369
369
  include Google::Apis::Core::Hashable
370
370
 
371
+ # Dashboard-level configuration for annotations
372
+ # Corresponds to the JSON property `annotations`
373
+ # @return [Google::Apis::MonitoringV1::DashboardAnnotations]
374
+ attr_accessor :annotations
375
+
371
376
  # A simplified layout that divides the available space into vertical columns and
372
377
  # arranges a set of widgets vertically in each column.
373
378
  # Corresponds to the JSON property `columnLayout`
@@ -429,6 +434,7 @@ module Google
429
434
 
430
435
  # Update properties of this object
431
436
  def update!(**args)
437
+ @annotations = args[:annotations] if args.key?(:annotations)
432
438
  @column_layout = args[:column_layout] if args.key?(:column_layout)
433
439
  @dashboard_filters = args[:dashboard_filters] if args.key?(:dashboard_filters)
434
440
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -441,16 +447,40 @@ module Google
441
447
  end
442
448
  end
443
449
 
450
+ # Dashboard-level configuration for annotations
451
+ class DashboardAnnotations
452
+ include Google::Apis::Core::Hashable
453
+
454
+ # Dashboard level defaults for names of logging resources to search for events.
455
+ # Currently only projects are supported. Each individual EventAnnotation may
456
+ # have its own overrides. If both this field and the per annotation field is
457
+ # empty, then the scoping project is used. Limit: 50 projects. For example: “
458
+ # projects/some-project-id”
459
+ # Corresponds to the JSON property `defaultResourceNames`
460
+ # @return [Array<String>]
461
+ attr_accessor :default_resource_names
462
+
463
+ # List of annotation configurations for this dashboard. Each entry specifies one
464
+ # event type.
465
+ # Corresponds to the JSON property `eventAnnotations`
466
+ # @return [Array<Google::Apis::MonitoringV1::EventAnnotation>]
467
+ attr_accessor :event_annotations
468
+
469
+ def initialize(**args)
470
+ update!(**args)
471
+ end
472
+
473
+ # Update properties of this object
474
+ def update!(**args)
475
+ @default_resource_names = args[:default_resource_names] if args.key?(:default_resource_names)
476
+ @event_annotations = args[:event_annotations] if args.key?(:event_annotations)
477
+ end
478
+ end
479
+
444
480
  # A filter to reduce the amount of data charted in relevant widgets.
445
481
  class DashboardFilter
446
482
  include Google::Apis::Core::Hashable
447
483
 
448
- # Whether to apply this filter to new widgets by default
449
- # Corresponds to the JSON property `applyToNewWidgets`
450
- # @return [Boolean]
451
- attr_accessor :apply_to_new_widgets
452
- alias_method :apply_to_new_widgets?, :apply_to_new_widgets
453
-
454
484
  # The specified filter type
455
485
  # Corresponds to the JSON property `filterType`
456
486
  # @return [String]
@@ -479,7 +509,6 @@ module Google
479
509
 
480
510
  # Update properties of this object
481
511
  def update!(**args)
482
- @apply_to_new_widgets = args[:apply_to_new_widgets] if args.key?(:apply_to_new_widgets)
483
512
  @filter_type = args[:filter_type] if args.key?(:filter_type)
484
513
  @label_key = args[:label_key] if args.key?(:label_key)
485
514
  @string_value = args[:string_value] if args.key?(:string_value)
@@ -717,6 +746,55 @@ module Google
717
746
  end
718
747
  end
719
748
 
749
+ # Annotation configuration for one event type on a dashboard
750
+ class EventAnnotation
751
+ include Google::Apis::Core::Hashable
752
+
753
+ # Solely for UI display. Should not be used programmatically.
754
+ # Corresponds to the JSON property `displayName`
755
+ # @return [String]
756
+ attr_accessor :display_name
757
+
758
+ # Whether or not to show the events on the dashboard by default
759
+ # Corresponds to the JSON property `enabled`
760
+ # @return [Boolean]
761
+ attr_accessor :enabled
762
+ alias_method :enabled?, :enabled
763
+
764
+ # The type of event to display.
765
+ # Corresponds to the JSON property `eventType`
766
+ # @return [String]
767
+ attr_accessor :event_type
768
+
769
+ # string filtering the events - event dependant. Example values: "resource.
770
+ # labels.pod_name = 'pod-1'" "protoPayload.authenticationInfo.principalEmail='
771
+ # user@example.com'"
772
+ # Corresponds to the JSON property `filter`
773
+ # @return [String]
774
+ attr_accessor :filter
775
+
776
+ # Per annotation level override for the names of logging resources to search for
777
+ # events. Currently only projects are supported. If both this field and the per
778
+ # annotation field is empty, it will default to the host project. Limit: 50
779
+ # projects. For example: “projects/another-project-id”
780
+ # Corresponds to the JSON property `resourceNames`
781
+ # @return [Array<String>]
782
+ attr_accessor :resource_names
783
+
784
+ def initialize(**args)
785
+ update!(**args)
786
+ end
787
+
788
+ # Update properties of this object
789
+ def update!(**args)
790
+ @display_name = args[:display_name] if args.key?(:display_name)
791
+ @enabled = args[:enabled] if args.key?(:enabled)
792
+ @event_type = args[:event_type] if args.key?(:event_type)
793
+ @filter = args[:filter] if args.key?(:filter)
794
+ @resource_names = args[:resource_names] if args.key?(:resource_names)
795
+ end
796
+ end
797
+
720
798
  # A single field of a message type.
721
799
  class Field
722
800
  include Google::Apis::Core::Hashable
@@ -1803,6 +1881,12 @@ module Google
1803
1881
  # @return [Google::Apis::MonitoringV1::Empty]
1804
1882
  attr_accessor :blank_view
1805
1883
 
1884
+ # Optional. A dimension is a structured label, class, or category for a set of
1885
+ # measurements in your data.
1886
+ # Corresponds to the JSON property `dimensions`
1887
+ # @return [Array<Google::Apis::MonitoringV1::Dimension>]
1888
+ attr_accessor :dimensions
1889
+
1806
1890
  # A gauge chart shows where the current value sits within a pre-defined range.
1807
1891
  # The upper and lower bounds should define the possible range of values for the
1808
1892
  # scorecard's query (inclusive).
@@ -1810,6 +1894,12 @@ module Google
1810
1894
  # @return [Google::Apis::MonitoringV1::GaugeView]
1811
1895
  attr_accessor :gauge_view
1812
1896
 
1897
+ # Optional. A measure is a measured value of a property in your data. For
1898
+ # example, rainfall in inches, number of units sold, revenue gained, etc.
1899
+ # Corresponds to the JSON property `measures`
1900
+ # @return [Array<Google::Apis::MonitoringV1::Measure>]
1901
+ attr_accessor :measures
1902
+
1813
1903
  # A sparkChart is a small chart suitable for inclusion in a table-cell or inline
1814
1904
  # in text. This message contains the configuration for a sparkChart to show up
1815
1905
  # on a Scorecard, showing recent trends of the scorecard's timeseries.
@@ -1849,7 +1939,9 @@ module Google
1849
1939
  # Update properties of this object
1850
1940
  def update!(**args)
1851
1941
  @blank_view = args[:blank_view] if args.key?(:blank_view)
1942
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
1852
1943
  @gauge_view = args[:gauge_view] if args.key?(:gauge_view)
1944
+ @measures = args[:measures] if args.key?(:measures)
1853
1945
  @spark_chart_view = args[:spark_chart_view] if args.key?(:spark_chart_view)
1854
1946
  @thresholds = args[:thresholds] if args.key?(:thresholds)
1855
1947
  @time_series_query = args[:time_series_query] if args.key?(:time_series_query)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MonitoringV1
18
18
  # Version of the google-apis-monitoring_v1 gem
19
- GEM_VERSION = "0.48.0"
19
+ GEM_VERSION = "0.50.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240427"
25
+ REVISION = "20240609"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class DashboardAnnotations
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class DashboardFilter
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -124,6 +130,12 @@ module Google
124
130
  include Google::Apis::Core::JsonObjectSupport
125
131
  end
126
132
 
133
+ class EventAnnotation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class Field
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
@@ -518,6 +530,8 @@ module Google
518
530
  class Dashboard
519
531
  # @private
520
532
  class Representation < Google::Apis::Core::JsonRepresentation
533
+ property :annotations, as: 'annotations', class: Google::Apis::MonitoringV1::DashboardAnnotations, decorator: Google::Apis::MonitoringV1::DashboardAnnotations::Representation
534
+
521
535
  property :column_layout, as: 'columnLayout', class: Google::Apis::MonitoringV1::ColumnLayout, decorator: Google::Apis::MonitoringV1::ColumnLayout::Representation
522
536
 
523
537
  collection :dashboard_filters, as: 'dashboardFilters', class: Google::Apis::MonitoringV1::DashboardFilter, decorator: Google::Apis::MonitoringV1::DashboardFilter::Representation
@@ -535,10 +549,18 @@ module Google
535
549
  end
536
550
  end
537
551
 
552
+ class DashboardAnnotations
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ collection :default_resource_names, as: 'defaultResourceNames'
556
+ collection :event_annotations, as: 'eventAnnotations', class: Google::Apis::MonitoringV1::EventAnnotation, decorator: Google::Apis::MonitoringV1::EventAnnotation::Representation
557
+
558
+ end
559
+ end
560
+
538
561
  class DashboardFilter
539
562
  # @private
540
563
  class Representation < Google::Apis::Core::JsonRepresentation
541
- property :apply_to_new_widgets, as: 'applyToNewWidgets'
542
564
  property :filter_type, as: 'filterType'
543
565
  property :label_key, as: 'labelKey'
544
566
  property :string_value, as: 'stringValue'
@@ -600,6 +622,17 @@ module Google
600
622
  end
601
623
  end
602
624
 
625
+ class EventAnnotation
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :display_name, as: 'displayName'
629
+ property :enabled, as: 'enabled'
630
+ property :event_type, as: 'eventType'
631
+ property :filter, as: 'filter'
632
+ collection :resource_names, as: 'resourceNames'
633
+ end
634
+ end
635
+
603
636
  class Field
604
637
  # @private
605
638
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -886,8 +919,12 @@ module Google
886
919
  class Representation < Google::Apis::Core::JsonRepresentation
887
920
  property :blank_view, as: 'blankView', class: Google::Apis::MonitoringV1::Empty, decorator: Google::Apis::MonitoringV1::Empty::Representation
888
921
 
922
+ collection :dimensions, as: 'dimensions', class: Google::Apis::MonitoringV1::Dimension, decorator: Google::Apis::MonitoringV1::Dimension::Representation
923
+
889
924
  property :gauge_view, as: 'gaugeView', class: Google::Apis::MonitoringV1::GaugeView, decorator: Google::Apis::MonitoringV1::GaugeView::Representation
890
925
 
926
+ collection :measures, as: 'measures', class: Google::Apis::MonitoringV1::Measure, decorator: Google::Apis::MonitoringV1::Measure::Representation
927
+
891
928
  property :spark_chart_view, as: 'sparkChartView', class: Google::Apis::MonitoringV1::SparkChartView, decorator: Google::Apis::MonitoringV1::SparkChartView::Representation
892
929
 
893
930
  collection :thresholds, as: 'thresholds', class: Google::Apis::MonitoringV1::Threshold, decorator: Google::Apis::MonitoringV1::Threshold::Representation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-05 00:00:00.000000000 Z
11
+ date: 2024-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
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.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.48.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.50.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v1
63
63
  post_install_message:
64
64
  rdoc_options: []