google-apis-monitoring_v3 0.64.0 → 0.83.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.
@@ -495,21 +495,22 @@ module Google
495
495
  # the alerting policies to be listed are stored. To retrieve a single alerting
496
496
  # policy by name, use the GetAlertPolicy operation, instead.
497
497
  # @param [String] filter
498
- # If provided, this field specifies the criteria that must be met by alert
499
- # policies to be included in the response.For more details, see sorting and
500
- # filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
501
- # @param [String] order_by
502
- # A comma-separated list of fields by which to sort the result. Supports the
503
- # same set of field references as the filter field. Entries can be prefixed with
504
- # a minus sign to sort by the field in descending order.For more details, see
505
- # sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
498
+ # Optional. If provided, this field specifies the criteria that must be met by
499
+ # alert policies to be included in the response.For more details, see sorting
500
+ # and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
506
501
  # filtering).
502
+ # @param [String] order_by
503
+ # Optional. A comma-separated list of fields by which to sort the result.
504
+ # Supports the same set of field references as the filter field. Entries can be
505
+ # prefixed with a minus sign to sort by the field in descending order.For more
506
+ # details, see sorting and filtering (https://cloud.google.com/monitoring/api/v3/
507
+ # sorting-and-filtering).
507
508
  # @param [Fixnum] page_size
508
- # The maximum number of results to return in a single response.
509
+ # Optional. The maximum number of results to return in a single response.
509
510
  # @param [String] page_token
510
- # If this field is not empty then it must contain the nextPageToken value
511
- # returned by a previous call to this method. Using this field causes the method
512
- # to return more results from the previous method call.
511
+ # Optional. If this field is not empty then it must contain the nextPageToken
512
+ # value returned by a previous call to this method. Using this field causes the
513
+ # method to return more results from the previous method call.
513
514
  # @param [String] fields
514
515
  # Selector specifying which fields to include in a partial response.
515
516
  # @param [String] quota_user
@@ -548,9 +549,9 @@ module Google
548
549
  # the state of alerting policies in a single project. This includes calls to
549
550
  # CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
550
551
  # @param [String] name
551
- # Required if the policy exists. The resource name for this policy. The format
552
- # is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID] [
553
- # ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created.
552
+ # Identifier. Required if the policy exists. The resource name for this policy.
553
+ # The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
554
+ # [ALERT_POLICY_ID] is assigned by Cloud Monitoring when the policy is created.
554
555
  # When calling the alertPolicies.create method, do not include the name field in
555
556
  # the alerting policy passed as part of the request.
556
557
  # @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object
@@ -600,6 +601,89 @@ module Google
600
601
  execute_or_queue_command(command, &block)
601
602
  end
602
603
 
