google-cloud-monitoring-v3 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +71 -0
- data/lib/google-cloud-monitoring-v3.rb +21 -0
- data/lib/google/cloud/monitoring/v3.rb +40 -0
- data/lib/google/cloud/monitoring/v3/alert_policy_service.rb +57 -0
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +772 -0
- data/lib/google/cloud/monitoring/v3/alert_policy_service/credentials.rb +53 -0
- data/lib/google/cloud/monitoring/v3/alert_policy_service/paths.rb +185 -0
- data/lib/google/cloud/monitoring/v3/group_service.rb +60 -0
- data/lib/google/cloud/monitoring/v3/group_service/client.rb +862 -0
- data/lib/google/cloud/monitoring/v3/group_service/credentials.rb +53 -0
- data/lib/google/cloud/monitoring/v3/group_service/paths.rb +127 -0
- data/lib/google/cloud/monitoring/v3/metric_service.rb +50 -0
- data/lib/google/cloud/monitoring/v3/metric_service/client.rb +1040 -0
- data/lib/google/cloud/monitoring/v3/metric_service/credentials.rb +54 -0
- data/lib/google/cloud/monitoring/v3/metric_service/paths.rb +179 -0
- data/lib/google/cloud/monitoring/v3/notification_channel_service.rb +50 -0
- data/lib/google/cloud/monitoring/v3/notification_channel_service/client.rb +1213 -0
- data/lib/google/cloud/monitoring/v3/notification_channel_service/credentials.rb +53 -0
- data/lib/google/cloud/monitoring/v3/notification_channel_service/paths.rb +179 -0
- data/lib/google/cloud/monitoring/v3/service_monitoring_service.rb +52 -0
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/client.rb +1168 -0
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/credentials.rb +53 -0
- data/lib/google/cloud/monitoring/v3/service_monitoring_service/paths.rb +185 -0
- data/lib/google/cloud/monitoring/v3/uptime_check_service.rb +56 -0
- data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +822 -0
- data/lib/google/cloud/monitoring/v3/uptime_check_service/credentials.rb +53 -0
- data/lib/google/cloud/monitoring/v3/uptime_check_service/paths.rb +127 -0
- data/lib/google/cloud/monitoring/v3/version.rb +28 -0
- data/lib/google/monitoring/v3/alert_pb.rb +84 -0
- data/lib/google/monitoring/v3/alert_service_pb.rb +56 -0
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +64 -0
- data/lib/google/monitoring/v3/common_pb.rb +98 -0
- data/lib/google/monitoring/v3/dropped_labels_pb.rb +22 -0
- data/lib/google/monitoring/v3/group_pb.rb +27 -0
- data/lib/google/monitoring/v3/group_service_pb.rb +76 -0
- data/lib/google/monitoring/v3/group_service_services_pb.rb +67 -0
- data/lib/google/monitoring/v3/metric_pb.rb +85 -0
- data/lib/google/monitoring/v3/metric_service_pb.rb +133 -0
- data/lib/google/monitoring/v3/metric_service_services_pb.rb +67 -0
- data/lib/google/monitoring/v3/mutation_record_pb.rb +24 -0
- data/lib/google/monitoring/v3/notification_pb.rb +50 -0
- data/lib/google/monitoring/v3/notification_service_pb.rb +93 -0
- data/lib/google/monitoring/v3/notification_service_services_pb.rb +95 -0
- data/lib/google/monitoring/v3/service_pb.rb +152 -0
- data/lib/google/monitoring/v3/service_service_pb.rb +89 -0
- data/lib/google/monitoring/v3/service_service_services_pb.rb +66 -0
- data/lib/google/monitoring/v3/span_context_pb.rb +22 -0
- data/lib/google/monitoring/v3/uptime_pb.rb +126 -0
- data/lib/google/monitoring/v3/uptime_service_pb.rb +66 -0
- data/lib/google/monitoring/v3/uptime_service_services_pb.rb +68 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/distribution.rb +225 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/label.rb +49 -0
- data/proto_docs/google/api/launch_stage.rb +65 -0
- data/proto_docs/google/api/metric.rb +203 -0
- data/proto_docs/google/api/monitored_resource.rb +137 -0
- data/proto_docs/google/api/resource.rb +247 -0
- data/proto_docs/google/monitoring/v3/alert.rb +359 -0
- data/proto_docs/google/monitoring/v3/alert_service.rb +162 -0
- data/proto_docs/google/monitoring/v3/common.rb +464 -0
- data/proto_docs/google/monitoring/v3/dropped_labels.rb +58 -0
- data/proto_docs/google/monitoring/v3/group.rb +84 -0
- data/proto_docs/google/monitoring/v3/group_service.rb +197 -0
- data/proto_docs/google/monitoring/v3/metric.rb +249 -0
- data/proto_docs/google/monitoring/v3/metric_service.rb +366 -0
- data/proto_docs/google/monitoring/v3/mutation_record.rb +38 -0
- data/proto_docs/google/monitoring/v3/notification.rb +186 -0
- data/proto_docs/google/monitoring/v3/notification_service.rb +266 -0
- data/proto_docs/google/monitoring/v3/service.rb +424 -0
- data/proto_docs/google/monitoring/v3/service_service.rb +239 -0
- data/proto_docs/google/monitoring/v3/span_context.rb +49 -0
- data/proto_docs/google/monitoring/v3/uptime.rb +403 -0
- data/proto_docs/google/monitoring/v3/uptime_service.rb +166 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/calendar_period.rb +55 -0
- metadata +269 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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
|
+
# A set of (label, value) pairs which were dropped during aggregation, attached
|
25
|
+
# to google.api.Distribution.Exemplars in google.api.Distribution values during
|
26
|
+
# aggregation.
|
27
|
+
#
|
28
|
+
# These values are used in combination with the label values that remain on the
|
29
|
+
# aggregated Distribution timeseries to construct the full label set for the
|
30
|
+
# exemplar values. The resulting full label set may be used to identify the
|
31
|
+
# specific task/job/instance (for example) which may be contributing to a
|
32
|
+
# long-tail, while allowing the storage savings of only storing aggregated
|
33
|
+
# distribution values for a large group.
|
34
|
+
#
|
35
|
+
# Note that there are no guarantees on ordering of the labels from
|
36
|
+
# exemplar-to-exemplar and from distribution-to-distribution in the same
|
37
|
+
# stream, and there may be duplicates. It is up to clients to resolve any
|
38
|
+
# ambiguities.
|
39
|
+
# @!attribute [rw] label
|
40
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
41
|
+
# Map from label to its value, for all labels dropped in any aggregation.
|
42
|
+
class DroppedLabels
|
43
|
+
include ::Google::Protobuf::MessageExts
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
45
|
+
|
46
|
+
# @!attribute [rw] key
|
47
|
+
# @return [::String]
|
48
|
+
# @!attribute [rw] value
|
49
|
+
# @return [::String]
|
50
|
+
class LabelEntry
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 description of a dynamic collection of monitored resources. Each group
|
25
|
+
# has a filter that is matched against monitored resources and their associated
|
26
|
+
# metadata. If a group's filter matches an available monitored resource, then
|
27
|
+
# that resource is a member of that group. Groups can contain any number of
|
28
|
+
# monitored resources, and each monitored resource can be a member of any
|
29
|
+
# number of groups.
|
30
|
+
#
|
31
|
+
# Groups can be nested in parent-child hierarchies. The `parentName` field
|
32
|
+
# identifies an optional parent for each group. If a group has a parent, then
|
33
|
+
# the only monitored resources available to be matched by the group's filter
|
34
|
+
# are the resources contained in the parent group. In other words, a group
|
35
|
+
# contains the monitored resources that match its filter and the filters of all
|
36
|
+
# the group's ancestors. A group without a parent can contain any monitored
|
37
|
+
# resource.
|
38
|
+
#
|
39
|
+
# For example, consider an infrastructure running a set of instances with two
|
40
|
+
# user-defined tags: `"environment"` and `"role"`. A parent group has a filter,
|
41
|
+
# `environment="production"`. A child of that parent group has a filter,
|
42
|
+
# `role="transcoder"`. The parent group contains all instances in the
|
43
|
+
# production environment, regardless of their roles. The child group contains
|
44
|
+
# instances that have the transcoder role *and* are in the production
|
45
|
+
# environment.
|
46
|
+
#
|
47
|
+
# The monitored resources contained in a group can change at any moment,
|
48
|
+
# depending on what resources exist and what filters are associated with the
|
49
|
+
# group and its ancestors.
|
50
|
+
# @!attribute [rw] name
|
51
|
+
# @return [::String]
|
52
|
+
# Output only. The name of this group. The format is:
|
53
|
+
#
|
54
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
55
|
+
#
|
56
|
+
# When creating a group, this field is ignored and a new name is created
|
57
|
+
# consisting of the project specified in the call to `CreateGroup`
|
58
|
+
# and a unique `[GROUP_ID]` that is generated automatically.
|
59
|
+
# @!attribute [rw] display_name
|
60
|
+
# @return [::String]
|
61
|
+
# A user-assigned name for this group, used only for display purposes.
|
62
|
+
# @!attribute [rw] parent_name
|
63
|
+
# @return [::String]
|
64
|
+
# The name of the group's parent, if it has one. The format is:
|
65
|
+
#
|
66
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
67
|
+
#
|
68
|
+
# For groups with no parent, `parent_name` is the empty string, `""`.
|
69
|
+
# @!attribute [rw] filter
|
70
|
+
# @return [::String]
|
71
|
+
# The filter used to determine which monitored resources belong to this
|
72
|
+
# group.
|
73
|
+
# @!attribute [rw] is_cluster
|
74
|
+
# @return [::Boolean]
|
75
|
+
# If true, the members of this group are considered to be a cluster.
|
76
|
+
# The system can perform additional analysis on groups that are clusters.
|
77
|
+
class Group
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,197 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 `ListGroup` request.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The project whose groups are to be listed. The format is:
|
28
|
+
#
|
29
|
+
# projects/[PROJECT_ID_OR_NUMBER]
|
30
|
+
# @!attribute [rw] children_of_group
|
31
|
+
# @return [::String]
|
32
|
+
# A group name. The format is:
|
33
|
+
#
|
34
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
35
|
+
#
|
36
|
+
# Returns groups whose `parent_name` field contains the group
|
37
|
+
# name. If no groups have this parent, the results are empty.
|
38
|
+
# @!attribute [rw] ancestors_of_group
|
39
|
+
# @return [::String]
|
40
|
+
# A group name. The format is:
|
41
|
+
#
|
42
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
43
|
+
#
|
44
|
+
# Returns groups that are ancestors of the specified group.
|
45
|
+
# The groups are returned in order, starting with the immediate parent and
|
46
|
+
# ending with the most distant ancestor. If the specified group has no
|
47
|
+
# immediate parent, the results are empty.
|
48
|
+
# @!attribute [rw] descendants_of_group
|
49
|
+
# @return [::String]
|
50
|
+
# A group name. The format is:
|
51
|
+
#
|
52
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
53
|
+
#
|
54
|
+
# Returns the descendants of the specified group. This is a superset of
|
55
|
+
# the results returned by the `children_of_group` filter, and includes
|
56
|
+
# children-of-children, and so forth.
|
57
|
+
# @!attribute [rw] page_size
|
58
|
+
# @return [::Integer]
|
59
|
+
# A positive number that is the maximum number of results to return.
|
60
|
+
# @!attribute [rw] page_token
|
61
|
+
# @return [::String]
|
62
|
+
# If this field is not empty then it must contain the `next_page_token` value
|
63
|
+
# returned by a previous call to this method. Using this field causes the
|
64
|
+
# method to return additional results from the previous method call.
|
65
|
+
class ListGroupsRequest
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
end
|
69
|
+
|
70
|
+
# The `ListGroups` response.
|
71
|
+
# @!attribute [rw] group
|
72
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::Group>]
|
73
|
+
# The groups that match the specified filters.
|
74
|
+
# @!attribute [rw] next_page_token
|
75
|
+
# @return [::String]
|
76
|
+
# If there are more results than have been returned, then this field is set
|
77
|
+
# to a non-empty value. To see the additional results,
|
78
|
+
# use that value as `page_token` in the next call to this method.
|
79
|
+
class ListGroupsResponse
|
80
|
+
include ::Google::Protobuf::MessageExts
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
82
|
+
end
|
83
|
+
|
84
|
+
# The `GetGroup` request.
|
85
|
+
# @!attribute [rw] name
|
86
|
+
# @return [::String]
|
87
|
+
# Required. The group to retrieve. The format is:
|
88
|
+
#
|
89
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
90
|
+
class GetGroupRequest
|
91
|
+
include ::Google::Protobuf::MessageExts
|
92
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
93
|
+
end
|
94
|
+
|
95
|
+
# The `CreateGroup` request.
|
96
|
+
# @!attribute [rw] name
|
97
|
+
# @return [::String]
|
98
|
+
# Required. The project in which to create the group. The format is:
|
99
|
+
#
|
100
|
+
# projects/[PROJECT_ID_OR_NUMBER]
|
101
|
+
# @!attribute [rw] group
|
102
|
+
# @return [::Google::Cloud::Monitoring::V3::Group]
|
103
|
+
# Required. A group definition. It is an error to define the `name` field because
|
104
|
+
# the system assigns the name.
|
105
|
+
# @!attribute [rw] validate_only
|
106
|
+
# @return [::Boolean]
|
107
|
+
# If true, validate this request but do not create the group.
|
108
|
+
class CreateGroupRequest
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
|
113
|
+
# The `UpdateGroup` request.
|
114
|
+
# @!attribute [rw] group
|
115
|
+
# @return [::Google::Cloud::Monitoring::V3::Group]
|
116
|
+
# Required. The new definition of the group. All fields of the existing group,
|
117
|
+
# excepting `name`, are replaced with the corresponding fields of this group.
|
118
|
+
# @!attribute [rw] validate_only
|
119
|
+
# @return [::Boolean]
|
120
|
+
# If true, validate this request but do not update the existing group.
|
121
|
+
class UpdateGroupRequest
|
122
|
+
include ::Google::Protobuf::MessageExts
|
123
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
124
|
+
end
|
125
|
+
|
126
|
+
# The `DeleteGroup` request. The default behavior is to be able to delete a
|
127
|
+
# single group without any descendants.
|
128
|
+
# @!attribute [rw] name
|
129
|
+
# @return [::String]
|
130
|
+
# Required. The group to delete. The format is:
|
131
|
+
#
|
132
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
133
|
+
# @!attribute [rw] recursive
|
134
|
+
# @return [::Boolean]
|
135
|
+
# If this field is true, then the request means to delete a group with all
|
136
|
+
# its descendants. Otherwise, the request means to delete a group only when
|
137
|
+
# it has no descendants. The default value is false.
|
138
|
+
class DeleteGroupRequest
|
139
|
+
include ::Google::Protobuf::MessageExts
|
140
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
141
|
+
end
|
142
|
+
|
143
|
+
# The `ListGroupMembers` request.
|
144
|
+
# @!attribute [rw] name
|
145
|
+
# @return [::String]
|
146
|
+
# Required. The group whose members are listed. The format is:
|
147
|
+
#
|
148
|
+
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
149
|
+
# @!attribute [rw] page_size
|
150
|
+
# @return [::Integer]
|
151
|
+
# A positive number that is the maximum number of results to return.
|
152
|
+
# @!attribute [rw] page_token
|
153
|
+
# @return [::String]
|
154
|
+
# If this field is not empty then it must contain the `next_page_token` value
|
155
|
+
# returned by a previous call to this method. Using this field causes the
|
156
|
+
# method to return additional results from the previous method call.
|
157
|
+
# @!attribute [rw] filter
|
158
|
+
# @return [::String]
|
159
|
+
# An optional [list
|
160
|
+
# filter](https://cloud.google.com/monitoring/api/learn_more#filtering)
|
161
|
+
# describing the members to be returned. The filter may reference the type,
|
162
|
+
# labels, and metadata of monitored resources that comprise the group. For
|
163
|
+
# example, to return only resources representing Compute Engine VM instances,
|
164
|
+
# use this filter:
|
165
|
+
#
|
166
|
+
# `resource.type = "gce_instance"`
|
167
|
+
# @!attribute [rw] interval
|
168
|
+
# @return [::Google::Cloud::Monitoring::V3::TimeInterval]
|
169
|
+
# An optional time interval for which results should be returned. Only
|
170
|
+
# members that were part of the group during the specified interval are
|
171
|
+
# included in the response. If no interval is provided then the group
|
172
|
+
# membership over the last minute is returned.
|
173
|
+
class ListGroupMembersRequest
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
|
+
end
|
177
|
+
|
178
|
+
# The `ListGroupMembers` response.
|
179
|
+
# @!attribute [rw] members
|
180
|
+
# @return [::Array<::Google::Api::MonitoredResource>]
|
181
|
+
# A set of monitored resources in the group.
|
182
|
+
# @!attribute [rw] next_page_token
|
183
|
+
# @return [::String]
|
184
|
+
# If there are more results than have been returned, then this field is
|
185
|
+
# set to a non-empty value. To see the additional results, use that value as
|
186
|
+
# `page_token` in the next call to this method.
|
187
|
+
# @!attribute [rw] total_size
|
188
|
+
# @return [::Integer]
|
189
|
+
# The total number of elements matching this request.
|
190
|
+
class ListGroupMembersResponse
|
191
|
+
include ::Google::Protobuf::MessageExts
|
192
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
197
|
+
end
|
@@ -0,0 +1,249 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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
|
+
# A single data point in a time series.
|
25
|
+
# @!attribute [rw] interval
|
26
|
+
# @return [::Google::Cloud::Monitoring::V3::TimeInterval]
|
27
|
+
# The time interval to which the data point applies. For `GAUGE` metrics,
|
28
|
+
# the start time is optional, but if it is supplied, it must equal the
|
29
|
+
# end time. For `DELTA` metrics, the start
|
30
|
+
# and end time should specify a non-zero interval, with subsequent points
|
31
|
+
# specifying contiguous and non-overlapping intervals. For `CUMULATIVE`
|
32
|
+
# metrics, the start and end time should specify a non-zero interval, with
|
33
|
+
# subsequent points specifying the same start time and increasing end times,
|
34
|
+
# until an event resets the cumulative value to zero and sets a new start
|
35
|
+
# time for the following points.
|
36
|
+
# @!attribute [rw] value
|
37
|
+
# @return [::Google::Cloud::Monitoring::V3::TypedValue]
|
38
|
+
# The value of the data point.
|
39
|
+
class Point
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
end
|
43
|
+
|
44
|
+
# A collection of data points that describes the time-varying values
|
45
|
+
# of a metric. A time series is identified by a combination of a
|
46
|
+
# fully-specified monitored resource and a fully-specified metric.
|
47
|
+
# This type is used for both listing and creating time series.
|
48
|
+
# @!attribute [rw] metric
|
49
|
+
# @return [::Google::Api::Metric]
|
50
|
+
# The associated metric. A fully-specified metric used to identify the time
|
51
|
+
# series.
|
52
|
+
# @!attribute [rw] resource
|
53
|
+
# @return [::Google::Api::MonitoredResource]
|
54
|
+
# The associated monitored resource. Custom metrics can use only certain
|
55
|
+
# monitored resource types in their time series data.
|
56
|
+
# @!attribute [rw] metadata
|
57
|
+
# @return [::Google::Api::MonitoredResourceMetadata]
|
58
|
+
# Output only. The associated monitored resource metadata. When reading a
|
59
|
+
# a timeseries, this field will include metadata labels that are explicitly
|
60
|
+
# named in the reduction. When creating a timeseries, this field is ignored.
|
61
|
+
# @!attribute [rw] metric_kind
|
62
|
+
# @return [::Google::Api::MetricDescriptor::MetricKind]
|
63
|
+
# The metric kind of the time series. When listing time series, this metric
|
64
|
+
# kind might be different from the metric kind of the associated metric if
|
65
|
+
# this time series is an alignment or reduction of other time series.
|
66
|
+
#
|
67
|
+
# When creating a time series, this field is optional. If present, it must be
|
68
|
+
# the same as the metric kind of the associated metric. If the associated
|
69
|
+
# metric's descriptor must be auto-created, then this field specifies the
|
70
|
+
# metric kind of the new descriptor and must be either `GAUGE` (the default)
|
71
|
+
# or `CUMULATIVE`.
|
72
|
+
# @!attribute [rw] value_type
|
73
|
+
# @return [::Google::Api::MetricDescriptor::ValueType]
|
74
|
+
# The value type of the time series. When listing time series, this value
|
75
|
+
# type might be different from the value type of the associated metric if
|
76
|
+
# this time series is an alignment or reduction of other time series.
|
77
|
+
#
|
78
|
+
# When creating a time series, this field is optional. If present, it must be
|
79
|
+
# the same as the type of the data in the `points` field.
|
80
|
+
# @!attribute [rw] points
|
81
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::Point>]
|
82
|
+
# The data points of this time series. When listing time series, points are
|
83
|
+
# returned in reverse time order.
|
84
|
+
#
|
85
|
+
# When creating a time series, this field must contain exactly one point and
|
86
|
+
# the point's type must be the same as the value type of the associated
|
87
|
+
# metric. If the associated metric's descriptor must be auto-created, then
|
88
|
+
# the value type of the descriptor is determined by the point's type, which
|
89
|
+
# must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
|
90
|
+
class TimeSeries
|
91
|
+
include ::Google::Protobuf::MessageExts
|
92
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
93
|
+
end
|
94
|
+
|
95
|
+
# A descriptor for the labels and points in a timeseries.
|
96
|
+
# @!attribute [rw] label_descriptors
|
97
|
+
# @return [::Array<::Google::Api::LabelDescriptor>]
|
98
|
+
# Descriptors for the labels.
|
99
|
+
# @!attribute [rw] point_descriptors
|
100
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::TimeSeriesDescriptor::ValueDescriptor>]
|
101
|
+
# Descriptors for the point data value columns.
|
102
|
+
class TimeSeriesDescriptor
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
|
106
|
+
# A descriptor for the value columns in a data point.
|
107
|
+
# @!attribute [rw] key
|
108
|
+
# @return [::String]
|
109
|
+
# The value key.
|
110
|
+
# @!attribute [rw] value_type
|
111
|
+
# @return [::Google::Api::MetricDescriptor::ValueType]
|
112
|
+
# The value type.
|
113
|
+
# @!attribute [rw] metric_kind
|
114
|
+
# @return [::Google::Api::MetricDescriptor::MetricKind]
|
115
|
+
# The value stream kind.
|
116
|
+
class ValueDescriptor
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# Represents the values of a time series associated with a
|
123
|
+
# TimeSeriesDescriptor.
|
124
|
+
# @!attribute [rw] label_values
|
125
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::LabelValue>]
|
126
|
+
# The values of the labels in the time series identifier, given in the same
|
127
|
+
# order as the `label_descriptors` field of the TimeSeriesDescriptor
|
128
|
+
# associated with this object. Each value must have a value of the type
|
129
|
+
# given in the corresponding entry of `label_descriptors`.
|
130
|
+
# @!attribute [rw] point_data
|
131
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::TimeSeriesData::PointData>]
|
132
|
+
# The points in the time series.
|
133
|
+
class TimeSeriesData
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
|
+
|
137
|
+
# A point's value columns and time interval. Each point has one or more
|
138
|
+
# point values corresponding to the entries in `point_descriptors` field in
|
139
|
+
# the TimeSeriesDescriptor associated with this object.
|
140
|
+
# @!attribute [rw] values
|
141
|
+
# @return [::Array<::Google::Cloud::Monitoring::V3::TypedValue>]
|
142
|
+
# The values that make up the point.
|
143
|
+
# @!attribute [rw] time_interval
|
144
|
+
# @return [::Google::Cloud::Monitoring::V3::TimeInterval]
|
145
|
+
# The time interval associated with the point.
|
146
|
+
class PointData
|
147
|
+
include ::Google::Protobuf::MessageExts
|
148
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# A label value.
|
153
|
+
# @!attribute [rw] bool_value
|
154
|
+
# @return [::Boolean]
|
155
|
+
# A bool label value.
|
156
|
+
# @!attribute [rw] int64_value
|
157
|
+
# @return [::Integer]
|
158
|
+
# An int64 label value.
|
159
|
+
# @!attribute [rw] string_value
|
160
|
+
# @return [::String]
|
161
|
+
# A string label value.
|
162
|
+
class LabelValue
|
163
|
+
include ::Google::Protobuf::MessageExts
|
164
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
165
|
+
end
|
166
|
+
|
167
|
+
# An error associated with a query in the time series query language format.
|
168
|
+
# @!attribute [rw] locator
|
169
|
+
# @return [::Google::Cloud::Monitoring::V3::TextLocator]
|
170
|
+
# The location of the time series query language text that this error applies
|
171
|
+
# to.
|
172
|
+
# @!attribute [rw] message
|
173
|
+
# @return [::String]
|
174
|
+
# The error message.
|
175
|
+
class QueryError
|
176
|
+
include ::Google::Protobuf::MessageExts
|
177
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
178
|
+
end
|
179
|
+
|
180
|
+
# A locator for text. Indicates a particular part of the text of a request or
|
181
|
+
# of an object referenced in the request.
|
182
|
+
#
|
183
|
+
# For example, suppose the request field `text` contains:
|
184
|
+
#
|
185
|
+
# text: "The quick brown fox jumps over the lazy dog."
|
186
|
+
#
|
187
|
+
# Then the locator:
|
188
|
+
#
|
189
|
+
# source: "text"
|
190
|
+
# start_position {
|
191
|
+
# line: 1
|
192
|
+
# column: 17
|
193
|
+
# }
|
194
|
+
# end_position {
|
195
|
+
# line: 1
|
196
|
+
# column: 19
|
197
|
+
# }
|
198
|
+
#
|
199
|
+
# refers to the part of the text: "fox".
|
200
|
+
# @!attribute [rw] source
|
201
|
+
# @return [::String]
|
202
|
+
# The source of the text. The source may be a field in the request, in which
|
203
|
+
# case its format is the format of the
|
204
|
+
# google.rpc.BadRequest.FieldViolation.field field in
|
205
|
+
# https://cloud.google.com/apis/design/errors#error_details. It may also be
|
206
|
+
# be a source other than the request field (e.g. a macro definition
|
207
|
+
# referenced in the text of the query), in which case this is the name of
|
208
|
+
# the source (e.g. the macro name).
|
209
|
+
# @!attribute [rw] start_position
|
210
|
+
# @return [::Google::Cloud::Monitoring::V3::TextLocator::Position]
|
211
|
+
# The position of the first byte within the text.
|
212
|
+
# @!attribute [rw] end_position
|
213
|
+
# @return [::Google::Cloud::Monitoring::V3::TextLocator::Position]
|
214
|
+
# The position of the last byte within the text.
|
215
|
+
# @!attribute [rw] nested_locator
|
216
|
+
# @return [::Google::Cloud::Monitoring::V3::TextLocator]
|
217
|
+
# If `source`, `start_position`, and `end_position` describe a call on
|
218
|
+
# some object (e.g. a macro in the time series query language text) and a
|
219
|
+
# location is to be designated in that object's text, `nested_locator`
|
220
|
+
# identifies the location within that object.
|
221
|
+
# @!attribute [rw] nesting_reason
|
222
|
+
# @return [::String]
|
223
|
+
# When `nested_locator` is set, this field gives the reason for the nesting.
|
224
|
+
# Usually, the reason is a macro invocation. In that case, the macro name
|
225
|
+
# (including the leading '@') signals the location of the macro call
|
226
|
+
# in the text and a macro argument name (including the leading '$') signals
|
227
|
+
# the location of the macro argument inside the macro body that got
|
228
|
+
# substituted away.
|
229
|
+
class TextLocator
|
230
|
+
include ::Google::Protobuf::MessageExts
|
231
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
232
|
+
|
233
|
+
# The position of a byte within the text.
|
234
|
+
# @!attribute [rw] line
|
235
|
+
# @return [::Integer]
|
236
|
+
# The line, starting with 1, where the byte is positioned.
|
237
|
+
# @!attribute [rw] column
|
238
|
+
# @return [::Integer]
|
239
|
+
# The column within the line, starting with 1, where the byte is
|
240
|
+
# positioned. This is a byte index even though the text is UTF-8.
|
241
|
+
class Position
|
242
|
+
include ::Google::Protobuf::MessageExts
|
243
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|