google-apis-monitoring_v3 0.47.0 → 0.49.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 597c4c5269296fe9b17d05f9c44dbfb7ded4da6a5da8ec4e6437148ffc2605f4
4
- data.tar.gz: 415c6eeef658a86fd5b9296351d1ade45303f657dc8f1908bba450dedc4ab81b
3
+ metadata.gz: 52648c4bdd607fbb96819b566c605a1650ed70030bc9d0b8274b8f9e87c60816
4
+ data.tar.gz: 565cf450133ef63be493937c39d27d97eb2998135ef987a8b78f93976f5e5cd1
5
5
  SHA512:
6
- metadata.gz: 92129e6d00a3e4bb323f338dbc77d618e68af41a38c3d35c0687fe083c9acdd8884d4a1166daa4016feada68b30232ac8e2687869bb1c238a605f774c907af63
7
- data.tar.gz: 7aedf7c117d11b6c5831812c3b129fae6640b25fd3dc3f5789af0228e5aa233803cc36a99e991ed2b962e92a706add64320e5d128dd9d5adb23da7e2c007e6a8
6
+ metadata.gz: 3683fd88c632192beaeeeb891cfdd78a9afa8fa238b4948b54e2e519436e65670357a773b5774eb6fbd003d9ae1d6734af4cb6e20253a084080704e66b648a26
7
+ data.tar.gz: 4ddb3c4842c9c272e2608d6cc3e7426726c710547b0c52c2797f9531cdc5a0e3bc1d28fdf71b2c5136ff138cb303cb2592a932689c1ccdeef94a94f3c19c8e0b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.49.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.48.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230716
10
+
3
11
  ### v0.47.0 (2023-07-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20230703
@@ -155,9 +155,10 @@ module Google
155
155
  # notifications, and incidents. To avoid confusion, don't use the same display
156
156
  # name for multiple policies in the same project. The name is limited to 512
157
157
  # Unicode characters.The convention for the display_name of a
158
- # PrometheusQueryLanguageCondition is "/", where the and should be taken from
159
- # the corresponding Prometheus configuration file. This convention is not
160
- # enforced. In any case the display_name is not a unique key of the AlertPolicy.
158
+ # PrometheusQueryLanguageCondition is "`rule group name`/`alert name`", where
159
+ # the `rule group name` and `alert name` should be taken from the corresponding
160
+ # Prometheus configuration file. This convention is not enforced. In any case
161
+ # the display_name is not a unique key of the AlertPolicy.
161
162
  # Corresponds to the JSON property `displayName`
162
163
  # @return [String]
163
164
  attr_accessor :display_name
@@ -205,10 +206,11 @@ module Google
205
206
  # AlertPolicy objects.The field can contain up to 64 entries. Each key and value
206
207
  # is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels
207
208
  # and values can contain only lowercase letters, numerals, underscores, and
208
- # dashes. Keys must begin with a letter.Note that Prometheus and are valid
209
- # Prometheus label names (https://prometheus.io/docs/concepts/data_model/#metric-
210
- # names-and-labels). This means that they cannot be stored as is in user labels,
211
- # because Prometheus labels may contain upper-case letters.
209
+ # dashes. Keys must begin with a letter.Note that Prometheus `alert name` is a
210
+ # valid Prometheus label names (https://prometheus.io/docs/concepts/data_model/#
211
+ # metric-names-and-labels), whereas Prometheus `rule group` is an unrestricted
212
+ # UTF-8 string. This means that they cannot be stored as-is in user labels,
213
+ # because they may contain characters that are not allowed in user-label values.
212
214
  # Corresponds to the JSON property `userLabels`
213
215
  # @return [Hash<String,String>]
214
216
  attr_accessor :user_labels
@@ -507,6 +509,41 @@ module Google
507
509
  end
508
510
  end
509
511
 
