google-apis-monitoring_v3 0.73.0 → 0.74.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: cdf3bfd38e176f1938f45b61cd8b89c5743ddda3b487dd989995c4471a129891
4
- data.tar.gz: 102bcab389d9345fc6c10bad4fc0d1db13cea0cb142c1f380d834e64c011b17b
3
+ metadata.gz: 74e6178ec06ae8a77113f65cc55c6f651229267d87191b79c11e992873e618d5
4
+ data.tar.gz: eee55c42dbe448fb5be113e147d2412636affc05f9fd7f1ad93823b6021cb4f0
5
5
  SHA512:
6
- metadata.gz: 53ec2fdba70c357351fde3bd6d680717777ffc064117ff0cd4f75a13eb76496c7170ac6af51aface682a3ce4b45c2c0d9be52933e51eafa85dd42f33a76dfb46
7
- data.tar.gz: f1ba284c266ca4588ae0887b1e375525cfd8a54b623059a04542f7ed6cca9008b693a46a936dab4c808ae53fcca8fc5b875a546ef2cff29a3c03182f5a0d979f
6
+ metadata.gz: '069ac548adb9c128ffe7e1f9902f0f57c4852a16f930d2ab818ca65c2c816ea20d7200ff3eabd6b7eb45cf1e428d88c46807295c187a1c74bcd8d48ecdc44c5d'
7
+ data.tar.gz: 6316b635b17f1496eb067be9b2d3cb20a09dfc7446d0f4b985f3d72a6ef43e1735e0e201ae5bbeb60318a07c44fec75a505ce8a5f11d60541824f81ae392e01c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-monitoring_v3
2
2
 
3
+ ### v0.74.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250130
6
+
3
7
  ### v0.73.0 (2025-01-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20250102
@@ -1095,10 +1095,25 @@ module Google
1095
1095
  class Criteria
1096
1096
  include Google::Apis::Core::Hashable
1097
1097
 
1098
+ # Optional. The filter string to match on Alert fields when silencing the alerts.
1099
+ # It follows the standard https://google.aip.dev/160 syntax. A filter string
1100
+ # used to apply the snooze to specific incidents that have matching filter
1101
+ # values. Filters can be defined for snoozes that apply to one alerting policy.
1102
+ # Filters must be a string formatted as one or more resource labels with
1103
+ # specific label values. If multiple resource labels are used, then they must be
1104
+ # connected with an AND operator. For example, the following filter applies the
1105
+ # snooze to incidents that have an instance ID of 1234567890 and a zone of us-
1106
+ # central1-a: resource.labels.instance_id="1234567890" AND resource.labels.zone="
1107
+ # us-central1-a"
1108
+ # Corresponds to the JSON property `filter`
1109
+ # @return [String]
1110
+ attr_accessor :filter
1111
+
1098
1112
  # The specific AlertPolicy names for the alert that should be snoozed. The
1099
1113
  # format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is
1100
1114
  # a limit of 16 policies per snooze. This limit is checked during snooze
1101
- # creation.
1115
+ # creation. Exactly 1 alert policy is required if filter is specified at the
1116
+ # same time.
1102
1117
  # Corresponds to the JSON property `policies`
1103
1118
  # @return [Array<String>]
1104
1119
  attr_accessor :policies
@@ -1109,6 +1124,7 @@ module Google
1109
1124
 
1110
1125
  # Update properties of this object
1111
1126
  def update!(**args)
1127
+ @filter = args[:filter] if args.key?(:filter)
1112
1128
  @policies = args[:policies] if args.key?(:policies)
1113
1129
  end
1114
1130
  end
@@ -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.73.0"
19
+ GEM_VERSION = "0.74.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250102"
25
+ REVISION = "20250130"
26
26
  end
27
27
  end
28
28
  end
@@ -1044,6 +1044,7 @@ module Google
1044
1044
  class Criteria
1045
1045
  # @private
1046
1046
  class Representation < Google::Apis::Core::JsonRepresentation
1047
+ property :filter, as: 'filter'
1047
1048
  collection :policies, as: 'policies'
1048
1049
  end
1049
1050
  end
@@ -998,6 +998,16 @@ module Google
998
998
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
999
999
  # on which to execute the request. The format is: projects/[
1000
1000
  # PROJECT_ID_OR_NUMBER]
1001
+ # @param [Boolean] active_only
1002
+ # Optional. If true, only metrics and monitored resource types that have recent
1003
+ # data (within roughly 25 hours) will be included in the response. - If a metric
1004
+ # descriptor enumerates monitored resource types, only the monitored resource
1005
+ # types for which the metric type has recent data will be included in the
1006
+ # returned metric descriptor, and if none of them have recent data, the metric
1007
+ # descriptor will not be returned. - If a metric descriptor does not enumerate
1008
+ # the compatible monitored resource types, it will be returned only if the
1009
+ # metric type has recent data for some monitored resource type. The returned
1010
+ # descriptor will not enumerate any monitored resource types.
1001
1011
  # @param [String] filter
1002
1012
  # Optional. If this field is empty, all custom and system-defined metric
1003
1013
  # descriptors are returned. Otherwise, the filter (https://cloud.google.com/
@@ -1030,11 +1040,12 @@ module Google
1030
1040
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1031
1041
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1032
1042
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1033
- def list_project_metric_descriptors(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1043
+ def list_project_metric_descriptors(name, active_only: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1034
1044
  command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
1035
1045
  command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
1036
1046
  command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
1037
1047
  command.params['name'] = name unless name.nil?
1048
+ command.query['activeOnly'] = active_only unless active_only.nil?
1038
1049
  command.query['filter'] = filter unless filter.nil?
1039
1050
  command.query['pageSize'] = page_size unless page_size.nil?
1040
1051
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1612,8 +1623,8 @@ module Google
1612
1623
  # @param [String] filter
1613
1624
  # Optional. Optional filter to restrict results to the given criteria. The
1614
1625
  # following fields are supported. interval.start_time interval.end_timeFor
1615
- # example: ``` interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.
1616
- # end_time < "2022-03-12T00:00:00-08:00" ```
1626
+ # example: interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.
1627
+ # end_time < "2022-03-12T00:00:00-08:00"
1617
1628
  # @param [Fixnum] page_size
1618
1629
  # Optional. The maximum number of results to return for a single query. The
1619
1630
  # server may further constrain the maximum number of results returned in a
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-monitoring_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.0
4
+ version: 0.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-12 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.73.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.74.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.2
76
+ rubygems_version: 3.6.5
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Cloud Monitoring API V3
79
79
  test_files: []