google-apis-monitoring_v1 0.48.0 → 0.49.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: 65608d8ec60f7e8f2cf0f5f77811e6b97bfc80439d5b69dadac51448e3d37776
4
+ data.tar.gz: 0f82f9a4fbc6a73747d802dc7f5c3aaf0f5b2d56af1b50a7a5ab7d615f6a3f38
5
5
  SHA512:
6
- metadata.gz: e93d91c48faf3296ab697dda4226265f3b7b484f5ba9faccc85e669936d0b8e5ab1280abb277e1e3e29c299342d54b6cfabb6a2c1afebb4223ceeedbf1265a6e
7
- data.tar.gz: 57ec386e3e08ea8217aa73c45ccb60543b76c82d32ef4ec44dbb1b2d5353fabd6b3833ec4d8572dbfb291b74925401fd7683b9ad13d0f88ef3982a6258e8b1e2
6
+ metadata.gz: 9864a1311ef6f4d7c82aecb0b6175d4ac4db86ae88b0d3fbb6d9f28114556b6199b3d3b0051139bcc6af608d8b8bc3fdd7441ab416bffd3587000319bdbe5bd8
7
+ data.tar.gz: f16cab0870636beb02646b736b90a34a548b036ad397139188ab1008ce78767d4f6ce5f83957006fb74b95973637aaf9cbe2b5822747b7c2d8189646bc7cf1b2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-monitoring_v1
2
2
 
3
+ ### v0.49.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240505
6
+ * Regenerated using generator version 0.15.0
7
+
3
8
  ### v0.48.0 (2024-05-05)
4
9
 
5
10
  * 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,6 +447,36 @@ 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
@@ -717,6 +753,55 @@ module Google
717
753
  end
718
754
  end
719
755
 
756
+ # Annotation configuration for one event type on a dashboard
757
+ class EventAnnotation
758
+ include Google::Apis::Core::Hashable
759
+
760
+ # Solely for UI display. Should not be used programmatically.
761
+ # Corresponds to the JSON property `displayName`
762
+ # @return [String]
763
+ attr_accessor :display_name
764
+
765
+ # Whether or not to show the events on the dashboard by default
766
+ # Corresponds to the JSON property `enabled`
767
+ # @return [Boolean]
768
+ attr_accessor :enabled
769
+ alias_method :enabled?, :enabled
770
+
771
+ # The type of event to display.
772
+ # Corresponds to the JSON property `eventType`
773
+ # @return [String]
774
+ attr_accessor :event_type
775
+
776
+ # string filtering the events - event dependant. Example values: "resource.
777
+ # labels.pod_name = 'pod-1'" "protoPayload.authenticationInfo.principalEmail='
778
+ # user@example.com'"
779
+ # Corresponds to the JSON property `filter`
780
+ # @return [String]
781
+ attr_accessor :filter
782
+
783
+ # Per annotation level override for the names of logging resources to search for
784
+ # events. Currently only projects are supported. If both this field and the per
785
+ # annotation field is empty, it will default to the host project. Limit: 50
786
+ # projects. For example: “projects/another-project-id”
787
+ # Corresponds to the JSON property `resourceNames`
788
+ # @return [Array<String>]
789
+ attr_accessor :resource_names
790
+
791
+ def initialize(**args)
792
+ update!(**args)
793
+ end
794
+
795
+ # Update properties of this object
796
+ def update!(**args)
797
+ @display_name = args[:display_name] if args.key?(:display_name)
798
+ @enabled = args[:enabled] if args.key?(:enabled)
799
+ @event_type = args[:event_type] if args.key?(:event_type)
800
+ @filter = args[:filter] if args.key?(:filter)
801
+ @resource_names = args[:resource_names] if args.key?(:resource_names)
802
+ end
803
+ end
804
+
720
805
  # A single field of a message type.
721
806
  class Field
722
807
  include Google::Apis::Core::Hashable
@@ -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.49.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 = "20240505"
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,6 +549,15 @@ 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
@@ -600,6 +623,17 @@ module Google
600
623
  end
601
624
  end
602
625
 
626
+ class EventAnnotation
627
+ # @private
628
+ class Representation < Google::Apis::Core::JsonRepresentation
629
+ property :display_name, as: 'displayName'
630
+ property :enabled, as: 'enabled'
631
+ property :event_type, as: 'eventType'
632
+ property :filter, as: 'filter'
633
+ collection :resource_names, as: 'resourceNames'
634
+ end
635
+ end
636
+
603
637
  class Field
604
638
  # @private
605
639
  class Representation < Google::Apis::Core::JsonRepresentation
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.49.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-05-19 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.49.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: []