google-apis-monitoring_v3 0.17.0 → 0.21.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: 63bfeac745c978c6c5040ffab6b9151f1952d754200f6c1930b77c841bb8ce55
4
- data.tar.gz: b9448714b3437a09d07c4f745b8b7d63b890c0045ee9c2565e1e0c074f537ed1
3
+ metadata.gz: 79476f2ca9e53beaa2af1ba593559f6f7828a9289f40d92a4f830203343f282b
4
+ data.tar.gz: 53022c9f4844d45768cf5f36f516fe53b013747b7cfafece230d037f953e78ba
5
5
  SHA512:
6
- metadata.gz: 01fb1fda8b5b0e95460c13bf7e3b8aeaff15ea00aa169a454b3a32c901c1b597f5cafbe8bce2a2ab77cd4bc2659cc6c50e863947bf25378f684ac7f1dbe34c3b
7
- data.tar.gz: 1a2b9dd2f40fc68ed26911266e14501d6e638ab468970a556c7d21a20b020a90fef6d19afb6fc7fcbc3e62e7769bcd0336f3664bc60d44742afaef3bd8a96894
6
+ metadata.gz: d12a7fbd3c1966b0005aaea71c5c83192a040efb072879759a0ca5e5a8aea7372fe394ea36048543a88693ef0f597dae9f331909d9879171e9db692ba81c9b87
7
+ data.tar.gz: 790add2f7459e1996ace868aa52d311996f8a2967721c41e18a38fdc2d95d1ad1688ca92b696c058564c428e433a690124c739cba2ad9863f5b1a8758e0ad349
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.21.0 (2022-02-10)
4
+
5
+ * Regenerated from discovery document revision 20220205
6
+
7
+ ### v0.20.0 (2022-01-21)
8
+
9
+ * Regenerated from discovery document revision 20220117
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.19.0 (2021-12-16)
13
+
14
+ * Regenerated from discovery document revision 20211213
15
+ * Unspecified changes
16
+
17
+ ### v0.18.0 (2021-12-04)
18
+
19
+ * Regenerated from discovery document revision 20211201
20
+
3
21
  ### v0.17.0 (2021-11-05)
4
22
 
5
23
  * Regenerated from discovery document revision 20211031
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/monitoring_v3"
51
51
  client = Google::Apis::MonitoringV3::MonitoringService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -793,9 +793,9 @@ module Google
793
793
  # Information in the labels field identifies the actual resource and its
794
794
  # attributes according to the schema. For example, a particular Compute Engine
795
795
  # VM instance could be represented by the following object, because the
796
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
797
- # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", "
798
- # zone": "us-central1-a" ``
796
+ # MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "
797
+ # instance_id" and "zone": ` "type": "gce_instance", "labels": ` "project_id": "
798
+ # my-project", "instance_id": "12345678901234", "zone": "us-central1-a" ``
799
799
  # Corresponds to the JSON property `resource`
800
800
  # @return [Google::Apis::MonitoringV3::MonitoredResource]
801
801
  attr_accessor :resource
@@ -1479,9 +1479,9 @@ module Google
1479
1479
  # URL_ENCODED, the body passed in must be URL-encoded. Users can provide a
1480
1480
  # Content-Length header via the headers field or the API will do so. If the
1481
1481
  # request_method is GET and body is not empty, the API will return an error. The
1482
- # maximum byte size is 1 megabyte. Note: As with all bytes fields, JSON
1483
- # representations are base64 encoded. e.g.: "foo=bar" in URL-encoded form is "
1484
- # foo%3Dbar" and in base64 encoding is "Zm9vJTI1M0RiYXI=".
1482
+ # maximum byte size is 1 megabyte.Note: If client libraries aren't used (which
1483
+ # performs the conversion automatically) base64 encode your body data since the
1484
+ # field is of bytes type.
1485
1485
  # Corresponds to the JSON property `body`
1486
1486
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1487
1487
  # @return [String]
@@ -2589,6 +2589,12 @@ module Google
2589
2589
  # @return [String]
2590
2590
  attr_accessor :duration
2591
2591
 
2592
+ # A condition control that determines how metric-threshold conditions are
2593
+ # evaluated when data stops arriving.
2594
+ # Corresponds to the JSON property `evaluationMissingData`
2595
+ # @return [String]
2596
+ attr_accessor :evaluation_missing_data
2597
+
2592
2598
  # Required. A filter (https://cloud.google.com/monitoring/api/v3/filters) that
2593
2599
  # identifies which time series should be compared with the threshold.The filter
2594
2600
  # is similar to the one that is specified in the ListTimeSeries request (https://
@@ -2623,6 +2629,7 @@ module Google
2623
2629
  @denominator_aggregations = args[:denominator_aggregations] if args.key?(:denominator_aggregations)
2624
2630
  @denominator_filter = args[:denominator_filter] if args.key?(:denominator_filter)
2625
2631
  @duration = args[:duration] if args.key?(:duration)
2632
+ @evaluation_missing_data = args[:evaluation_missing_data] if args.key?(:evaluation_missing_data)
2626
2633
  @filter = args[:filter] if args.key?(:filter)