512
+ # A Synthetic Monitor deployed to a Cloud Functions V2 instance.
513
+ class CloudFunctionV2Target
514
+ include Google::Apis::Core::Hashable
515
+
516
+ # An object representing a resource that can be used for monitoring, logging,
517
+ # billing, or other purposes. Examples include virtual machine instances,
518
+ # databases, and storage devices such as disks. The type field identifies a
519
+ # MonitoredResourceDescriptor object that describes the resource's schema.
520
+ # Information in the labels field identifies the actual resource and its
521
+ # attributes according to the schema. For example, a particular Compute Engine
522
+ # VM instance could be represented by the following object, because the
523
+ # MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "
524
+ # instance_id" and "zone": ` "type": "gce_instance", "labels": ` "project_id": "
525
+ # my-project", "instance_id": "12345678901234", "zone": "us-central1-a" ``
526
+ # Corresponds to the JSON property `cloudRunRevision`
527
+ # @return [Google::Apis::MonitoringV3::MonitoredResource]
528
+ attr_accessor :cloud_run_revision
529
+
530
+ # Required. Fully qualified GCFv2 resource name i.e. projects/`project`/
531
+ # locations/`location`/functions/`function` Required.
532
+ # Corresponds to the JSON property `name`
533
+ # @return [String]
534
+ attr_accessor :name
535
+
536
+ def initialize(**args)
537
+ update!(**args)
538
+ end
539
+
540
+ # Update properties of this object
541
+ def update!(**args)
542
+ @cloud_run_revision = args[:cloud_run_revision] if args.key?(:cloud_run_revision)
543
+ @name = args[:name] if args.key?(:name)
544
+ end
545
+ end
546
+
510
547
  # Cloud Run service. Learn more at https://cloud.google.com/run.
511
548
  class CloudRun
512
549
  include Google::Apis::Core::Hashable
@@ -3743,23 +3780,25 @@ module Google
3743
3780
  # AlertPolicies in case the definition of the rule group changes in the future.
3744
3781
  # This field is optional. If this field is not empty, then it must be a valid
3745
3782
  # Prometheus label name (https://prometheus.io/docs/concepts/data_model/#metric-
3746
- # names-and-labels).
3783
+ # names-and-labels). This field may not exceed 2048 Unicode characters in length.
3747
3784
  # Corresponds to the JSON property `alertRule`
3748
3785
  # @return [String]
3749
3786
  attr_accessor :alert_rule
3750
3787
 
3751
3788
  # Optional. Alerts are considered firing once their PromQL expression was
3752
3789
  # evaluated to be "true" for this long. Alerts whose PromQL expression was not
3753
- # evaluated to be "true" for long enough are considered pending. The default
3754
- # value is zero. Must be zero or positive.
3790
+ # evaluated to be "true" for long enough are considered pending. Must be a non-
3791
+ # negative duration or missing. This field is optional. Its default value is
3792
+ # zero.
3755
3793
  # Corresponds to the JSON property `duration`
3756
3794
  # @return [String]
3757
3795
  attr_accessor :duration
3758
3796
 
3759
- # Required. How often this rule should be evaluated. Must be a positive multiple
3760
- # of 30 seconds or missing. The default value is 30 seconds. If this
3761
- # PrometheusQueryLanguageCondition was generated from a Prometheus alerting rule,
3762
- # then this value should be taken from the enclosing rule group.
3797
+ # Optional. How often this rule should be evaluated. Must be a positive multiple
3798
+ # of 30 seconds or missing. This field is optional. Its default value is 30
3799
+ # seconds. If this PrometheusQueryLanguageCondition was generated from a
3800
+ # Prometheus alerting rule, then this value should be taken from the enclosing
3801
+ # rule group.
3763
3802
  # Corresponds to the JSON property `evaluationInterval`
3764
3803
  # @return [String]
3765
3804
  attr_accessor :evaluation_interval
@@ -3786,9 +3825,9 @@ module Google
3786
3825
  # correctly in order to refer to the original Prometheus configuration file. The
3787
3826
  # rule group name and the alert name are necessary to update the relevant
3788
3827
  # AlertPolicies in case the definition of the rule group changes in the future.
3789
- # This field is optional. If this field is not empty, then it must be a valid
3790
- # Prometheus label name (https://prometheus.io/docs/concepts/data_model/#metric-
3791
- # names-and-labels).
3828
+ # This field is optional. If this field is not empty, then it must contain a
3829
+ # valid UTF-8 string. This field may not exceed 2048 Unicode characters in
3830
+ # length.
3792
3831
  # Corresponds to the JSON property `ruleGroup`
3793
3832
  # @return [String]
3794
3833
  attr_accessor :rule_group
@@ -4422,6 +4461,25 @@ module Google
4422
4461
  end
4423
4462
  end
4424
4463
 
