google-cloud-monitoring 0.31.0 → 0.32.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/lib/google/cloud/monitoring.rb +1 -1
- data/lib/google/cloud/monitoring/v3.rb +1 -1
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +5 -11
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +17 -3
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +7 -1
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +3 -1
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +4 -6
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +125 -67
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +13 -13
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb +6 -4
- data/lib/google/cloud/monitoring/v3/group_service_client.rb +7 -1
- data/lib/google/cloud/monitoring/v3/metric_service_client.rb +8 -11
- data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +21 -21
- data/lib/google/cloud/monitoring/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +2 -1
- data/lib/google/monitoring/v3/alert_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/common_pb.rb +0 -1
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +0 -1
- data/lib/google/monitoring/v3/group_service_pb.rb +2 -0
- data/lib/google/monitoring/v3/group_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/metric_pb.rb +1 -1
- data/lib/google/monitoring/v3/metric_service_pb.rb +2 -0
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +6 -11
- data/lib/google/monitoring/v3/notification_pb.rb +0 -1
- data/lib/google/monitoring/v3/notification_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -1
- data/lib/google/monitoring/v3/uptime_pb.rb +17 -1
- data/lib/google/monitoring/v3/uptime_service_pb.rb +2 -0
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +11 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d54ca27cd867b5b10a787882380c20c36360b5a18cea1bc0b653f711e6fa1f0
|
4
|
+
data.tar.gz: ca12b4e7e51da60d4c6da2692e19ddb20d0abf57aba0a1ccf27bc4f4d5d5f70a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31e3f5b762caa50accd163f62447dc05bc9fbe7f99eaad3279a82b7657653ddd71c6928db07830e25b847a04d6744e561a68a096e574485a33f4ed92eedfbbb6
|
7
|
+
data.tar.gz: 97904c3fd9b4852971f3b45478e7a4bc994f23e036e6186aaedb0a7bf3b2e010afe00d3b15894df42101dbe5c9eecbee961447223afe30d8de81f145de6ef079
|
@@ -358,7 +358,7 @@ module Google
|
|
358
358
|
module UptimeCheck
|
359
359
|
##
|
360
360
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
361
|
-
#
|
361
|
+
# Uptime check configurations in the Stackdriver Monitoring product. An Uptime
|
362
362
|
# check is a piece of configuration that determines which resources and
|
363
363
|
# services to monitor for availability. These configurations can also be
|
364
364
|
# configured interactively by navigating to the [Cloud Console]
|
@@ -388,7 +388,7 @@ module Google
|
|
388
388
|
module UptimeCheck
|
389
389
|
##
|
390
390
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
391
|
-
#
|
391
|
+
# Uptime check configurations in the Stackdriver Monitoring product. An Uptime
|
392
392
|
# check is a piece of configuration that determines which resources and
|
393
393
|
# services to monitor for availability. These configurations can also be
|
394
394
|
# configured interactively by navigating to the [Cloud Console]
|
@@ -71,6 +71,10 @@ module Google
|
|
71
71
|
# any assumption about the state if it has not been populated. The
|
72
72
|
# field should always be populated on List and Get operations, unless
|
73
73
|
# a field projection has been specified that strips it out.
|
74
|
+
# @!attribute [rw] validity
|
75
|
+
# @return [Google::Rpc::Status]
|
76
|
+
# Read-only description of how the alert policy is invalid. OK if the alert
|
77
|
+
# policy is valid. If not OK, the alert policy will not generate incidents.
|
74
78
|
# @!attribute [rw] notification_channels
|
75
79
|
# @return [Array<String>]
|
76
80
|
# Identifies the notification channels to which notifications should be sent
|
@@ -198,11 +202,7 @@ module Google
|
|
198
202
|
# the time series specified by the `filter` field will be used as the
|
199
203
|
# numerator.
|
200
204
|
#
|
201
|
-
# The filter
|
202
|
-
# [`MetricService.ListTimeSeries`
|
203
|
-
# request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list) (that
|
204
|
-
# call is useful to verify the time series that will be retrieved /
|
205
|
-
# processed) and must specify the metric type and optionally may contain
|
205
|
+
# The filter must specify the metric type and optionally may contain
|
206
206
|
# restrictions on resource type, resource labels, and metric labels.
|
207
207
|
# This field may not exceed 2048 Unicode characters in length.
|
208
208
|
# @!attribute [rw] denominator_aggregations
|
@@ -217,12 +217,6 @@ module Google
|
|
217
217
|
# When computing ratios, the `aggregations` and
|
218
218
|
# `denominator_aggregations` fields must use the same alignment period
|
219
219
|
# and produce time series that have the same periodicity and labels.
|
220
|
-
#
|
221
|
-
# This field is similar to the one in the
|
222
|
-
# [`MetricService.ListTimeSeries`
|
223
|
-
# request](/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list). It
|
224
|
-
# is advisable to use the `ListTimeSeries` method when debugging this
|
225
|
-
# field.
|
226
220
|
# @!attribute [rw] comparison
|
227
221
|
# @return [Google::Monitoring::V3::ComparisonType]
|
228
222
|
# The comparison to apply between the time series (indicated by `filter`
|
@@ -36,9 +36,23 @@ module Google
|
|
36
36
|
# A distribution value.
|
37
37
|
class TypedValue; end
|
38
38
|
|
39
|
-
# A time interval
|
40
|
-
#
|
41
|
-
#
|
39
|
+
# A closed time interval. It extends from the start time to the end time, and includes both: `[startTime, endTime]`. Valid time intervals depend on the [`MetricKind`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricKind) of the metric value. In no case can the end time be earlier than the start time.
|
40
|
+
#
|
41
|
+
# * For a `GAUGE` metric, the `startTime` value is technically optional; if
|
42
|
+
# no value is specified, the start time defaults to the value of the
|
43
|
+
# end time, and the interval represents a single point in time. Such an
|
44
|
+
# interval is valid only for `GAUGE` metrics, which are point-in-time
|
45
|
+
# measurements.
|
46
|
+
#
|
47
|
+
# * For `DELTA` and `CUMULATIVE` metrics, the start time must be earlier
|
48
|
+
# than the end time.
|
49
|
+
#
|
50
|
+
# * In all cases, the start time of the next interval must be
|
51
|
+
# at least a microsecond after the end time of the previous interval.
|
52
|
+
# Because the interval is closed, if the start time of a new interval
|
53
|
+
# is the same as the end time of the previous interval, data written
|
54
|
+
# at the new start time could overwrite data written at the previous
|
55
|
+
# end time.
|
42
56
|
# @!attribute [rw] end_time
|
43
57
|
# @return [Google::Protobuf::Timestamp]
|
44
58
|
# Required. The end of the time interval.
|
@@ -91,11 +91,17 @@ module Google
|
|
91
91
|
# If true, validate this request but do not update the existing group.
|
92
92
|
class UpdateGroupRequest; end
|
93
93
|
|
94
|
-
# The `DeleteGroup` request.
|
94
|
+
# The `DeleteGroup` request. The default behavior is to be able to delete a
|
95
|
+
# single group without any descendants.
|
95
96
|
# @!attribute [rw] name
|
96
97
|
# @return [String]
|
97
98
|
# The group to delete. The format is
|
98
99
|
# `"projects/{project_id_or_number}/groups/{group_id}"`.
|
100
|
+
# @!attribute [rw] recursive
|
101
|
+
# @return [true, false]
|
102
|
+
# If this field is true, then the request means to delete a group with all
|
103
|
+
# its descendants. Otherwise, the request means to delete a group only when
|
104
|
+
# it has no descendants. The default value is false.
|
99
105
|
class DeleteGroupRequest; end
|
100
106
|
|
101
107
|
# The `ListGroupMembers` request.
|
@@ -140,7 +140,7 @@ module Google
|
|
140
140
|
# example:
|
141
141
|
#
|
142
142
|
# metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
|
143
|
-
# metric.
|
143
|
+
# metric.labels.instance_name = "my-instance-name"
|
144
144
|
# @!attribute [rw] interval
|
145
145
|
# @return [Google::Monitoring::V3::TimeInterval]
|
146
146
|
# The time interval for which results should be returned. Only time series
|
@@ -210,6 +210,8 @@ module Google
|
|
210
210
|
# point must be more recent than any other point in its time series. Each
|
211
211
|
# `TimeSeries` value must fully specify a unique time series by supplying
|
212
212
|
# all label values for the metric and the monitored resource.
|
213
|
+
#
|
214
|
+
# The maximum number of `TimeSeries` objects per `Create` request is 200.
|
213
215
|
class CreateTimeSeriesRequest; end
|
214
216
|
end
|
215
217
|
end
|
@@ -58,9 +58,7 @@ module Google
|
|
58
58
|
# @!attribute [rw] type
|
59
59
|
# @return [String]
|
60
60
|
# The type of the notification channel. This field matches the
|
61
|
-
# value of the
|
62
|
-
# {Google::Monitoring::V3::NotificationChannelDescriptor#type NotificationChannelDescriptor#type}
|
63
|
-
# field.
|
61
|
+
# value of the {Google::Monitoring::V3::NotificationChannelDescriptor#type NotificationChannelDescriptor#type} field.
|
64
62
|
# @!attribute [rw] name
|
65
63
|
# @return [String]
|
66
64
|
# The full REST resource name for this channel. The syntax is:
|
@@ -78,13 +76,13 @@ module Google
|
|
78
76
|
# @return [String]
|
79
77
|
# An optional human-readable description of this notification channel. This
|
80
78
|
# description may provide additional details, beyond the display
|
81
|
-
# name, for the channel. This may not
|
79
|
+
# name, for the channel. This may not exceed 1024 Unicode characters.
|
82
80
|
# @!attribute [rw] labels
|
83
81
|
# @return [Hash{String => String}]
|
84
82
|
# Configuration fields that define the channel and its behavior. The
|
85
83
|
# permissible and required labels are specified in the
|
86
|
-
# {Google::Monitoring::V3::NotificationChannelDescriptor#labels NotificationChannelDescriptor#labels}
|
87
|
-
#
|
84
|
+
# {Google::Monitoring::V3::NotificationChannelDescriptor#labels NotificationChannelDescriptor#labels} of the
|
85
|
+
# `NotificationChannelDescriptor` corresponding to the `type` field.
|
88
86
|
# @!attribute [rw] user_labels
|
89
87
|
# @return [Hash{String => String}]
|
90
88
|
# User-supplied key/value data that does not need to conform to
|
@@ -16,17 +16,16 @@
|
|
16
16
|
module Google
|
17
17
|
module Monitoring
|
18
18
|
module V3
|
19
|
-
# An internal checker allows
|
19
|
+
# An internal checker allows Uptime checks to run on private/internal GCP
|
20
20
|
# resources.
|
21
21
|
# @!attribute [rw] name
|
22
22
|
# @return [String]
|
23
23
|
# A unique resource name for this InternalChecker. The format is:
|
24
24
|
#
|
25
|
-
#
|
26
25
|
# `projects/[PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID]`.
|
27
26
|
#
|
28
|
-
# PROJECT_ID is the
|
29
|
-
#
|
27
|
+
# `[PROJECT_ID]` is the Stackdriver Workspace project for the
|
28
|
+
# Uptime check config associated with the internal checker.
|
30
29
|
# @!attribute [rw] display_name
|
31
30
|
# @return [String]
|
32
31
|
# The checker's human-readable name. The display name
|
@@ -38,29 +37,53 @@ module Google
|
|
38
37
|
# internal resource lives (ex: "default").
|
39
38
|
# @!attribute [rw] gcp_zone
|
40
39
|
# @return [String]
|
41
|
-
# The GCP zone the
|
42
|
-
# internal
|
40
|
+
# The GCP zone the Uptime check should egress from. Only respected for
|
41
|
+
# internal Uptime checks, where internal_network is specified.
|
43
42
|
# @!attribute [rw] peer_project_id
|
44
43
|
# @return [String]
|
45
|
-
# The GCP
|
46
|
-
# the same as the
|
47
|
-
|
44
|
+
# The GCP project ID where the internal checker lives. Not necessary
|
45
|
+
# the same as the Workspace project.
|
46
|
+
# @!attribute [rw] state
|
47
|
+
# @return [Google::Monitoring::V3::InternalChecker::State]
|
48
|
+
# The current operational state of the internal checker.
|
49
|
+
class InternalChecker
|
50
|
+
# Operational states for an internal checker.
|
51
|
+
module State
|
52
|
+
# An internal checker should never be in the unspecified state.
|
53
|
+
UNSPECIFIED = 0
|
54
|
+
|
55
|
+
# The checker is being created, provisioned, and configured. A checker in
|
56
|
+
# this state can be returned by `ListInternalCheckers` or
|
57
|
+
# `GetInternalChecker`, as well as by examining the [long running
|
58
|
+
# Operation](https://cloud.google.com/apis/design/design_patterns#long_running_operations)
|
59
|
+
# that created it.
|
60
|
+
CREATING = 1
|
61
|
+
|
62
|
+
# The checker is running and available for use. A checker in this state
|
63
|
+
# can be returned by `ListInternalCheckers` or `GetInternalChecker` as
|
64
|
+
# well as by examining the [long running
|
65
|
+
# Operation](https://cloud.google.com/apis/design/design_patterns#long_running_operations)
|
66
|
+
# that created it.
|
67
|
+
# If a checker is being torn down, it is neither visible nor usable, so
|
68
|
+
# there is no "deleting" or "down" state.
|
69
|
+
RUNNING = 2
|
70
|
+
end
|
71
|
+
end
|
48
72
|
|
49
73
|
# This message configures which resources and services to monitor for
|
50
74
|
# availability.
|
51
75
|
# @!attribute [rw] name
|
52
76
|
# @return [String]
|
53
|
-
# A unique resource name for this
|
54
|
-
#
|
77
|
+
# A unique resource name for this Uptime check configuration. The format is:
|
55
78
|
#
|
56
79
|
# `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
|
57
80
|
#
|
58
|
-
# This field should be omitted when creating the
|
81
|
+
# This field should be omitted when creating the Uptime check configuration;
|
59
82
|
# on create, the resource name is assigned by the server and included in the
|
60
83
|
# response.
|
61
84
|
# @!attribute [rw] display_name
|
62
85
|
# @return [String]
|
63
|
-
# A human-friendly name for the
|
86
|
+
# A human-friendly name for the Uptime check configuration. The display name
|
64
87
|
# should be unique within a Stackdriver Workspace in order to make it easier
|
65
88
|
# to identify; however, uniqueness is not enforced. Required.
|
66
89
|
# @!attribute [rw] monitored_resource
|
@@ -68,12 +91,12 @@ module Google
|
|
68
91
|
# The [monitored
|
69
92
|
# resource](https://cloud.google.com/monitoring/api/resources) associated
|
70
93
|
# with the configuration.
|
71
|
-
# The following monitored resource types are supported for
|
72
|
-
# uptime_url
|
73
|
-
# gce_instance
|
74
|
-
# gae_app
|
75
|
-
# aws_ec2_instance
|
76
|
-
# aws_elb_load_balancer
|
94
|
+
# The following monitored resource types are supported for Uptime checks:
|
95
|
+
# `uptime_url`,
|
96
|
+
# `gce_instance`,
|
97
|
+
# `gae_app`,
|
98
|
+
# `aws_ec2_instance`,
|
99
|
+
# `aws_elb_load_balancer`
|
77
100
|
# @!attribute [rw] resource_group
|
78
101
|
# @return [Google::Monitoring::V3::UptimeCheckConfig::ResourceGroup]
|
79
102
|
# The group resource associated with the configuration.
|
@@ -85,66 +108,63 @@ module Google
|
|
85
108
|
# Contains information needed to make a TCP check.
|
86
109
|
# @!attribute [rw] period
|
87
110
|
# @return [Google::Protobuf::Duration]
|
88
|
-
# How often, in seconds, the
|
111
|
+
# How often, in seconds, the Uptime check is performed.
|
89
112
|
# Currently, the only supported values are `60s` (1 minute), `300s`
|
90
113
|
# (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
|
91
|
-
# defaults to `
|
114
|
+
# defaults to `60s`.
|
92
115
|
# @!attribute [rw] timeout
|
93
116
|
# @return [Google::Protobuf::Duration]
|
94
117
|
# The maximum amount of time to wait for the request to complete (must be
|
95
118
|
# between 1 and 60 seconds). Required.
|
96
119
|
# @!attribute [rw] content_matchers
|
97
120
|
# @return [Array<Google::Monitoring::V3::UptimeCheckConfig::ContentMatcher>]
|
98
|
-
# The expected
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
121
|
+
# The content that is expected to appear in the data returned by the target
|
122
|
+
# server against which the check is run. Currently, only the first entry
|
123
|
+
# in the `content_matchers` list is supported, and additional entries will
|
124
|
+
# be ignored. This field is optional and should only be specified if a
|
125
|
+
# content match is required as part of the/ Uptime check.
|
103
126
|
# @!attribute [rw] selected_regions
|
104
127
|
# @return [Array<Google::Monitoring::V3::UptimeCheckRegion>]
|
105
128
|
# The list of regions from which the check will be run.
|
106
129
|
# Some regions contain one location, and others contain more than one.
|
107
|
-
# If this field is specified, enough regions to include a
|
108
|
-
# 3 locations
|
109
|
-
#
|
110
|
-
# regions.
|
111
|
-
# @!attribute [rw] is_internal
|
112
|
-
# @return [true, false]
|
113
|
-
# If this is true, then checks are made only from the 'internal_checkers'.
|
114
|
-
# If it is false, then checks are made only from the 'selected_regions'.
|
115
|
-
# It is an error to provide 'selected_regions' when is_internal is true,
|
116
|
-
# or to provide 'internal_checkers' when is_internal is false.
|
130
|
+
# If this field is specified, enough regions must be provided to include a
|
131
|
+
# minimum of 3 locations. Not specifying this field will result in Uptime
|
132
|
+
# checks running from all available regions.
|
117
133
|
# @!attribute [rw] internal_checkers
|
118
134
|
# @return [Array<Google::Monitoring::V3::InternalChecker>]
|
119
135
|
# The internal checkers that this check will egress from. If `is_internal` is
|
120
|
-
# true and this list is empty, the check will egress from all the
|
121
|
-
# InternalCheckers configured for the project that owns this
|
136
|
+
# `true` and this list is empty, the check will egress from all the
|
137
|
+
# InternalCheckers configured for the project that owns this
|
138
|
+
# `UptimeCheckConfig`.
|
122
139
|
class UptimeCheckConfig
|
123
140
|
# The resource submessage for group checks. It can be used instead of a
|
124
141
|
# monitored resource, when multiple resources are being monitored.
|
125
142
|
# @!attribute [rw] group_id
|
126
143
|
# @return [String]
|
127
|
-
# The group of resources being monitored. Should be only the
|
128
|
-
#
|
144
|
+
# The group of resources being monitored. Should be only the `[GROUP_ID]`,
|
145
|
+
# and not the full-path `projects/[PROJECT_ID]/groups/[GROUP_ID]`.
|
129
146
|
# @!attribute [rw] resource_type
|
130
147
|
# @return [Google::Monitoring::V3::GroupResourceType]
|
131
148
|
# The resource type of the group members.
|
132
149
|
class ResourceGroup; end
|
133
150
|
|
134
|
-
# Information involved in an HTTP/HTTPS
|
151
|
+
# Information involved in an HTTP/HTTPS Uptime check request.
|
135
152
|
# @!attribute [rw] use_ssl
|
136
153
|
# @return [true, false]
|
137
|
-
# If true
|
154
|
+
# If `true`, use HTTPS instead of HTTP to run the check.
|
138
155
|
# @!attribute [rw] path
|
139
156
|
# @return [String]
|
140
|
-
#
|
141
|
-
#
|
142
|
-
# full URL.
|
157
|
+
# Optional (defaults to "/"). The path to the page against which to run
|
158
|
+
# the check. Will be combined with the `host` (specified within the
|
159
|
+
# `monitored_resource`) and `port` to construct the full URL. If the
|
160
|
+
# provided path does not begin with "/", a "/" will be prepended
|
161
|
+
# automatically.
|
143
162
|
# @!attribute [rw] port
|
144
163
|
# @return [Integer]
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
164
|
+
# Optional (defaults to 80 when `use_ssl` is `false`, and 443 when
|
165
|
+
# `use_ssl` is `true`). The TCP port on the HTTP server against which to
|
166
|
+
# run the check. Will be combined with host (specified within the
|
167
|
+
# `monitored_resource`) and `path` to construct the full URL.
|
148
168
|
# @!attribute [rw] auth_info
|
149
169
|
# @return [Google::Monitoring::V3::UptimeCheckConfig::HttpCheck::BasicAuthentication]
|
150
170
|
# The authentication information. Optional when creating an HTTP check;
|
@@ -155,11 +175,11 @@ module Google
|
|
155
175
|
# Encryption should be specified for any headers related to authentication
|
156
176
|
# that you do not wish to be seen when retrieving the configuration. The
|
157
177
|
# server will be responsible for encrypting the headers.
|
158
|
-
# On Get/List calls, if mask_headers is set to
|
159
|
-
# will be obscured with
|
178
|
+
# On Get/List calls, if `mask_headers` is set to `true` then the headers
|
179
|
+
# will be obscured with `******.`
|
160
180
|
# @!attribute [rw] headers
|
161
181
|
# @return [Hash{String => String}]
|
162
|
-
# The list of headers to send as part of the
|
182
|
+
# The list of headers to send as part of the Uptime check request.
|
163
183
|
# If two headers have the same key and different values, they should
|
164
184
|
# be entered as a single header, with the value being a comma-separated
|
165
185
|
# list of all the desired values as described at
|
@@ -167,25 +187,32 @@ module Google
|
|
167
187
|
# Entering two separate headers with the same key in a Create call will
|
168
188
|
# cause the first to be overwritten by the second.
|
169
189
|
# The maximum number of headers allowed is 100.
|
190
|
+
# @!attribute [rw] validate_ssl
|
191
|
+
# @return [true, false]
|
192
|
+
# Boolean specifying whether to include SSL certificate validation as a
|
193
|
+
# part of the Uptime check. Only applies to checks where
|
194
|
+
# `monitored_resource` is set to `uptime_url`. If `use_ssl` is `false`,
|
195
|
+
# setting `validate_ssl` to `true` has no effect.
|
170
196
|
class HttpCheck
|
171
|
-
#
|
172
|
-
# that
|
173
|
-
#
|
197
|
+
# The authentication parameters to provide to the specified resource or
|
198
|
+
# URL that requires a username and password. Currently, only
|
199
|
+
# [Basic HTTP authentication](https://tools.ietf.org/html/rfc7617) is
|
200
|
+
# supported in Uptime checks.
|
174
201
|
# @!attribute [rw] username
|
175
202
|
# @return [String]
|
176
|
-
# The username to
|
203
|
+
# The username to use when authenticating with the HTTP server.
|
177
204
|
# @!attribute [rw] password
|
178
205
|
# @return [String]
|
179
|
-
# The password to
|
206
|
+
# The password to use when authenticating with the HTTP server.
|
180
207
|
class BasicAuthentication; end
|
181
208
|
end
|
182
209
|
|
183
|
-
# Information required for a TCP
|
210
|
+
# Information required for a TCP Uptime check request.
|
184
211
|
# @!attribute [rw] port
|
185
212
|
# @return [Integer]
|
186
|
-
# The port
|
187
|
-
# (specified within the
|
188
|
-
# Required.
|
213
|
+
# The TCP port on the server against which to run the check. Will be
|
214
|
+
# combined with host (specified within the `monitored_resource`) to
|
215
|
+
# construct the full URL. Required.
|
189
216
|
class TcpCheck; end
|
190
217
|
|
191
218
|
# Used to perform string matching. It allows substring and regular
|
@@ -193,7 +220,38 @@ module Google
|
|
193
220
|
# @!attribute [rw] content
|
194
221
|
# @return [String]
|
195
222
|
# String or regex content to match (max 1024 bytes)
|
196
|
-
|
223
|
+
# @!attribute [rw] matcher
|
224
|
+
# @return [Google::Monitoring::V3::UptimeCheckConfig::ContentMatcher::ContentMatcherOption]
|
225
|
+
# The type of content matcher that will be applied to the server output,
|
226
|
+
# compared to the `content` string when the check is run.
|
227
|
+
class ContentMatcher
|
228
|
+
# Options to perform content matching.
|
229
|
+
module ContentMatcherOption
|
230
|
+
# No content matcher type specified (maintained for backward
|
231
|
+
# compatibility, but deprecated for future use).
|
232
|
+
# Treated as `CONTAINS_STRING`.
|
233
|
+
CONTENT_MATCHER_OPTION_UNSPECIFIED = 0
|
234
|
+
|
235
|
+
# Selects substring matching (there is a match if the output contains
|
236
|
+
# the `content` string). This is the default value for checks without
|
237
|
+
# a `matcher` option, or where the value of `matcher` is
|
238
|
+
# `CONTENT_MATCHER_OPTION_UNSPECIFIED`.
|
239
|
+
CONTAINS_STRING = 1
|
240
|
+
|
241
|
+
# Selects negation of substring matching (there is a match if the output
|
242
|
+
# does NOT contain the `content` string).
|
243
|
+
NOT_CONTAINS_STRING = 2
|
244
|
+
|
245
|
+
# Selects regular expression matching (there is a match of the output
|
246
|
+
# matches the regular expression specified in the `content` string).
|
247
|
+
MATCHES_REGEX = 3
|
248
|
+
|
249
|
+
# Selects negation of regular expression matching (there is a match if
|
250
|
+
# the output does NOT match the regular expression specified in the
|
251
|
+
# `content` string).
|
252
|
+
NOT_MATCHES_REGEX = 4
|
253
|
+
end
|
254
|
+
end
|
197
255
|
end
|
198
256
|
|
199
257
|
# Contains the region, location, and list of IP
|
@@ -208,10 +266,10 @@ module Google
|
|
208
266
|
# within the broader umbrella region category.
|
209
267
|
# @!attribute [rw] ip_address
|
210
268
|
# @return [String]
|
211
|
-
# The IP address from which the
|
212
|
-
# IP address (not an IP address range). Most IP addresses, as of
|
213
|
-
# publication, are in IPv4 format; however, one should not rely on the
|
214
|
-
# IP addresses being in IPv4 format indefinitely and should support
|
269
|
+
# The IP address from which the Uptime check originates. This is a fully
|
270
|
+
# specified IP address (not an IP address range). Most IP addresses, as of
|
271
|
+
# this publication, are in IPv4 format; however, one should not rely on the
|
272
|
+
# IP addresses being in IPv4 format indefinitely, and should support
|
215
273
|
# interpreting this field in either IPv4 or IPv6 format.
|
216
274
|
class UptimeCheckIp; end
|
217
275
|
|
@@ -232,9 +290,9 @@ module Google
|
|
232
290
|
AWS_ELB_LOAD_BALANCER = 2
|
233
291
|
end
|
234
292
|
|
235
|
-
# The regions from which an
|
293
|
+
# The regions from which an Uptime check can be run.
|
236
294
|
module UptimeCheckRegion
|
237
|
-
# Default value if no region is specified. Will result in
|
295
|
+
# Default value if no region is specified. Will result in Uptime checks
|
238
296
|
# running from all regions.
|
239
297
|
REGION_UNSPECIFIED = 0
|
240
298
|
|
@@ -19,7 +19,7 @@ module Google
|
|
19
19
|
# The protocol for the `ListUptimeCheckConfigs` request.
|
20
20
|
# @!attribute [rw] parent
|
21
21
|
# @return [String]
|
22
|
-
# The project whose
|
22
|
+
# The project whose Uptime check configurations are listed. The format
|
23
23
|
# is `projects/[PROJECT_ID]`.
|
24
24
|
# @!attribute [rw] page_size
|
25
25
|
# @return [Integer]
|
@@ -37,7 +37,7 @@ module Google
|
|
37
37
|
# The protocol for the `ListUptimeCheckConfigs` response.
|
38
38
|
# @!attribute [rw] uptime_check_configs
|
39
39
|
# @return [Array<Google::Monitoring::V3::UptimeCheckConfig>]
|
40
|
-
# The returned
|
40
|
+
# The returned Uptime check configurations.
|
41
41
|
# @!attribute [rw] next_page_token
|
42
42
|
# @return [String]
|
43
43
|
# This field represents the pagination token to retrieve the next page of
|
@@ -47,41 +47,41 @@ module Google
|
|
47
47
|
# request message's page_token field).
|
48
48
|
# @!attribute [rw] total_size
|
49
49
|
# @return [Integer]
|
50
|
-
# The total number of
|
50
|
+
# The total number of Uptime check configurations for the project,
|
51
51
|
# irrespective of any pagination.
|
52
52
|
class ListUptimeCheckConfigsResponse; end
|
53
53
|
|
54
54
|
# The protocol for the `GetUptimeCheckConfig` request.
|
55
55
|
# @!attribute [rw] name
|
56
56
|
# @return [String]
|
57
|
-
# The
|
57
|
+
# The Uptime check configuration to retrieve. The format
|
58
58
|
# is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
|
59
59
|
class GetUptimeCheckConfigRequest; end
|
60
60
|
|
61
61
|
# The protocol for the `CreateUptimeCheckConfig` request.
|
62
62
|
# @!attribute [rw] parent
|
63
63
|
# @return [String]
|
64
|
-
# The project in which to create the
|
64
|
+
# The project in which to create the Uptime check. The format
|
65
65
|
# is `projects/[PROJECT_ID]`.
|
66
66
|
# @!attribute [rw] uptime_check_config
|
67
67
|
# @return [Google::Monitoring::V3::UptimeCheckConfig]
|
68
|
-
# The new
|
68
|
+
# The new Uptime check configuration.
|
69
69
|
class CreateUptimeCheckConfigRequest; end
|
70
70
|
|
71
71
|
# The protocol for the `UpdateUptimeCheckConfig` request.
|
72
72
|
# @!attribute [rw] update_mask
|
73
73
|
# @return [Google::Protobuf::FieldMask]
|
74
|
-
# Optional. If present, only the listed fields in the current
|
74
|
+
# Optional. If present, only the listed fields in the current Uptime check
|
75
75
|
# configuration are updated with values from the new configuration. If this
|
76
76
|
# field is empty, then the current configuration is completely replaced with
|
77
77
|
# the new configuration.
|
78
78
|
# @!attribute [rw] uptime_check_config
|
79
79
|
# @return [Google::Monitoring::V3::UptimeCheckConfig]
|
80
|
-
# Required. If an `
|
81
|
-
# the values for the set of fields mentioned in the `
|
82
|
-
# `
|
83
|
-
# the current configuration. If a field is mentioned in `
|
84
|
-
# the corresonding field is omitted in this partial
|
80
|
+
# Required. If an `updateMask` has been specified, this field gives
|
81
|
+
# the values for the set of fields mentioned in the `updateMask`. If an
|
82
|
+
# `updateMask` has not been given, this Uptime check configuration replaces
|
83
|
+
# the current configuration. If a field is mentioned in `updateMask` but
|
84
|
+
# the corresonding field is omitted in this partial Uptime check
|
85
85
|
# configuration, it has the effect of deleting/clearing the field from the
|
86
86
|
# configuration on the server.
|
87
87
|
#
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
# The protocol for the `DeleteUptimeCheckConfig` request.
|
94
94
|
# @!attribute [rw] name
|
95
95
|
# @return [String]
|
96
|
-
# The
|
96
|
+
# The Uptime check configuration to delete. The format
|
97
97
|
# is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
|
98
98
|
class DeleteUptimeCheckConfigRequest; end
|
99
99
|
|
@@ -88,11 +88,13 @@ module Google
|
|
88
88
|
# 01:30 UTC on January 15, 2017.
|
89
89
|
#
|
90
90
|
# In JavaScript, one can convert a Date object to this format using the
|
91
|
-
# standard
|
91
|
+
# standard
|
92
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
92
93
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
93
|
-
# to this format using
|
94
|
-
#
|
95
|
-
#
|
94
|
+
# to this format using
|
95
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
96
98
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
97
99
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
98
100
|
# @!attribute [rw] seconds
|
@@ -476,6 +476,10 @@ module Google
|
|
476
476
|
# @param name [String]
|
477
477
|
# The group to delete. The format is
|
478
478
|
# `"projects/{project_id_or_number}/groups/{group_id}"`.
|
479
|
+
# @param recursive [true, false]
|
480
|
+
# If this field is true, then the request means to delete a group with all
|
481
|
+
# its descendants. Otherwise, the request means to delete a group only when
|
482
|
+
# it has no descendants. The default value is false.
|
479
483
|
# @param options [Google::Gax::CallOptions]
|
480
484
|
# Overrides the default settings for this call, e.g, timeout,
|
481
485
|
# retries, etc.
|
@@ -492,10 +496,12 @@ module Google
|
|
492
496
|
|
493
497
|
def delete_group \
|
494
498
|
name,
|
499
|
+
recursive: nil,
|
495
500
|
options: nil,
|
496
501
|
&block
|
497
502
|
req = {
|
498
|
-
name: name
|
503
|
+
name: name,
|
504
|
+
recursive: recursive
|
499
505
|
}.delete_if { |_, v| v.nil? }
|
500
506
|
req = Google::Gax::to_proto(req, Google::Monitoring::V3::DeleteGroupRequest)
|
501
507
|
@delete_group.call(req, options, &block)
|
@@ -306,8 +306,7 @@ module Google
|
|
306
306
|
|
307
307
|
# Service calls
|
308
308
|
|
309
|
-
# Lists monitored resource descriptors that match a filter. This method does
|
310
|
-
# not require a Stackdriver account.
|
309
|
+
# Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
|
311
310
|
#
|
312
311
|
# @param name [String]
|
313
312
|
# The project on which to execute the request. The format is
|
@@ -372,8 +371,7 @@ module Google
|
|
372
371
|
@list_monitored_resource_descriptors.call(req, options, &block)
|
373
372
|
end
|
374
373
|
|
375
|
-
# Gets a single monitored resource descriptor. This method does not require a
|
376
|
-
# Stackdriver account.
|
374
|
+
# Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
|
377
375
|
#
|
378
376
|
# @param name [String]
|
379
377
|
# The monitored resource descriptor to get. The format is
|
@@ -406,8 +404,7 @@ module Google
|
|
406
404
|
@get_monitored_resource_descriptor.call(req, options, &block)
|
407
405
|
end
|
408
406
|
|
409
|
-
# Lists metric descriptors that match a filter. This method does not require
|
410
|
-
# a Stackdriver account.
|
407
|
+
# Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
|
411
408
|
#
|
412
409
|
# @param name [String]
|
413
410
|
# The project on which to execute the request. The format is
|
@@ -473,8 +470,7 @@ module Google
|
|
473
470
|
@list_metric_descriptors.call(req, options, &block)
|
474
471
|
end
|
475
472
|
|
476
|
-
# Gets a single metric descriptor. This method does not require a Stackdriver
|
477
|
-
# account.
|
473
|
+
# Gets a single metric descriptor. This method does not require a Stackdriver account.
|
478
474
|
#
|
479
475
|
# @param name [String]
|
480
476
|
# The metric descriptor on which to execute the request. The format is
|
@@ -584,8 +580,7 @@ module Google
|
|
584
580
|
nil
|
585
581
|
end
|
586
582
|
|
587
|
-
# Lists time series that match a filter. This method does not require a
|
588
|
-
# Stackdriver account.
|
583
|
+
# Lists time series that match a filter. This method does not require a Stackdriver account.
|
589
584
|
#
|
590
585
|
# @param name [String]
|
591
586
|
# The project on which to execute the request. The format is
|
@@ -597,7 +592,7 @@ module Google
|
|
597
592
|
# example:
|
598
593
|
#
|
599
594
|
# metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
|
600
|
-
# metric.
|
595
|
+
# metric.labels.instance_name = "my-instance-name"
|
601
596
|
# @param interval [Google::Monitoring::V3::TimeInterval | Hash]
|
602
597
|
# The time interval for which results should be returned. Only time series
|
603
598
|
# that contain data points in the specified interval are included
|
@@ -698,6 +693,8 @@ module Google
|
|
698
693
|
# point must be more recent than any other point in its time series. Each
|
699
694
|
# `TimeSeries` value must fully specify a unique time series by supplying
|
700
695
|
# all label values for the metric and the monitored resource.
|
696
|
+
#
|
697
|
+
# The maximum number of `TimeSeries` objects per `Create` request is 200.
|
701
698
|
# A hash of the same form as `Google::Monitoring::V3::TimeSeries`
|
702
699
|
# can also be provided.
|
703
700
|
# @param options [Google::Gax::CallOptions]
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
module Monitoring
|
35
35
|
module V3
|
36
36
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
37
|
-
#
|
37
|
+
# Uptime check configurations in the Stackdriver Monitoring product. An Uptime
|
38
38
|
# check is a piece of configuration that determines which resources and
|
39
39
|
# services to monitor for availability. These configurations can also be
|
40
40
|
# configured interactively by navigating to the [Cloud Console]
|
@@ -272,11 +272,11 @@ module Google
|
|
272
272
|
|
273
273
|
# Service calls
|
274
274
|
|
275
|
-
# Lists the existing valid
|
276
|
-
# leaving out any invalid configurations.
|
275
|
+
# Lists the existing valid Uptime check configurations for the project
|
276
|
+
# (leaving out any invalid configurations).
|
277
277
|
#
|
278
278
|
# @param parent [String]
|
279
|
-
# The project whose
|
279
|
+
# The project whose Uptime check configurations are listed. The format
|
280
280
|
# is `projects/[PROJECT_ID]`.
|
281
281
|
# @param page_size [Integer]
|
282
282
|
# The maximum number of resources contained in the underlying API
|
@@ -328,10 +328,10 @@ module Google
|
|
328
328
|
@list_uptime_check_configs.call(req, options, &block)
|
329
329
|
end
|
330
330
|
|
331
|
-
# Gets a single
|
331
|
+
# Gets a single Uptime check configuration.
|
332
332
|
#
|
333
333
|
# @param name [String]
|
334
|
-
# The
|
334
|
+
# The Uptime check configuration to retrieve. The format
|
335
335
|
# is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
|
336
336
|
# @param options [Google::Gax::CallOptions]
|
337
337
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -359,13 +359,13 @@ module Google
|
|
359
359
|
@get_uptime_check_config.call(req, options, &block)
|
360
360
|
end
|
361
361
|
|
362
|
-
# Creates a new
|
362
|
+
# Creates a new Uptime check configuration.
|
363
363
|
#
|
364
364
|
# @param parent [String]
|
365
|
-
# The project in which to create the
|
365
|
+
# The project in which to create the Uptime check. The format
|
366
366
|
# is `projects/[PROJECT_ID]`.
|
367
367
|
# @param uptime_check_config [Google::Monitoring::V3::UptimeCheckConfig | Hash]
|
368
|
-
# The new
|
368
|
+
# The new Uptime check configuration.
|
369
369
|
# A hash of the same form as `Google::Monitoring::V3::UptimeCheckConfig`
|
370
370
|
# can also be provided.
|
371
371
|
# @param options [Google::Gax::CallOptions]
|
@@ -399,17 +399,17 @@ module Google
|
|
399
399
|
@create_uptime_check_config.call(req, options, &block)
|
400
400
|
end
|
401
401
|
|
402
|
-
# Updates an
|
402
|
+
# Updates an Uptime check configuration. You can either replace the entire
|
403
403
|
# configuration with a new one or replace only certain fields in the current
|
404
|
-
# configuration by specifying the fields to be updated via `
|
404
|
+
# configuration by specifying the fields to be updated via `updateMask`.
|
405
405
|
# Returns the updated configuration.
|
406
406
|
#
|
407
407
|
# @param uptime_check_config [Google::Monitoring::V3::UptimeCheckConfig | Hash]
|
408
|
-
# Required. If an `
|
409
|
-
# the values for the set of fields mentioned in the `
|
410
|
-
# `
|
411
|
-
# the current configuration. If a field is mentioned in `
|
412
|
-
# the corresonding field is omitted in this partial
|
408
|
+
# Required. If an `updateMask` has been specified, this field gives
|
409
|
+
# the values for the set of fields mentioned in the `updateMask`. If an
|
410
|
+
# `updateMask` has not been given, this Uptime check configuration replaces
|
411
|
+
# the current configuration. If a field is mentioned in `updateMask` but
|
412
|
+
# the corresonding field is omitted in this partial Uptime check
|
413
413
|
# configuration, it has the effect of deleting/clearing the field from the
|
414
414
|
# configuration on the server.
|
415
415
|
#
|
@@ -419,7 +419,7 @@ module Google
|
|
419
419
|
# A hash of the same form as `Google::Monitoring::V3::UptimeCheckConfig`
|
420
420
|
# can also be provided.
|
421
421
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
422
|
-
# Optional. If present, only the listed fields in the current
|
422
|
+
# Optional. If present, only the listed fields in the current Uptime check
|
423
423
|
# configuration are updated with values from the new configuration. If this
|
424
424
|
# field is empty, then the current configuration is completely replaced with
|
425
425
|
# the new configuration.
|
@@ -455,12 +455,12 @@ module Google
|
|
455
455
|
@update_uptime_check_config.call(req, options, &block)
|
456
456
|
end
|
457
457
|
|
458
|
-
# Deletes an
|
459
|
-
# if the
|
458
|
+
# Deletes an Uptime check configuration. Note that this method will fail
|
459
|
+
# if the Uptime check configuration is referenced by an alert policy or
|
460
460
|
# other dependent configs that would be rendered invalid by the deletion.
|
461
461
|
#
|
462
462
|
# @param name [String]
|
463
|
-
# The
|
463
|
+
# The Uptime check configuration to delete. The format
|
464
464
|
# is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
|
465
465
|
# @param options [Google::Gax::CallOptions]
|
466
466
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -488,7 +488,7 @@ module Google
|
|
488
488
|
nil
|
489
489
|
end
|
490
490
|
|
491
|
-
# Returns the list of
|
491
|
+
# Returns the list of IP addresses that checkers run from
|
492
492
|
#
|
493
493
|
# @param page_size [Integer]
|
494
494
|
# The maximum number of resources contained in the underlying API
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/monitoring/v3/common_pb'
|
9
8
|
require 'google/monitoring/v3/mutation_record_pb'
|
10
9
|
require 'google/protobuf/duration_pb'
|
11
10
|
require 'google/protobuf/wrappers_pb'
|
11
|
+
require 'google/rpc/status_pb'
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_message "google.monitoring.v3.AlertPolicy" do
|
14
14
|
optional :name, :string, 1
|
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
18
18
|
repeated :conditions, :message, 12, "google.monitoring.v3.AlertPolicy.Condition"
|
19
19
|
optional :combiner, :enum, 6, "google.monitoring.v3.AlertPolicy.ConditionCombinerType"
|
20
20
|
optional :enabled, :message, 17, "google.protobuf.BoolValue"
|
21
|
+
optional :validity, :message, 18, "google.rpc.Status"
|
21
22
|
repeated :notification_channels, :string, 14
|
22
23
|
optional :creation_record, :message, 10, "google.monitoring.v3.MutationRecord"
|
23
24
|
optional :mutation_record, :message, 11, "google.monitoring.v3.MutationRecord"
|
@@ -8,6 +8,7 @@ require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/monitoring/v3/alert_pb'
|
9
9
|
require 'google/protobuf/empty_pb'
|
10
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/api/client_pb'
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_message "google.monitoring.v3.CreateAlertPolicyRequest" do
|
13
14
|
optional :name, :string, 3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/monitoring/v3/alert_service.proto for package 'google.monitoring.v3'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -9,6 +9,7 @@ require 'google/api/monitored_resource_pb'
|
|
9
9
|
require 'google/monitoring/v3/common_pb'
|
10
10
|
require 'google/monitoring/v3/group_pb'
|
11
11
|
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/api/client_pb'
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
14
|
add_message "google.monitoring.v3.ListGroupsRequest" do
|
14
15
|
optional :name, :string, 7
|
@@ -38,6 +39,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
38
39
|
end
|
39
40
|
add_message "google.monitoring.v3.DeleteGroupRequest" do
|
40
41
|
optional :name, :string, 3
|
42
|
+
optional :recursive, :bool, 4
|
41
43
|
end
|
42
44
|
add_message "google.monitoring.v3.ListGroupMembersRequest" do
|
43
45
|
optional :name, :string, 7
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/monitoring/v3/group_service.proto for package 'google.monitoring.v3'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -7,11 +7,13 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/metric_pb'
|
9
9
|
require 'google/api/monitored_resource_pb'
|
10
|
+
require 'google/monitoring/v3/alert_pb'
|
10
11
|
require 'google/monitoring/v3/common_pb'
|
11
12
|
require 'google/monitoring/v3/metric_pb'
|
12
13
|
require 'google/protobuf/duration_pb'
|
13
14
|
require 'google/protobuf/empty_pb'
|
14
15
|
require 'google/rpc/status_pb'
|
16
|
+
require 'google/api/client_pb'
|
15
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
18
|
add_message "google.monitoring.v3.ListMonitoredResourceDescriptorsRequest" do
|
17
19
|
optional :name, :string, 5
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/monitoring/v3/metric_service.proto for package 'google.monitoring.v3'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -35,17 +35,13 @@ module Google
|
|
35
35
|
self.unmarshal_class_method = :decode
|
36
36
|
self.service_name = 'google.monitoring.v3.MetricService'
|
37
37
|
|
38
|
-
# Lists monitored resource descriptors that match a filter. This method does
|
39
|
-
# not require a Stackdriver account.
|
38
|
+
# Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
|
40
39
|
rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
|
41
|
-
# Gets a single monitored resource descriptor. This method does not require a
|
42
|
-
# Stackdriver account.
|
40
|
+
# Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
|
43
41
|
rpc :GetMonitoredResourceDescriptor, GetMonitoredResourceDescriptorRequest, Google::Api::MonitoredResourceDescriptor
|
44
|
-
# Lists metric descriptors that match a filter. This method does not require
|
45
|
-
# a Stackdriver account.
|
42
|
+
# Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
|
46
43
|
rpc :ListMetricDescriptors, ListMetricDescriptorsRequest, ListMetricDescriptorsResponse
|
47
|
-
# Gets a single metric descriptor. This method does not require a Stackdriver
|
48
|
-
# account.
|
44
|
+
# Gets a single metric descriptor. This method does not require a Stackdriver account.
|
49
45
|
rpc :GetMetricDescriptor, GetMetricDescriptorRequest, Google::Api::MetricDescriptor
|
50
46
|
# Creates a new metric descriptor.
|
51
47
|
# User-created metric descriptors define
|
@@ -54,8 +50,7 @@ module Google
|
|
54
50
|
# Deletes a metric descriptor. Only user-created
|
55
51
|
# [custom metrics](/monitoring/custom-metrics) can be deleted.
|
56
52
|
rpc :DeleteMetricDescriptor, DeleteMetricDescriptorRequest, Google::Protobuf::Empty
|
57
|
-
# Lists time series that match a filter. This method does not require a
|
58
|
-
# Stackdriver account.
|
53
|
+
# Lists time series that match a filter. This method does not require a Stackdriver account.
|
59
54
|
rpc :ListTimeSeries, ListTimeSeriesRequest, ListTimeSeriesResponse
|
60
55
|
# Creates or adds data to one or more time series.
|
61
56
|
# The response is empty if all time series in the request were written.
|
@@ -10,6 +10,7 @@ require 'google/protobuf/empty_pb'
|
|
10
10
|
require 'google/protobuf/field_mask_pb'
|
11
11
|
require 'google/protobuf/struct_pb'
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/api/client_pb'
|
13
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
15
|
add_message "google.monitoring.v3.ListNotificationChannelDescriptorsRequest" do
|
15
16
|
optional :name, :string, 4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/monitoring/v3/notification_service.proto for package 'google.monitoring.v3'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -13,6 +13,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
13
13
|
optional :network, :string, 3
|
14
14
|
optional :gcp_zone, :string, 4
|
15
15
|
optional :peer_project_id, :string, 6
|
16
|
+
optional :state, :enum, 7, "google.monitoring.v3.InternalChecker.State"
|
17
|
+
end
|
18
|
+
add_enum "google.monitoring.v3.InternalChecker.State" do
|
19
|
+
value :UNSPECIFIED, 0
|
20
|
+
value :CREATING, 1
|
21
|
+
value :RUNNING, 2
|
16
22
|
end
|
17
23
|
add_message "google.monitoring.v3.UptimeCheckConfig" do
|
18
24
|
optional :name, :string, 1
|
@@ -21,7 +27,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
21
27
|
optional :timeout, :message, 8, "google.protobuf.Duration"
|
22
28
|
repeated :content_matchers, :message, 9, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher"
|
23
29
|
repeated :selected_regions, :enum, 10, "google.monitoring.v3.UptimeCheckRegion"
|
24
|
-
optional :is_internal, :bool, 15
|
25
30
|
repeated :internal_checkers, :message, 14, "google.monitoring.v3.InternalChecker"
|
26
31
|
oneof :resource do
|
27
32
|
optional :monitored_resource, :message, 3, "google.api.MonitoredResource"
|
@@ -43,6 +48,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
43
48
|
optional :auth_info, :message, 4, "google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication"
|
44
49
|
optional :mask_headers, :bool, 5
|
45
50
|
map :headers, :string, :string, 6
|
51
|
+
optional :validate_ssl, :bool, 7
|
46
52
|
end
|
47
53
|
add_message "google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication" do
|
48
54
|
optional :username, :string, 1
|
@@ -53,6 +59,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
53
59
|
end
|
54
60
|
add_message "google.monitoring.v3.UptimeCheckConfig.ContentMatcher" do
|
55
61
|
optional :content, :string, 1
|
62
|
+
optional :matcher, :enum, 2, "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption"
|
63
|
+
end
|
64
|
+
add_enum "google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption" do
|
65
|
+
value :CONTENT_MATCHER_OPTION_UNSPECIFIED, 0
|
66
|
+
value :CONTAINS_STRING, 1
|
67
|
+
value :NOT_CONTAINS_STRING, 2
|
68
|
+
value :MATCHES_REGEX, 3
|
69
|
+
value :NOT_MATCHES_REGEX, 4
|
56
70
|
end
|
57
71
|
add_message "google.monitoring.v3.UptimeCheckIp" do
|
58
72
|
optional :region, :enum, 1, "google.monitoring.v3.UptimeCheckRegion"
|
@@ -77,12 +91,14 @@ module Google
|
|
77
91
|
module Monitoring
|
78
92
|
module V3
|
79
93
|
InternalChecker = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.InternalChecker").msgclass
|
94
|
+
InternalChecker::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.InternalChecker.State").enummodule
|
80
95
|
UptimeCheckConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig").msgclass
|
81
96
|
UptimeCheckConfig::ResourceGroup = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ResourceGroup").msgclass
|
82
97
|
UptimeCheckConfig::HttpCheck = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck").msgclass
|
83
98
|
UptimeCheckConfig::HttpCheck::BasicAuthentication = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication").msgclass
|
84
99
|
UptimeCheckConfig::TcpCheck = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.TcpCheck").msgclass
|
85
100
|
UptimeCheckConfig::ContentMatcher = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher").msgclass
|
101
|
+
UptimeCheckConfig::ContentMatcher::ContentMatcherOption = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckConfig.ContentMatcher.ContentMatcherOption").enummodule
|
86
102
|
UptimeCheckIp = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckIp").msgclass
|
87
103
|
UptimeCheckRegion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UptimeCheckRegion").enummodule
|
88
104
|
GroupResourceType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GroupResourceType").enummodule
|
@@ -6,8 +6,10 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/monitoring/v3/uptime_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/empty_pb'
|
10
11
|
require 'google/protobuf/field_mask_pb'
|
12
|
+
require 'google/api/client_pb'
|
11
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
14
|
add_message "google.monitoring.v3.ListUptimeCheckConfigsRequest" do
|
13
15
|
optional :parent, :string, 1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/monitoring/v3/uptime_service.proto for package 'google.monitoring.v3'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
module V3
|
27
27
|
module UptimeCheckService
|
28
28
|
# The UptimeCheckService API is used to manage (list, create, delete, edit)
|
29
|
-
#
|
29
|
+
# Uptime check configurations in the Stackdriver Monitoring product. An Uptime
|
30
30
|
# check is a piece of configuration that determines which resources and
|
31
31
|
# services to monitor for availability. These configurations can also be
|
32
32
|
# configured interactively by navigating to the [Cloud Console]
|
@@ -41,23 +41,23 @@ module Google
|
|
41
41
|
self.unmarshal_class_method = :decode
|
42
42
|
self.service_name = 'google.monitoring.v3.UptimeCheckService'
|
43
43
|
|
44
|
-
# Lists the existing valid
|
45
|
-
# leaving out any invalid configurations.
|
44
|
+
# Lists the existing valid Uptime check configurations for the project
|
45
|
+
# (leaving out any invalid configurations).
|
46
46
|
rpc :ListUptimeCheckConfigs, ListUptimeCheckConfigsRequest, ListUptimeCheckConfigsResponse
|
47
|
-
# Gets a single
|
47
|
+
# Gets a single Uptime check configuration.
|
48
48
|
rpc :GetUptimeCheckConfig, GetUptimeCheckConfigRequest, UptimeCheckConfig
|
49
|
-
# Creates a new
|
49
|
+
# Creates a new Uptime check configuration.
|
50
50
|
rpc :CreateUptimeCheckConfig, CreateUptimeCheckConfigRequest, UptimeCheckConfig
|
51
|
-
# Updates an
|
51
|
+
# Updates an Uptime check configuration. You can either replace the entire
|
52
52
|
# configuration with a new one or replace only certain fields in the current
|
53
|
-
# configuration by specifying the fields to be updated via `
|
53
|
+
# configuration by specifying the fields to be updated via `updateMask`.
|
54
54
|
# Returns the updated configuration.
|
55
55
|
rpc :UpdateUptimeCheckConfig, UpdateUptimeCheckConfigRequest, UptimeCheckConfig
|
56
|
-
# Deletes an
|
57
|
-
# if the
|
56
|
+
# Deletes an Uptime check configuration. Note that this method will fail
|
57
|
+
# if the Uptime check configuration is referenced by an alert policy or
|
58
58
|
# other dependent configs that would be rendered invalid by the deletion.
|
59
59
|
rpc :DeleteUptimeCheckConfig, DeleteUptimeCheckConfigRequest, Google::Protobuf::Empty
|
60
|
-
# Returns the list of
|
60
|
+
# Returns the list of IP addresses that checkers run from
|
61
61
|
rpc :ListUptimeCheckIps, ListUptimeCheckIpsRequest, ListUptimeCheckIpsResponse
|
62
62
|
end
|
63
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.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: 2019-
|
11
|
+
date: 2019-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|