2627
2634
  @threshold_value = args[:threshold_value] if args.key?(:threshold_value)
2628
2635
  @trigger = args[:trigger] if args.key?(:trigger)
@@ -2636,9 +2643,9 @@ module Google
2636
2643
  # Information in the labels field identifies the actual resource and its
2637
2644
  # attributes according to the schema. For example, a particular Compute Engine
2638
2645
  # VM instance could be represented by the following object, because the
2639
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
2640
- # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", "
2641
- # zone": "us-central1-a" ``
2646
+ # MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "
2647
+ # instance_id" and "zone": ` "type": "gce_instance", "labels": ` "project_id": "
2648
+ # my-project", "instance_id": "12345678901234", "zone": "us-central1-a" ``
2642
2649
  class MonitoredResource
2643
2650
  include Google::Apis::Core::Hashable
2644
2651
 
@@ -2789,6 +2796,12 @@ module Google
2789
2796
  # @return [String]
2790
2797
  attr_accessor :duration
2791
2798
 
2799
+ # A condition control that determines how metric-threshold conditions are
2800
+ # evaluated when data stops arriving.
2801
+ # Corresponds to the JSON property `evaluationMissingData`
2802
+ # @return [String]
2803
+ attr_accessor :evaluation_missing_data
2804
+
2792
2805
  # Monitoring Query Language (https://cloud.google.com/monitoring/mql) query that
2793
2806
  # outputs a boolean stream.
2794
2807
  # Corresponds to the JSON property `query`
@@ -2808,6 +2821,7 @@ module Google
2808
2821
  # Update properties of this object
2809
2822
  def update!(**args)
2810
2823
  @duration = args[:duration] if args.key?(:duration)
2824
+ @evaluation_missing_data = args[:evaluation_missing_data] if args.key?(:evaluation_missing_data)
2811
2825
  @query = args[:query] if args.key?(:query)
2812
2826
  @trigger = args[:trigger] if args.key?(:trigger)
2813
2827
  end
@@ -3139,12 +3153,15 @@ module Google
3139
3153
  class Point
3140
3154
  include Google::Apis::Core::Hashable
3141
3155
 
3142
- # A closed time interval. It extends from the start time to the end time, and
3143
- # includes both: [startTime, endTime]. Valid time intervals depend on the
3144
- # MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
3145
- # metricDescriptors#MetricKind) of the metric value. The end time must not be
3146
- # earlier than the start time. When writing data points, the start time must not
3147
- # be more than 25 hours in the past and the end time must not be more than five
3156
+ # Describes a time interval: Reads: A half-open time interval. It includes the
3157
+ # end time but excludes the start time: (startTime, endTime]. The start time
3158
+ # must be specified, must be earlier than the end time, and should be no older
3159
+ # than the data retention period for the metric. Writes: A closed time interval.
3160
+ # It extends from the start time to the end time, and includes both: [startTime,
3161
+ # endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.
3162
+ # com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of
3163
+ # the metric value. The end time must not be earlier than the start time, and
3164
+ # the end time must not be more than 25 hours in the past or more than five
3148
3165
  # minutes in the future. For GAUGE metrics, the startTime value is technically
3149
3166
  # optional; if no value is specified, the start time defaults to the value of
3150
3167
  # the end time, and the interval represents a single point in time. If both
@@ -3191,12 +3208,15 @@ module Google
3191
3208
  class PointData
3192
3209
  include Google::Apis::Core::Hashable
3193
3210
 
3194
- # A closed time interval. It extends from the start time to the end time, and
3195
- # includes both: [startTime, endTime]. Valid time intervals depend on the
3196
- # MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
3197
- # metricDescriptors#MetricKind) of the metric value. The end time must not be
3198
- # earlier than the start time. When writing data points, the start time must not
3199
- # be more than 25 hours in the past and the end time must not be more than five
3211
+ # Describes a time interval: Reads: A half-open time interval. It includes the
3212
+ # end time but excludes the start time: (startTime, endTime]. The start time
3213
+ # must be specified, must be earlier than the end time, and should be no older
3214
+ # than the data retention period for the metric. Writes: A closed time interval.
3215
+ # It extends from the start time to the end time, and includes both: [startTime,
3216
+ # endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.
3217
+ # com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of
3218
+ # the metric value. The end time must not be earlier than the start time, and
3219
+ # the end time must not be more than 25 hours in the past or more than five
3200
3220
  # minutes in the future. For GAUGE metrics, the startTime value is technically
3201
3221
  # optional; if no value is specified, the start time defaults to the value of
3202
3222
  # the end time, and the interval represents a single point in time. If both
@@ -3753,12 +3773,15 @@ module Google
3753
3773
  end
3754
3774
  end
3755
3775
 
