google-cloud-monitoring 0.29.0 → 0.29.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/monitoring/v3/alert_policy_service_client.rb +2 -0
- data/lib/google/cloud/monitoring/v3/credentials.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/api/distribution.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/api/label.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/api/metric.rb +2 -1
- data/lib/google/cloud/monitoring/v3/doc/google/api/monitored_resource.rb +5 -4
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/alert_service.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/common.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group.rb +4 -3
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/group_service.rb +9 -8
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/metric_service.rb +12 -11
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/mutation_record.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/notification_service.rb +2 -1
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/monitoring/v3/uptime_service.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/any.rb +14 -8
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/duration.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/empty.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/field_mask.rb +7 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/struct.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/timestamp.rb +9 -6
- data/lib/google/cloud/monitoring/v3/doc/google/protobuf/wrappers.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/google/rpc/status.rb +1 -0
- data/lib/google/cloud/monitoring/v3/doc/overview.rb +1 -0
- data/lib/google/cloud/monitoring/v3/group_service_client.rb +10 -8
- data/lib/google/cloud/monitoring/v3/metric_service_client.rb +13 -11
- data/lib/google/cloud/monitoring/v3/notification_channel_service_client.rb +3 -1
- data/lib/google/cloud/monitoring/v3/uptime_check_service_client.rb +2 -0
- data/lib/google/cloud/monitoring/v3.rb +6 -0
- data/lib/google/cloud/monitoring.rb +6 -0
- data/lib/google/monitoring/v3/alert_pb.rb +1 -0
- data/lib/google/monitoring/v3/alert_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +1 -0
- data/lib/google/monitoring/v3/common_pb.rb +1 -0
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +1 -0
- data/lib/google/monitoring/v3/group_pb.rb +1 -0
- data/lib/google/monitoring/v3/group_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/group_service_services_pb.rb +1 -0
- data/lib/google/monitoring/v3/metric_pb.rb +1 -0
- data/lib/google/monitoring/v3/metric_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +1 -0
- data/lib/google/monitoring/v3/mutation_record_pb.rb +1 -0
- data/lib/google/monitoring/v3/notification_pb.rb +1 -0
- data/lib/google/monitoring/v3/notification_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/notification_service_services_pb.rb +1 -0
- data/lib/google/monitoring/v3/span_context_pb.rb +1 -0
- data/lib/google/monitoring/v3/uptime_pb.rb +1 -0
- data/lib/google/monitoring/v3/uptime_service_pb.rb +1 -0
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +1 -0
- data/lib/google-cloud-monitoring.rb +1 -0
- 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: 4e4067b3f7c24bf08c04598f75184399e1571bae95a57f708aec1bef4a2f4d77
|
4
|
+
data.tar.gz: 892886b02ae559030fa86948e511582f3ab88b18ef4373e8a939c96a9d704d68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a1b4796c751068776f4a62c4255f15bb3275f49de6fac228caee06a7ba0447f41238c526aa7e2647fe5d4c23a71456058a9d9d3dfb86139f1402c40376ac9e7
|
7
|
+
data.tar.gz: 6e6b8d005be26b43c7f00e8a309fd4c5c59545c88517e86df519915f0131fda2dc5a6bb7ed91b4453602677b93de6ef92cdca07362614810e096e617aead9e89
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -44,6 +45,7 @@ module Google
|
|
44
45
|
# @!attribute [r] alert_policy_service_stub
|
45
46
|
# @return [Google::Monitoring::V3::AlertPolicyService::Stub]
|
46
47
|
class AlertPolicyServiceClient
|
48
|
+
# @private
|
47
49
|
attr_reader :alert_policy_service_stub
|
48
50
|
|
49
51
|
# The default address of the service.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Api
|
17
18
|
# Defines a metric type and its schema. Once a metric descriptor is created,
|
@@ -106,7 +107,7 @@ module Google
|
|
106
107
|
#
|
107
108
|
# * +Annotation+ is just a comment if it follows a +UNIT+ and is
|
108
109
|
# equivalent to +1+ if it is used alone. For examples,
|
109
|
-
#
|
110
|
+
# +\\{requests}/s == 1/s+, +By\\{transmitted}/s == By/s+.
|
110
111
|
# * +NAME+ is a sequence of non-blank printable ASCII characters not
|
111
112
|
# containing '{' or '}'.
|
112
113
|
# * +1+ represents dimensionless value 1, such as in +1/s+.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Api
|
17
18
|
# An object that describes the schema of a {Google::Api::MonitoredResource MonitoredResource} object using a
|
@@ -26,11 +27,11 @@ module Google
|
|
26
27
|
# @!attribute [rw] name
|
27
28
|
# @return [String]
|
28
29
|
# Optional. The resource name of the monitored resource descriptor:
|
29
|
-
# +"projects
|
30
|
-
# {type} is the value of the +type+ field in this object and
|
31
|
-
# {project_id} is a project ID that provides API-specific context for
|
30
|
+
# +"projects/\\{project_id}/monitoredResourceDescriptors/\\{type}"+ where
|
31
|
+
# \\{type} is the value of the +type+ field in this object and
|
32
|
+
# \\{project_id} is a project ID that provides API-specific context for
|
32
33
|
# accessing the type. APIs that do not use project information can use the
|
33
|
-
# resource name format +"monitoredResourceDescriptors
|
34
|
+
# resource name format +"monitoredResourceDescriptors/\\{type}"+.
|
34
35
|
# @!attribute [rw] type
|
35
36
|
# @return [String]
|
36
37
|
# Required. The monitored resource type. For example, the type
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Monitoring
|
17
18
|
module V3
|
@@ -44,17 +45,17 @@ module Google
|
|
44
45
|
# @!attribute [rw] name
|
45
46
|
# @return [String]
|
46
47
|
# Output only. The name of this group. The format is
|
47
|
-
# +"projects
|
48
|
+
# +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
48
49
|
# When creating a group, this field is ignored and a new name is created
|
49
50
|
# consisting of the project specified in the call to +CreateGroup+
|
50
|
-
# and a unique
|
51
|
+
# and a unique +\\{group_id}+ that is generated automatically.
|
51
52
|
# @!attribute [rw] display_name
|
52
53
|
# @return [String]
|
53
54
|
# A user-assigned name for this group, used only for display purposes.
|
54
55
|
# @!attribute [rw] parent_name
|
55
56
|
# @return [String]
|
56
57
|
# The name of the group's parent, if it has one.
|
57
|
-
# The format is +"projects
|
58
|
+
# The format is +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
58
59
|
# For groups with no parent, +parentName+ is the empty string, +""+.
|
59
60
|
# @!attribute [rw] filter
|
60
61
|
# @return [String]
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Monitoring
|
17
18
|
module V3
|
@@ -19,22 +20,22 @@ module Google
|
|
19
20
|
# @!attribute [rw] name
|
20
21
|
# @return [String]
|
21
22
|
# The project whose groups are to be listed. The format is
|
22
|
-
# +"projects
|
23
|
+
# +"projects/\\{project_id_or_number}"+.
|
23
24
|
# @!attribute [rw] children_of_group
|
24
25
|
# @return [String]
|
25
|
-
# A group name: +"projects
|
26
|
+
# A group name: +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
26
27
|
# Returns groups whose +parentName+ field contains the group
|
27
28
|
# name. If no groups have this parent, the results are empty.
|
28
29
|
# @!attribute [rw] ancestors_of_group
|
29
30
|
# @return [String]
|
30
|
-
# A group name: +"projects
|
31
|
+
# A group name: +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
31
32
|
# Returns groups that are ancestors of the specified group.
|
32
33
|
# The groups are returned in order, starting with the immediate parent and
|
33
34
|
# ending with the most distant ancestor. If the specified group has no
|
34
35
|
# immediate parent, the results are empty.
|
35
36
|
# @!attribute [rw] descendants_of_group
|
36
37
|
# @return [String]
|
37
|
-
# A group name: +"projects
|
38
|
+
# A group name: +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
38
39
|
# Returns the descendants of the specified group. This is a superset of
|
39
40
|
# the results returned by the +childrenOfGroup+ filter, and includes
|
40
41
|
# children-of-children, and so forth.
|
@@ -63,14 +64,14 @@ module Google
|
|
63
64
|
# @!attribute [rw] name
|
64
65
|
# @return [String]
|
65
66
|
# The group to retrieve. The format is
|
66
|
-
# +"projects
|
67
|
+
# +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
67
68
|
class GetGroupRequest; end
|
68
69
|
|
69
70
|
# The +CreateGroup+ request.
|
70
71
|
# @!attribute [rw] name
|
71
72
|
# @return [String]
|
72
73
|
# The project in which to create the group. The format is
|
73
|
-
# +"projects
|
74
|
+
# +"projects/\\{project_id_or_number}"+.
|
74
75
|
# @!attribute [rw] group
|
75
76
|
# @return [Google::Monitoring::V3::Group]
|
76
77
|
# A group definition. It is an error to define the +name+ field because
|
@@ -94,14 +95,14 @@ module Google
|
|
94
95
|
# @!attribute [rw] name
|
95
96
|
# @return [String]
|
96
97
|
# The group to delete. The format is
|
97
|
-
# +"projects
|
98
|
+
# +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
98
99
|
class DeleteGroupRequest; end
|
99
100
|
|
100
101
|
# The +ListGroupMembers+ request.
|
101
102
|
# @!attribute [rw] name
|
102
103
|
# @return [String]
|
103
104
|
# The group whose members are listed. The format is
|
104
|
-
# +"projects
|
105
|
+
# +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
105
106
|
# @!attribute [rw] page_size
|
106
107
|
# @return [Integer]
|
107
108
|
# A positive number that is the maximum number of results to return.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Monitoring
|
17
18
|
module V3
|
@@ -19,7 +20,7 @@ module Google
|
|
19
20
|
# @!attribute [rw] name
|
20
21
|
# @return [String]
|
21
22
|
# The project on which to execute the request. The format is
|
22
|
-
# +"projects
|
23
|
+
# +"projects/\\{project_id_or_number}"+.
|
23
24
|
# @!attribute [rw] filter
|
24
25
|
# @return [String]
|
25
26
|
# An optional [filter](https://cloud.google.com/monitoring/api/v3/filters) describing
|
@@ -55,8 +56,8 @@ module Google
|
|
55
56
|
# @!attribute [rw] name
|
56
57
|
# @return [String]
|
57
58
|
# The monitored resource descriptor to get. The format is
|
58
|
-
# +"projects
|
59
|
-
# The
|
59
|
+
# +"projects/\\{project_id_or_number}/monitoredResourceDescriptors/\\{resource_type}"+.
|
60
|
+
# The +\\{resource_type}+ is a predefined type, such as
|
60
61
|
# +cloudsql_database+.
|
61
62
|
class GetMonitoredResourceDescriptorRequest; end
|
62
63
|
|
@@ -64,7 +65,7 @@ module Google
|
|
64
65
|
# @!attribute [rw] name
|
65
66
|
# @return [String]
|
66
67
|
# The project on which to execute the request. The format is
|
67
|
-
# +"projects
|
68
|
+
# +"projects/\\{project_id_or_number}"+.
|
68
69
|
# @!attribute [rw] filter
|
69
70
|
# @return [String]
|
70
71
|
# If this field is empty, all custom and
|
@@ -101,8 +102,8 @@ module Google
|
|
101
102
|
# @!attribute [rw] name
|
102
103
|
# @return [String]
|
103
104
|
# The metric descriptor on which to execute the request. The format is
|
104
|
-
# +"projects
|
105
|
-
# An example value of
|
105
|
+
# +"projects/\\{project_id_or_number}/metricDescriptors/\\{metric_id}"+.
|
106
|
+
# An example value of +\\{metric_id}+ is
|
106
107
|
# +"compute.googleapis.com/instance/disk/read_bytes_count"+.
|
107
108
|
class GetMetricDescriptorRequest; end
|
108
109
|
|
@@ -110,7 +111,7 @@ module Google
|
|
110
111
|
# @!attribute [rw] name
|
111
112
|
# @return [String]
|
112
113
|
# The project on which to execute the request. The format is
|
113
|
-
# +"projects
|
114
|
+
# +"projects/\\{project_id_or_number}"+.
|
114
115
|
# @!attribute [rw] metric_descriptor
|
115
116
|
# @return [Google::Api::MetricDescriptor]
|
116
117
|
# The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
|
@@ -121,8 +122,8 @@ module Google
|
|
121
122
|
# @!attribute [rw] name
|
122
123
|
# @return [String]
|
123
124
|
# The metric descriptor on which to execute the request. The format is
|
124
|
-
# +"projects
|
125
|
-
# An example of
|
125
|
+
# +"projects/\\{project_id_or_number}/metricDescriptors/\\{metric_id}"+.
|
126
|
+
# An example of +\\{metric_id}+ is:
|
126
127
|
# +"custom.googleapis.com/my_test_metric"+.
|
127
128
|
class DeleteMetricDescriptorRequest; end
|
128
129
|
|
@@ -130,7 +131,7 @@ module Google
|
|
130
131
|
# @!attribute [rw] name
|
131
132
|
# @return [String]
|
132
133
|
# The project on which to execute the request. The format is
|
133
|
-
# "projects
|
134
|
+
# "projects/\\{project_id_or_number}".
|
134
135
|
# @!attribute [rw] filter
|
135
136
|
# @return [String]
|
136
137
|
# A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
|
@@ -201,7 +202,7 @@ module Google
|
|
201
202
|
# @!attribute [rw] name
|
202
203
|
# @return [String]
|
203
204
|
# The project on which to execute the request. The format is
|
204
|
-
# +"projects
|
205
|
+
# +"projects/\\{project_id_or_number}"+.
|
205
206
|
# @!attribute [rw] time_series
|
206
207
|
# @return [Array<Google::Monitoring::V3::TimeSeries>]
|
207
208
|
# The new data to be added to a list of time series.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Monitoring
|
17
18
|
module V3
|
@@ -56,7 +57,7 @@ module Google
|
|
56
57
|
# @!attribute [rw] name
|
57
58
|
# @return [String]
|
58
59
|
# The channel type for which to execute the request. The format is
|
59
|
-
# +projects/[PROJECT_ID]/notificationChannelDescriptors
|
60
|
+
# +projects/[PROJECT_ID]/notificationChannelDescriptors/\\{channel_type}+.
|
60
61
|
class GetNotificationChannelDescriptorRequest; end
|
61
62
|
|
62
63
|
# The +CreateNotificationChannel+ request.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +Any+ contains an arbitrary serialized protocol buffer message along with a
|
@@ -95,17 +96,18 @@ module Google
|
|
95
96
|
# }
|
96
97
|
# @!attribute [rw] type_url
|
97
98
|
# @return [String]
|
98
|
-
# A URL/resource name
|
99
|
-
#
|
99
|
+
# A URL/resource name that uniquely identifies the type of the serialized
|
100
|
+
# protocol buffer message. The last segment of the URL's path must represent
|
101
|
+
# the fully qualified name of the type (as in
|
102
|
+
# +path/google.protobuf.Duration+). The name should be in a canonical form
|
103
|
+
# (e.g., leading "." is not accepted).
|
100
104
|
#
|
101
|
-
#
|
102
|
-
#
|
105
|
+
# In practice, teams usually precompile into the binary all types that they
|
106
|
+
# expect it to use in the context of Any. However, for URLs which use the
|
107
|
+
# scheme +http+, +https+, or no scheme, one can optionally set up a type
|
108
|
+
# server that maps type URLs to message definitions as follows:
|
103
109
|
#
|
104
110
|
# * If no scheme is provided, +https+ is assumed.
|
105
|
-
# * The last segment of the URL's path must represent the fully
|
106
|
-
# qualified name of the type (as in +path/google.protobuf.Duration+).
|
107
|
-
# The name should be in a canonical form (e.g., leading "." is
|
108
|
-
# not accepted).
|
109
111
|
# * An HTTP GET on the URL must yield a {Google::Protobuf::Type}
|
110
112
|
# value in binary format, or produce an error.
|
111
113
|
# * Applications are allowed to cache lookup results based on the
|
@@ -114,6 +116,10 @@ module Google
|
|
114
116
|
# on changes to types. (Use versioned type names to manage
|
115
117
|
# breaking changes.)
|
116
118
|
#
|
119
|
+
# Note: this functionality is not currently available in the official
|
120
|
+
# protobuf release, and it is not used for type URLs beginning with
|
121
|
+
# type.googleapis.com.
|
122
|
+
#
|
117
123
|
# Schemes other than +http+, +https+ (or the empty scheme) might be
|
118
124
|
# used with implementation specific semantics.
|
119
125
|
# @!attribute [rw] value
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +FieldMask+ represents a set of symbolic field paths, for example:
|
@@ -215,6 +216,12 @@ module Google
|
|
215
216
|
#
|
216
217
|
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
217
218
|
# paths.
|
219
|
+
#
|
220
|
+
# == Field Mask Verification
|
221
|
+
#
|
222
|
+
# The implementation of any API method which has a FieldMask type field in the
|
223
|
+
# request should verify the included field paths, and return an
|
224
|
+
# +INVALID_ARGUMENT+ error if any path is duplicated or unmappable.
|
218
225
|
# @!attribute [rw] paths
|
219
226
|
# @return [Array<String>]
|
220
227
|
# The set of field mask paths.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# A Timestamp represents a point in time independent of any time zone
|
@@ -72,12 +73,14 @@ module Google
|
|
72
73
|
#
|
73
74
|
# In JSON format, the Timestamp type is encoded as a string in the
|
74
75
|
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
75
|
-
# format is "{year}
|
76
|
-
# where {year} is always expressed using four digits while {month}, {day},
|
77
|
-
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
76
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
77
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
78
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
78
79
|
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
79
80
|
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
80
|
-
# is required
|
81
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
82
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
83
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
81
84
|
#
|
82
85
|
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
83
86
|
# 01:30 UTC on January 15, 2017.
|
@@ -88,8 +91,8 @@ module Google
|
|
88
91
|
# to this format using [+strftime+](https://docs.python.org/2/library/time.html#time.strftime)
|
89
92
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
90
93
|
# can use the Joda Time's [+ISODateTimeFormat.dateTime()+](
|
91
|
-
# http://joda-time
|
92
|
-
# to obtain a formatter capable of generating timestamps in this format.
|
94
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
95
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
93
96
|
# @!attribute [rw] seconds
|
94
97
|
# @return [Integer]
|
95
98
|
# Represents seconds of UTC time since Unix epoch
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -47,6 +48,7 @@ module Google
|
|
47
48
|
# @!attribute [r] group_service_stub
|
48
49
|
# @return [Google::Monitoring::V3::GroupService::Stub]
|
49
50
|
class GroupServiceClient
|
51
|
+
# @private
|
50
52
|
attr_reader :group_service_stub
|
51
53
|
|
52
54
|
# The default address of the service.
|
@@ -256,19 +258,19 @@ module Google
|
|
256
258
|
#
|
257
259
|
# @param name [String]
|
258
260
|
# The project whose groups are to be listed. The format is
|
259
|
-
# +"projects
|
261
|
+
# +"projects/\\{project_id_or_number}"+.
|
260
262
|
# @param children_of_group [String]
|
261
|
-
# A group name: +"projects
|
263
|
+
# A group name: +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
262
264
|
# Returns groups whose +parentName+ field contains the group
|
263
265
|
# name. If no groups have this parent, the results are empty.
|
264
266
|
# @param ancestors_of_group [String]
|
265
|
-
# A group name: +"projects
|
267
|
+
# A group name: +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
266
268
|
# Returns groups that are ancestors of the specified group.
|
267
269
|
# The groups are returned in order, starting with the immediate parent and
|
268
270
|
# ending with the most distant ancestor. If the specified group has no
|
269
271
|
# immediate parent, the results are empty.
|
270
272
|
# @param descendants_of_group [String]
|
271
|
-
# A group name: +"projects
|
273
|
+
# A group name: +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
272
274
|
# Returns the descendants of the specified group. This is a superset of
|
273
275
|
# the results returned by the +childrenOfGroup+ filter, and includes
|
274
276
|
# children-of-children, and so forth.
|
@@ -332,7 +334,7 @@ module Google
|
|
332
334
|
#
|
333
335
|
# @param name [String]
|
334
336
|
# The group to retrieve. The format is
|
335
|
-
# +"projects
|
337
|
+
# +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
336
338
|
# @param options [Google::Gax::CallOptions]
|
337
339
|
# Overrides the default settings for this call, e.g, timeout,
|
338
340
|
# retries, etc.
|
@@ -363,7 +365,7 @@ module Google
|
|
363
365
|
#
|
364
366
|
# @param name [String]
|
365
367
|
# The project in which to create the group. The format is
|
366
|
-
# +"projects
|
368
|
+
# +"projects/\\{project_id_or_number}"+.
|
367
369
|
# @param group [Google::Monitoring::V3::Group | Hash]
|
368
370
|
# A group definition. It is an error to define the +name+ field because
|
369
371
|
# the system assigns the name.
|
@@ -448,7 +450,7 @@ module Google
|
|
448
450
|
#
|
449
451
|
# @param name [String]
|
450
452
|
# The group to delete. The format is
|
451
|
-
# +"projects
|
453
|
+
# +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
452
454
|
# @param options [Google::Gax::CallOptions]
|
453
455
|
# Overrides the default settings for this call, e.g, timeout,
|
454
456
|
# retries, etc.
|
@@ -479,7 +481,7 @@ module Google
|
|
479
481
|
#
|
480
482
|
# @param name [String]
|
481
483
|
# The group whose members are listed. The format is
|
482
|
-
# +"projects
|
484
|
+
# +"projects/\\{project_id_or_number}/groups/\\{group_id}"+.
|
483
485
|
# @param page_size [Integer]
|
484
486
|
# The maximum number of resources contained in the underlying API
|
485
487
|
# response. If page streaming is performed per-resource, this
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -37,6 +38,7 @@ module Google
|
|
37
38
|
# @!attribute [r] metric_service_stub
|
38
39
|
# @return [Google::Monitoring::V3::MetricService::Stub]
|
39
40
|
class MetricServiceClient
|
41
|
+
# @private
|
40
42
|
attr_reader :metric_service_stub
|
41
43
|
|
42
44
|
# The default address of the service.
|
@@ -277,7 +279,7 @@ module Google
|
|
277
279
|
#
|
278
280
|
# @param name [String]
|
279
281
|
# The project on which to execute the request. The format is
|
280
|
-
# +"projects
|
282
|
+
# +"projects/\\{project_id_or_number}"+.
|
281
283
|
# @param filter [String]
|
282
284
|
# An optional [filter](https://cloud.google.com/monitoring/api/v3/filters) describing
|
283
285
|
# the descriptors to be returned. The filter can reference
|
@@ -342,8 +344,8 @@ module Google
|
|
342
344
|
#
|
343
345
|
# @param name [String]
|
344
346
|
# The monitored resource descriptor to get. The format is
|
345
|
-
# +"projects
|
346
|
-
# The
|
347
|
+
# +"projects/\\{project_id_or_number}/monitoredResourceDescriptors/\\{resource_type}"+.
|
348
|
+
# The +\\{resource_type}+ is a predefined type, such as
|
347
349
|
# +cloudsql_database+.
|
348
350
|
# @param options [Google::Gax::CallOptions]
|
349
351
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -375,7 +377,7 @@ module Google
|
|
375
377
|
#
|
376
378
|
# @param name [String]
|
377
379
|
# The project on which to execute the request. The format is
|
378
|
-
# +"projects
|
380
|
+
# +"projects/\\{project_id_or_number}"+.
|
379
381
|
# @param filter [String]
|
380
382
|
# If this field is empty, all custom and
|
381
383
|
# system-defined metric descriptors are returned.
|
@@ -441,8 +443,8 @@ module Google
|
|
441
443
|
#
|
442
444
|
# @param name [String]
|
443
445
|
# The metric descriptor on which to execute the request. The format is
|
444
|
-
# +"projects
|
445
|
-
# An example value of
|
446
|
+
# +"projects/\\{project_id_or_number}/metricDescriptors/\\{metric_id}"+.
|
447
|
+
# An example value of +\\{metric_id}+ is
|
446
448
|
# +"compute.googleapis.com/instance/disk/read_bytes_count"+.
|
447
449
|
# @param options [Google::Gax::CallOptions]
|
448
450
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -476,7 +478,7 @@ module Google
|
|
476
478
|
#
|
477
479
|
# @param name [String]
|
478
480
|
# The project on which to execute the request. The format is
|
479
|
-
# +"projects
|
481
|
+
# +"projects/\\{project_id_or_number}"+.
|
480
482
|
# @param metric_descriptor [Google::Api::MetricDescriptor | Hash]
|
481
483
|
# The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
|
482
484
|
# descriptor.
|
@@ -518,8 +520,8 @@ module Google
|
|
518
520
|
#
|
519
521
|
# @param name [String]
|
520
522
|
# The metric descriptor on which to execute the request. The format is
|
521
|
-
# +"projects
|
522
|
-
# An example of
|
523
|
+
# +"projects/\\{project_id_or_number}/metricDescriptors/\\{metric_id}"+.
|
524
|
+
# An example of +\\{metric_id}+ is:
|
523
525
|
# +"custom.googleapis.com/my_test_metric"+.
|
524
526
|
# @param options [Google::Gax::CallOptions]
|
525
527
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -551,7 +553,7 @@ module Google
|
|
551
553
|
#
|
552
554
|
# @param name [String]
|
553
555
|
# The project on which to execute the request. The format is
|
554
|
-
# "projects
|
556
|
+
# "projects/\\{project_id_or_number}".
|
555
557
|
# @param filter [String]
|
556
558
|
# A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) that specifies which time
|
557
559
|
# series should be returned. The filter must specify a single metric type,
|
@@ -653,7 +655,7 @@ module Google
|
|
653
655
|
#
|
654
656
|
# @param name [String]
|
655
657
|
# The project on which to execute the request. The format is
|
656
|
-
# +"projects
|
658
|
+
# +"projects/\\{project_id_or_number}"+.
|
657
659
|
# @param time_series [Array<Google::Monitoring::V3::TimeSeries | Hash>]
|
658
660
|
# The new data to be added to a list of time series.
|
659
661
|
# Adds at most one data point to each of several time series. The new data
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -37,6 +38,7 @@ module Google
|
|
37
38
|
# @!attribute [r] notification_channel_service_stub
|
38
39
|
# @return [Google::Monitoring::V3::NotificationChannelService::Stub]
|
39
40
|
class NotificationChannelServiceClient
|
41
|
+
# @private
|
40
42
|
attr_reader :notification_channel_service_stub
|
41
43
|
|
42
44
|
# The default address of the service.
|
@@ -332,7 +334,7 @@ module Google
|
|
332
334
|
#
|
333
335
|
# @param name [String]
|
334
336
|
# The channel type for which to execute the request. The format is
|
335
|
-
# +projects/[PROJECT_ID]/notificationChannelDescriptors
|
337
|
+
# +projects/[PROJECT_ID]/notificationChannelDescriptors/\\{channel_type}+.
|
336
338
|
# @param options [Google::Gax::CallOptions]
|
337
339
|
# Overrides the default settings for this call, e.g, timeout,
|
338
340
|
# retries, etc.
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -43,6 +44,7 @@ module Google
|
|
43
44
|
# @!attribute [r] uptime_check_service_stub
|
44
45
|
# @return [Google::Monitoring::V3::UptimeCheckService::Stub]
|
45
46
|
class UptimeCheckServiceClient
|
47
|
+
# @private
|
46
48
|
attr_reader :uptime_check_service_stub
|
47
49
|
|
48
50
|
# The default address of the service.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/cloud/monitoring/v3/alert_policy_service_client"
|
16
17
|
require "google/cloud/monitoring/v3/group_service_client"
|
17
18
|
require "google/cloud/monitoring/v3/metric_service_client"
|
@@ -43,6 +44,11 @@ module Google
|
|
43
44
|
# 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
|
44
45
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
45
46
|
#
|
47
|
+
# ### Installation
|
48
|
+
# ```
|
49
|
+
# $ gem install google-cloud-monitoring
|
50
|
+
# ```
|
51
|
+
#
|
46
52
|
# ### Preview
|
47
53
|
# #### MetricServiceClient
|
48
54
|
# ```rb
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/gax"
|
16
17
|
require "pathname"
|
17
18
|
|
@@ -37,6 +38,11 @@ module Google
|
|
37
38
|
# 3. [Enable the Stackdriver Monitoring API.](https://console.cloud.google.com/apis/library/monitoring.googleapis.com)
|
38
39
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
39
40
|
#
|
41
|
+
# ### Installation
|
42
|
+
# ```
|
43
|
+
# $ gem install google-cloud-monitoring
|
44
|
+
# ```
|
45
|
+
#
|
40
46
|
# ### Preview
|
41
47
|
# #### MetricServiceClient
|
42
48
|
# ```rb
|
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.29.
|
4
|
+
version: 0.29.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|