google-cloud-monitoring-v3 0.8.0 → 0.10.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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +4 -4
- data/lib/google/cloud/monitoring/v3/alert_policy_service.rb +4 -4
- data/lib/google/cloud/monitoring/v3/group_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/metric_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/notification_channel_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/query_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/service_monitoring_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/snooze_service/client.rb +748 -0
- data/lib/google/cloud/monitoring/v3/snooze_service/credentials.rb +53 -0
- data/lib/google/cloud/monitoring/v3/snooze_service/paths.rb +149 -0
- data/lib/google/cloud/monitoring/v3/snooze_service.rb +51 -0
- data/lib/google/cloud/monitoring/v3/uptime_check_service.rb +1 -1
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/cloud/monitoring/v3.rb +3 -2
- data/lib/google/monitoring/v3/alert_pb.rb +9 -0
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +3 -3
- data/lib/google/monitoring/v3/snooze_pb.rb +33 -0
- data/lib/google/monitoring/v3/snooze_service_pb.rb +51 -0
- data/lib/google/monitoring/v3/snooze_service_services_pb.rb +57 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +3 -3
- data/proto_docs/google/api/monitored_resource.rb +9 -2
- data/proto_docs/google/monitoring/v3/alert.rb +33 -4
- data/proto_docs/google/monitoring/v3/alert_service.rb +1 -1
- data/proto_docs/google/monitoring/v3/snooze.rb +74 -0
- data/proto_docs/google/monitoring/v3/snooze_service.rb +154 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +15 -5
@@ -0,0 +1,154 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Monitoring
|
23
|
+
module V3
|
24
|
+
# The message definition for creating a `Snooze`. Users must provide the body
|
25
|
+
# of the `Snooze` to be created but must omit the `Snooze` field, `name`.
|
26
|
+
# @!attribute [rw] parent
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The
|
29
|
+
# [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
|
30
|
+
# a `Snooze` should be created. The format is:
|
31
|
+
#
|
32
|
+
# projects/[PROJECT_ID_OR_NUMBER]
|
33
|
+
# @!attribute [rw] snooze
|
34
|
+
# @return [::Google::Cloud::Monitoring::V3::Snooze]
|
35
|
+
# Required. The `Snooze` to create. Omit the `name` field, as it will be
|
36
|
+
# filled in by the API.
|
37
|
+
class CreateSnoozeRequest
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
end
|
41
|
+
|
42
|
+
# The message definition for listing `Snooze`s associated with the given
|
43
|
+
# `parent`, satisfying the optional `filter`.
|
44
|
+
# @!attribute [rw] parent
|
45
|
+
# @return [::String]
|
46
|
+
# Required. The
|
47
|
+
# [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
|
48
|
+
# `Snooze`s should be listed. The format is:
|
49
|
+
#
|
50
|
+
# projects/[PROJECT_ID_OR_NUMBER]
|
51
|
+
# @!attribute [rw] filter
|
52
|
+
# @return [::String]
|
53
|
+
# Optional. Optional filter to restrict results to the given criteria. The
|
54
|
+
# following fields are supported.
|
55
|
+
#
|
56
|
+
# * `interval.start_time`
|
57
|
+
# * `interval.end_time`
|
58
|
+
#
|
59
|
+
# For example:
|
60
|
+
#
|
61
|
+
# ```
|
62
|
+
# interval.start_time > "2022-03-11T00:00:00-08:00" AND
|
63
|
+
# interval.end_time < "2022-03-12T00:00:00-08:00"
|
64
|
+
# ```
|
65
|
+
# @!attribute [rw] page_size
|
66
|
+
# @return [::Integer]
|
67
|
+
# Optional. The maximum number of results to return for a single query. The
|
68
|
+
# server may further constrain the maximum number of results returned in a
|
69
|
+
# single page. The value should be in the range [1, 1000]. If the value given
|
70
|
+
# is outside this range, the server will decide the number of results to be
|
71
|
+
# returned.
|
72
|
+
# @!attribute [rw] page_token
|
73
|
+
# @return [::String]
|
74
|
+
# Optional. The `next_page_token` from a previous call to
|
75
|
+
# `ListSnoozesRequest` to get the next page of results.
|
76
|
+
class ListSnoozesRequest
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# The results of a successful `ListSnoozes` call, containing the matching
|
82
|
+
# `Snooze`s.
|
83
|
+
# @!attribute [rw] snoozes
|
84
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::Snooze>]
|
85
|
+
# `Snooze`s matching this list call.
|
86
|
+
# @!attribute [rw] next_page_token
|
87
|
+
# @return [::String]
|
88
|
+
# Page token for repeated calls to `ListSnoozes`, to fetch additional pages
|
89
|
+
# of results. If this is empty or missing, there are no more pages.
|
90
|
+
class ListSnoozesResponse
|
91
|
+
include ::Google::Protobuf::MessageExts
|
92
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
93
|
+
end
|
94
|
+
|
95
|
+
# The message definition for retrieving a `Snooze`. Users must specify the
|
96
|
+
# field, `name`, which identifies the `Snooze`.
|
97
|
+
# @!attribute [rw] name
|
98
|
+
# @return [::String]
|
99
|
+
# Required. The ID of the `Snooze` to retrieve. The format is:
|
100
|
+
#
|
101
|
+
# projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]
|
102
|
+
class GetSnoozeRequest
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
# The message definition for updating a `Snooze`. The field, `snooze.name`
|
108
|
+
# identifies the `Snooze` to be updated. The remainder of `snooze` gives the
|
109
|
+
# content the `Snooze` in question will be assigned.
|
110
|
+
#
|
111
|
+
# What fields can be updated depends on the start time and end time of the
|
112
|
+
# `Snooze`.
|
113
|
+
#
|
114
|
+
# * end time is in the past: These `Snooze`s are considered
|
115
|
+
# read-only and cannot be updated.
|
116
|
+
# * start time is in the past and end time is in the future: `display_name`
|
117
|
+
# and `interval.end_time` can be updated.
|
118
|
+
# * start time is in the future: `display_name`, `interval.start_time` and
|
119
|
+
# `interval.end_time` can be updated.
|
120
|
+
# @!attribute [rw] snooze
|
121
|
+
# @return [::Google::Cloud::Monitoring::V3::Snooze]
|
122
|
+
# Required. The `Snooze` to update. Must have the name field present.
|
123
|
+
# @!attribute [rw] update_mask
|
124
|
+
# @return [::Google::Protobuf::FieldMask]
|
125
|
+
# Required. The fields to update.
|
126
|
+
#
|
127
|
+
# For each field listed in `update_mask`:
|
128
|
+
#
|
129
|
+
# * If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
|
130
|
+
# value for that field, the value of the field in the existing `Snooze`
|
131
|
+
# will be set to the value of the field in the supplied `Snooze`.
|
132
|
+
# * If the field does not have a value in the supplied `Snooze`, the field
|
133
|
+
# in the existing `Snooze` is set to its default value.
|
134
|
+
#
|
135
|
+
# Fields not listed retain their existing value.
|
136
|
+
#
|
137
|
+
# The following are the field names that are accepted in `update_mask`:
|
138
|
+
#
|
139
|
+
# * `display_name`
|
140
|
+
# * `interval.start_time`
|
141
|
+
# * `interval.end_time`
|
142
|
+
#
|
143
|
+
# That said, the start time and end time of the `Snooze` determines which
|
144
|
+
# fields can legally be updated. Before attempting an update, users should
|
145
|
+
# consult the documentation for `UpdateSnoozeRequest`, which talks about
|
146
|
+
# which fields can be updated.
|
147
|
+
class UpdateSnoozeRequest
|
148
|
+
include ::Google::Protobuf::MessageExts
|
149
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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:
|
11
|
+
date: 2023-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.16.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:
|
29
|
+
version: 0.16.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -195,6 +195,10 @@ files:
|
|
195
195
|
- lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb
|
196
196
|
- lib/google/cloud/monitoring/v3/service_monitoring_service/credentials.rb
|
197
197
|
- lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb
|
198
|
+
- lib/google/cloud/monitoring/v3/snooze_service.rb
|
199
|
+
- lib/google/cloud/monitoring/v3/snooze_service/client.rb
|
200
|
+
- lib/google/cloud/monitoring/v3/snooze_service/credentials.rb
|
201
|
+
- lib/google/cloud/monitoring/v3/snooze_service/paths.rb
|
198
202
|
- lib/google/cloud/monitoring/v3/uptime_check_service.rb
|
199
203
|
- lib/google/cloud/monitoring/v3/uptime_check_service/client.rb
|
200
204
|
- lib/google/cloud/monitoring/v3/uptime_check_service/credentials.rb
|
@@ -220,11 +224,15 @@ files:
|
|
220
224
|
- lib/google/monitoring/v3/service_pb.rb
|
221
225
|
- lib/google/monitoring/v3/service_service_pb.rb
|
222
226
|
- lib/google/monitoring/v3/service_service_services_pb.rb
|
227
|
+
- lib/google/monitoring/v3/snooze_pb.rb
|
228
|
+
- lib/google/monitoring/v3/snooze_service_pb.rb
|
229
|
+
- lib/google/monitoring/v3/snooze_service_services_pb.rb
|
223
230
|
- lib/google/monitoring/v3/span_context_pb.rb
|
224
231
|
- lib/google/monitoring/v3/uptime_pb.rb
|
225
232
|
- lib/google/monitoring/v3/uptime_service_pb.rb
|
226
233
|
- lib/google/monitoring/v3/uptime_service_services_pb.rb
|
227
234
|
- proto_docs/README.md
|
235
|
+
- proto_docs/google/api/client.rb
|
228
236
|
- proto_docs/google/api/distribution.rb
|
229
237
|
- proto_docs/google/api/field_behavior.rb
|
230
238
|
- proto_docs/google/api/label.rb
|
@@ -245,6 +253,8 @@ files:
|
|
245
253
|
- proto_docs/google/monitoring/v3/notification_service.rb
|
246
254
|
- proto_docs/google/monitoring/v3/service.rb
|
247
255
|
- proto_docs/google/monitoring/v3/service_service.rb
|
256
|
+
- proto_docs/google/monitoring/v3/snooze.rb
|
257
|
+
- proto_docs/google/monitoring/v3/snooze_service.rb
|
248
258
|
- proto_docs/google/monitoring/v3/span_context.rb
|
249
259
|
- proto_docs/google/monitoring/v3/uptime.rb
|
250
260
|
- proto_docs/google/monitoring/v3/uptime_service.rb
|
@@ -276,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
286
|
- !ruby/object:Gem::Version
|
277
287
|
version: '0'
|
278
288
|
requirements: []
|
279
|
-
rubygems_version: 3.
|
289
|
+
rubygems_version: 3.4.2
|
280
290
|
signing_key:
|
281
291
|
specification_version: 4
|
282
292
|
summary: API Client library for the Cloud Monitoring V3 API
|