604
+ # Gets a single alert.
605
+ # @param [String] name
606
+ # Required. The name of the alert.The format is: projects/[PROJECT_ID_OR_NUMBER]/
607
+ # alerts/[ALERT_ID] The [ALERT_ID] is a system-assigned unique identifier for
608
+ # the alert.
609
+ # @param [String] fields
610
+ # Selector specifying which fields to include in a partial response.
611
+ # @param [String] quota_user
612
+ # Available to use for quota purposes for server-side applications. Can be any
613
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
614
+ # @param [Google::Apis::RequestOptions] options
615
+ # Request-specific options
616
+ #
617
+ # @yield [result, err] Result & error if block supplied
618
+ # @yieldparam result [Google::Apis::MonitoringV3::Alert] parsed result object
619
+ # @yieldparam err [StandardError] error object if request failed
620
+ #
621
+ # @return [Google::Apis::MonitoringV3::Alert]
622
+ #
623
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
624
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
625
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
626
+ def get_project_alert(name, fields: nil, quota_user: nil, options: nil, &block)
627
+ command = make_simple_command(:get, 'v3/{+name}', options)
628
+ command.response_representation = Google::Apis::MonitoringV3::Alert::Representation
629
+ command.response_class = Google::Apis::MonitoringV3::Alert
630
+ command.params['name'] = name unless name.nil?
631
+ command.query['fields'] = fields unless fields.nil?
632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
633
+ execute_or_queue_command(command, &block)
634
+ end
635
+
636
+ # Lists the existing alerts for the metrics scope of the project.
637
+ # @param [String] parent
638
+ # Required. The name of the project to list alerts for.
639
+ # @param [String] filter
640
+ # Optional. An alert is returned if there is a match on any fields belonging to
641
+ # the alert or its subfields.
642
+ # @param [String] order_by
643
+ # Optional. A comma-separated list of fields in Alert to use for sorting. The
644
+ # default sort direction is ascending. To specify descending order for a field,
645
+ # add a desc modifier. The following fields are supported: open_time
646
+ # close_timeFor example, close_time desc, open_time will return the alerts
647
+ # closed most recently, with ties broken in the order of older alerts listed
648
+ # first.If the field is not set, the results are sorted by open_time desc.
649
+ # @param [Fixnum] page_size
650
+ # Optional. The maximum number of results to return in a single response. If not
651
+ # set to a positive number, at most 50 alerts will be returned. The maximum
652
+ # value is 1000; values above 1000 will be coerced to 1000.
653
+ # @param [String] page_token
654
+ # Optional. If non-empty, page_token must contain a value returned as the
655
+ # next_page_token in a previous response to request the next set of results.
656
+ # @param [String] fields
657
+ # Selector specifying which fields to include in a partial response.
658
+ # @param [String] quota_user
659
+ # Available to use for quota purposes for server-side applications. Can be any
660
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
661
+ # @param [Google::Apis::RequestOptions] options
662
+ # Request-specific options
663
+ #
664
+ # @yield [result, err] Result & error if block supplied
665
+ # @yieldparam result [Google::Apis::MonitoringV3::ListAlertsResponse] parsed result object
666
+ # @yieldparam err [StandardError] error object if request failed
667
+ #
668
+ # @return [Google::Apis::MonitoringV3::ListAlertsResponse]
669
+ #
670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
673
+ def list_project_alerts(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
674
+ command = make_simple_command(:get, 'v3/{+parent}/alerts', options)
675
+ command.response_representation = Google::Apis::MonitoringV3::ListAlertsResponse::Representation
676
+ command.response_class = Google::Apis::MonitoringV3::ListAlertsResponse
677
+ command.params['parent'] = parent unless parent.nil?
678
+ command.query['filter'] = filter unless filter.nil?
679
+ command.query['orderBy'] = order_by unless order_by.nil?
680
+ command.query['pageSize'] = page_size unless page_size.nil?
681
+ command.query['pageToken'] = page_token unless page_token.nil?
682
+ command.query['fields'] = fields unless fields.nil?
683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
684
+ execute_or_queue_command(command, &block)
685
+ end
686
+
603
687
  # Cloud Monitoring Agent only: Creates a new time series.This method is only for
604
688
  # use by the Cloud Monitoring Agent. Use projects.timeSeries.create instead.
605
689
  # @param [String] name
@@ -997,21 +1081,31 @@ module Google
997
1081
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
998
1082
  # on which to execute the request. The format is: projects/[
999
1083
  # PROJECT_ID_OR_NUMBER]
1084
+ # @param [Boolean] active_only
1085
+ # Optional. If true, only metrics and monitored resource types that have recent
1086
+ # data (within roughly 25 hours) will be included in the response. - If a metric
1087
+ # descriptor enumerates monitored resource types, only the monitored resource
1088
+ # types for which the metric type has recent data will be included in the
1089
+ # returned metric descriptor, and if none of them have recent data, the metric
1090
+ # descriptor will not be returned. - If a metric descriptor does not enumerate
1091
+ # the compatible monitored resource types, it will be returned only if the
1092
+ # metric type has recent data for some monitored resource type. The returned
1093
+ # descriptor will not enumerate any monitored resource types.
1000
1094
  # @param [String] filter
1001
- # If this field is empty, all custom and system-defined metric descriptors are
1002
- # returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/
1003
- # filters) specifies which metric descriptors are to be returned. For example,
1004
- # the following filter matches all custom metrics (https://cloud.google.com/
1005
- # monitoring/custom-metrics): metric.type = starts_with("custom.googleapis.com/")
1006
- #
1095
+ # Optional. If this field is empty, all custom and system-defined metric
1096
+ # descriptors are returned. Otherwise, the filter (https://cloud.google.com/
1097
+ # monitoring/api/v3/filters) specifies which metric descriptors are to be
1098
+ # returned. For example, the following filter matches all custom metrics (https:/
1099
+ # /cloud.google.com/monitoring/custom-metrics): metric.type = starts_with("
1100
+ # custom.googleapis.com/")
1007
1101
  # @param [Fixnum] page_size
1008
- # A positive number that is the maximum number of results to return. The default
1009
- # and maximum value is 10,000. If a page_size <= 0 or > 10,000 is submitted,
1010
- # will instead return a maximum of 10,000 results.
1102
+ # Optional. A positive number that is the maximum number of results to return.
1103
+ # The default and maximum value is 10,000. If a page_size <= 0 or > 10,000 is
1104
+ # submitted, will instead return a maximum of 10,000 results.
1011
1105
  # @param [String] page_token
1012
- # If this field is not empty then it must contain the nextPageToken value
1013
- # returned by a previous call to this method. Using this field causes the method
1014
- # to return additional results from the previous method call.
1106
+ # Optional. If this field is not empty then it must contain the nextPageToken
1107
+ # value returned by a previous call to this method. Using this field causes the
1108
+ # method to return additional results from the previous method call.
1015
1109
  # @param [String] fields
1016
1110
  # Selector specifying which fields to include in a partial response.
1017
1111
  # @param [String] quota_user
@@ -1029,11 +1123,12 @@ module Google
1029
1123
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1030
1124
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1031
1125
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1032
- def list_project_metric_descriptors(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1126
+ 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)
1033
1127
  command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
1034
1128
  command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
1035
1129
  command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
1036
1130
  command.params['name'] = name unless name.nil?
1131
+ command.query['activeOnly'] = active_only unless active_only.nil?
1037
1132
  command.query['filter'] = filter unless filter.nil?
1038
1133
  command.query['pageSize'] = page_size unless page_size.nil?
1039
1134
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1250,8 +1345,8 @@ module Google
1250
1345
  # @param [Boolean] force
1251
1346
  # If true, the notification channel will be deleted regardless of its use in
1252
1347
  # alert policies (the policies will be updated to remove the channel). If false,
1253
- # channels that are still referenced by an existing alerting policy will fail to
1254
- # be deleted in a delete operation.
1348
+ # this operation will fail if the notification channel is referenced by existing
1349
+ # alerting policies.
1255
1350
  # @param [String] fields
1256
1351
  # Selector specifying which fields to include in a partial response.
1257
1352
  # @param [String] quota_user
@@ -1378,22 +1473,22 @@ module Google
1378
1473
  # specific channel by REST resource name, use the GetNotificationChannel
1379
1474
  # operation.
1380
1475
  # @param [String] filter
1381
- # If provided, this field specifies the criteria that must be met by
1476
+ # Optional. If provided, this field specifies the criteria that must be met by
1382
1477
  # notification channels to be included in the response.For more details, see
1383
1478
  # sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
1384
1479
  # filtering).
1385
1480
  # @param [String] order_by
1386
- # A comma-separated list of fields by which to sort the result. Supports the
1387
- # same set of fields as in filter. Entries can be prefixed with a minus sign to
1388
- # sort in descending rather than ascending order.For more details, see sorting
1389
- # and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
1390
- # filtering).
1481
+ # Optional. A comma-separated list of fields by which to sort the result.
1482
+ # Supports the same set of fields as in filter. Entries can be prefixed with a
1483
+ # minus sign to sort in descending rather than ascending order.For more details,
1484
+ # see sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-
1485
+ # and-filtering).
1391
1486
  # @param [Fixnum] page_size
1392
- # The maximum number of results to return in a single response. If not set to a
1393
- # positive number, a reasonable value will be chosen by the service.
1487
+ # Optional. The maximum number of results to return in a single response. If not
1488
+ # set to a positive number, a reasonable value will be chosen by the service.
1394
1489
  # @param [String] page_token
1395
- # If non-empty, page_token must contain a value returned as the next_page_token
1396
- # in a previous response to request the next set of results.
1490
+ # Optional. If non-empty, page_token must contain a value returned as the
1491
+ # next_page_token in a previous response to request the next set of results.
1397
1492
  # @param [String] fields
1398
1493
  # Selector specifying which fields to include in a partial response.
1399
1494
  # @param [String] quota_user
@@ -1431,12 +1526,12 @@ module Google
1431
1526
  # CreateNotificationChannel, DeleteNotificationChannel and
1432
1527
  # UpdateNotificationChannel.
1433
1528
  # @param [String] name
1434
- # The full REST resource name for this channel. The format is: projects/[
1435
- # PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] is
1436
- # automatically assigned by the server on creation.
1529
+ # Identifier. The full REST resource name for this channel. The format is:
1530
+ # projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] The [
1531
+ # CHANNEL_ID] is automatically assigned by the server on creation.
1437
1532
  # @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object
1438
1533
  # @param [String] update_mask
1439
- # The fields to update.
1534
+ # Optional. The fields to update.
1440
1535
  # @param [String] fields
1441
1536
  # Selector specifying which fields to include in a partial response.
1442
1537
  # @param [String] quota_user
@@ -1611,8 +1706,8 @@ module Google
1611
1706
  # @param [String] filter
1612
1707
  # Optional. Optional filter to restrict results to the given criteria. The
1613
1708
  # following fields are supported. interval.start_time interval.end_timeFor
1614
- # example: ``` interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.
1615
- # end_time < "2022-03-12T00:00:00-08:00" ```
1709
+ # example: interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.
1710
+ # end_time < "2022-03-12T00:00:00-08:00"
1616
1711
  # @param [Fixnum] page_size
1617
1712
  # Optional. The maximum number of results to return for a single query. The
1618
1713
  # server may further constrain the maximum number of results returned in a
@@ -1945,7 +2040,10 @@ module Google
1945
2040
  execute_or_queue_command(command, &block)
1946
2041
  end
1947
2042
 
1948
- # Queries time series using Monitoring Query Language.
2043
+ # Queries time series by using Monitoring Query Language (MQL). We recommend
2044
+ # using PromQL instead of MQL. For more information about the status of MQL, see
2045
+ # the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/
2046
+ # deprecations/mql).
1949
2047
  # @param [String] name
1950
2048
  # Required. The project (https://cloud.google.com/monitoring/api/v3#project_name)
1951
2049
  # on which to execute the request. The format is: projects/[
metadata CHANGED
@@ -1,14 +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.64.0
4
+ version: 0.83.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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.64.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.83.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
66
  requirements:
69
67
  - - ">="
70
68
  - !ruby/object:Gem::Version
71
- version: '2.7'
69
+ version: '3.1'
72
70
  required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  requirements:
74
72
  - - ">="
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.9
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Cloud Monitoring API V3
82
79
  test_files: []