3756
- # A closed time interval. It extends from the start time to the end time, and
3757
- # includes both: [startTime, endTime]. Valid time intervals depend on the
3758
- # MetricKind (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.
3759
- # metricDescriptors#MetricKind) of the metric value. The end time must not be
3760
- # earlier than the start time. When writing data points, the start time must not
3761
- # be more than 25 hours in the past and the end time must not be more than five
3776
+ # Describes a time interval: Reads: A half-open time interval. It includes the
3777
+ # end time but excludes the start time: (startTime, endTime]. The start time
3778
+ # must be specified, must be earlier than the end time, and should be no older
3779
+ # than the data retention period for the metric. Writes: A closed time interval.
3780
+ # It extends from the start time to the end time, and includes both: [startTime,
3781
+ # endTime]. Valid time intervals depend on the MetricKind (https://cloud.google.
3782
+ # com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of
3783
+ # the metric value. The end time must not be earlier than the start time, and
3784
+ # the end time must not be more than 25 hours in the past or more than five
3762
3785
  # minutes in the future. For GAUGE metrics, the startTime value is technically
3763
3786
  # optional; if no value is specified, the start time defaults to the value of
3764
3787
  # the end time, and the interval represents a single point in time. If both
@@ -3854,9 +3877,9 @@ module Google
3854
3877
  # Information in the labels field identifies the actual resource and its
3855
3878
  # attributes according to the schema. For example, a particular Compute Engine
3856
3879
  # VM instance could be represented by the following object, because the
3857
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
3858
- # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", "
3859
- # zone": "us-central1-a" ``
3880
+ # MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "
3881
+ # instance_id" and "zone": ` "type": "gce_instance", "labels": ` "project_id": "
3882
+ # my-project", "instance_id": "12345678901234", "zone": "us-central1-a" ``
3860
3883
  # Corresponds to the JSON property `resource`
3861
3884
  # @return [Google::Apis::MonitoringV3::MonitoredResource]
3862
3885
  attr_accessor :resource
@@ -4130,6 +4153,11 @@ module Google
4130
4153
  class UptimeCheckConfig
4131
4154
  include Google::Apis::Core::Hashable
4132
4155
 
4156
+ # The type of checkers to use to execute the Uptime check.
4157
+ # Corresponds to the JSON property `checkerType`
4158
+ # @return [String]
4159
+ attr_accessor :checker_type
4160
+
4133
4161
  # The content that is expected to appear in the data returned by the target
4134
4162
  # server against which the check is run. Currently, only the first entry in the
4135
4163
  # content_matchers list is supported, and additional entries will be ignored.
@@ -4174,9 +4202,9 @@ module Google
4174
4202
  # Information in the labels field identifies the actual resource and its
4175
4203
  # attributes according to the schema. For example, a particular Compute Engine
4176
4204
  # VM instance could be represented by the following object, because the
4177
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
4178
- # zone": ` "type": "gce_instance", "labels": ` "instance_id": "12345678901234", "
4179
- # zone": "us-central1-a" ``
4205
+ # MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "
4206
+ # instance_id" and "zone": ` "type": "gce_instance", "labels": ` "project_id": "
4207
+ # my-project", "instance_id": "12345678901234", "zone": "us-central1-a" ``
4180
4208
  # Corresponds to the JSON property `monitoredResource`
4181
4209
  # @return [Google::Apis::MonitoringV3::MonitoredResource]
4182
4210
  attr_accessor :monitored_resource
@@ -4229,6 +4257,7 @@ module Google
4229
4257
 
4230
4258
  # Update properties of this object
4231
4259
  def update!(**args)
4260
+ @checker_type = args[:checker_type] if args.key?(:checker_type)
4232
4261
  @content_matchers = args[:content_matchers] if args.key?(:content_matchers)
4233
4262
  @display_name = args[:display_name] if args.key?(:display_name)
4234
4263
  @http_check = args[:http_check] if args.key?(:http_check)
@@ -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.17.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211031"
25
+ REVISION = "20220205"
26
26
  end
27
27
  end
28
28
  end
@@ -1257,6 +1257,7 @@ module Google
1257
1257
 
1258
1258
  property :denominator_filter, as: 'denominatorFilter'
1259
1259
  property :duration, as: 'duration'
1260
+ property :evaluation_missing_data, as: 'evaluationMissingData'
1260
1261
  property :filter, as: 'filter'
1261
1262
  property :threshold_value, as: 'thresholdValue'
1262
1263
  property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation
@@ -1297,6 +1298,7 @@ module Google
1297
1298
  # @private
1298
1299
  class Representation < Google::Apis::Core::JsonRepresentation
1299
1300
  property :duration, as: 'duration'
1301
+ property :evaluation_missing_data, as: 'evaluationMissingData'
1300
1302
  property :query, as: 'query'
1301
1303
  property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation
1302
1304
 
@@ -1630,6 +1632,7 @@ module Google
1630
1632
  class UptimeCheckConfig
1631
1633
  # @private
1632
1634
  class Representation < Google::Apis::Core::JsonRepresentation
1635
+ property :checker_type, as: 'checkerType'
1633
1636
  collection :content_matchers, as: 'contentMatchers', class: Google::Apis::MonitoringV3::ContentMatcher, decorator: Google::Apis::MonitoringV3::ContentMatcher::Representation
1634
1637
 
1635
1638
  property :display_name, as: 'displayName'
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.17.0
4
+ version: 0.21.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: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2022-02-14 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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.21.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Monitoring API V3