4464
+ # Describes a Synthetic Monitor to be invoked by Uptime.
4465
+ class SyntheticMonitorTarget
4466
+ include Google::Apis::Core::Hashable
4467
+
4468
+ # A Synthetic Monitor deployed to a Cloud Functions V2 instance.
4469
+ # Corresponds to the JSON property `cloudFunctionV2`
4470
+ # @return [Google::Apis::MonitoringV3::CloudFunctionV2Target]
4471
+ attr_accessor :cloud_function_v2
4472
+
4473
+ def initialize(**args)
4474
+ update!(**args)
4475
+ end
4476
+
4477
+ # Update properties of this object
4478
+ def update!(**args)
4479
+ @cloud_function_v2 = args[:cloud_function_v2] if args.key?(:cloud_function_v2)
4480
+ end
4481
+ end
4482
+
4425
4483
  # Information required for a TCP Uptime check request.
4426
4484
  class TcpCheck
4427
4485
  include Google::Apis::Core::Hashable
@@ -4943,6 +5001,11 @@ module Google
4943
5001
  # @return [Array<String>]
4944
5002
  attr_accessor :selected_regions
4945
5003
 
5004
+ # Describes a Synthetic Monitor to be invoked by Uptime.
5005
+ # Corresponds to the JSON property `syntheticMonitor`
5006
+ # @return [Google::Apis::MonitoringV3::SyntheticMonitorTarget]
5007
+ attr_accessor :synthetic_monitor
5008
+
4946
5009
  # Information required for a TCP Uptime check request.
4947
5010
  # Corresponds to the JSON property `tcpCheck`
4948
5011
  # @return [Google::Apis::MonitoringV3::TcpCheck]
@@ -4980,6 +5043,7 @@ module Google
4980
5043
  @period = args[:period] if args.key?(:period)
4981
5044
  @resource_group = args[:resource_group] if args.key?(:resource_group)
4982
5045
  @selected_regions = args[:selected_regions] if args.key?(:selected_regions)
5046
+ @synthetic_monitor = args[:synthetic_monitor] if args.key?(:synthetic_monitor)
4983
5047
  @tcp_check = args[:tcp_check] if args.key?(:tcp_check)
4984
5048
  @timeout = args[:timeout] if args.key?(:timeout)
4985
5049
  @user_labels = args[:user_labels] if args.key?(:user_labels)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MonitoringV3
18
18
  # Version of the google-apis-monitoring_v3 gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230703"
25
+ REVISION = "20230806"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class CloudFunctionV2Target
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class CloudRun
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -628,6 +634,12 @@ module Google
628
634
  include Google::Apis::Core::JsonObjectSupport
629
635
  end
630
636
 
637
+ class SyntheticMonitorTarget
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
631
643
  class TcpCheck
632
644
  class Representation < Google::Apis::Core::JsonRepresentation; end
633
645
 
@@ -824,6 +836,15 @@ module Google
824
836
  end
825
837
  end
826
838
 
839
+ class CloudFunctionV2Target
840
+ # @private
841
+ class Representation < Google::Apis::Core::JsonRepresentation
842
+ property :cloud_run_revision, as: 'cloudRunRevision', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
843
+
844
+ property :name, as: 'name'
845
+ end
846
+ end
847
+
827
848
  class CloudRun
828
849
  # @private
829
850
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1761,6 +1782,14 @@ module Google
1761
1782
  end
1762
1783
  end
1763
1784
 
1785
+ class SyntheticMonitorTarget
1786
+ # @private
1787
+ class Representation < Google::Apis::Core::JsonRepresentation
1788
+ property :cloud_function_v2, as: 'cloudFunctionV2', class: Google::Apis::MonitoringV3::CloudFunctionV2Target, decorator: Google::Apis::MonitoringV3::CloudFunctionV2Target::Representation
1789
+
1790
+ end
1791
+ end
1792
+
1764
1793
  class TcpCheck
1765
1794
  # @private
1766
1795
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1886,6 +1915,8 @@ module Google
1886
1915
  property :resource_group, as: 'resourceGroup', class: Google::Apis::MonitoringV3::ResourceGroup, decorator: Google::Apis::MonitoringV3::ResourceGroup::Representation
1887
1916
 
1888
1917
  collection :selected_regions, as: 'selectedRegions'
1918
+ property :synthetic_monitor, as: 'syntheticMonitor', class: Google::Apis::MonitoringV3::SyntheticMonitorTarget, decorator: Google::Apis::MonitoringV3::SyntheticMonitorTarget::Representation
1919
+
1889
1920
  property :tcp_check, as: 'tcpCheck', class: Google::Apis::MonitoringV3::TcpCheck, decorator: Google::Apis::MonitoringV3::TcpCheck::Representation
1890
1921
 
1891
1922
  property :timeout, as: 'timeout'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.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: 2023-07-09 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3
63
63
  post_install_message:
64
64
  rdoc_options: []