google-api-client 0.9.25 → 0.9.26

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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -27,19 +27,19 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
30
- REVISION = '20170123'
30
+ REVISION = '20170126'
31
+
32
+ # View and write monitoring data for all of your Google and third-party Cloud and API projects
33
+ AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
34
+
35
+ # Publish metric data to your Google Cloud projects
36
+ AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
31
37
 
32
38
  # View and manage your data across Google Cloud Platform services
33
39
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
40
 
35
41
  # View monitoring data for all of your Google Cloud and third-party projects
36
42
  AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read'
37
-
38
- # Publish metric data to your Google Cloud projects
39
- AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
40
-
41
- # View and write monitoring data for all of your Google and third-party Cloud and API projects
42
- AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
43
43
  end
44
44
  end
45
45
  end
@@ -22,206 +22,53 @@ module Google
22
22
  module Apis
23
23
  module MonitoringV3
24
24
 
25
- # A specific metric, identified by specifying values for all of the labels of a
26
- # MetricDescriptor.
27
- class Metric
28
- include Google::Apis::Core::Hashable
29
-
30
- # The set of label values that uniquely identify this metric. All labels listed
31
- # in the MetricDescriptor must be assigned values.
32
- # Corresponds to the JSON property `labels`
33
- # @return [Hash<String,String>]
34
- attr_accessor :labels
35
-
36
- # An existing metric type, see google.api.MetricDescriptor. For example, custom.
37
- # googleapis.com/invoice/paid/amount.
38
- # Corresponds to the JSON property `type`
39
- # @return [String]
40
- attr_accessor :type
41
-
42
- def initialize(**args)
43
- update!(**args)
44
- end
45
-
46
- # Update properties of this object
47
- def update!(**args)
48
- @labels = args[:labels] if args.key?(:labels)
49
- @type = args[:type] if args.key?(:type)
50
- end
51
- end
52
-
53
- # The ListGroupMembers response.
54
- class ListGroupMembersResponse
55
- include Google::Apis::Core::Hashable
56
-
57
- # A set of monitored resources in the group.
58
- # Corresponds to the JSON property `members`
59
- # @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
60
- attr_accessor :members
61
-
62
- # If there are more results than have been returned, then this field is set to a
63
- # non-empty value. To see the additional results, use that value as pageToken in
64
- # the next call to this method.
65
- # Corresponds to the JSON property `nextPageToken`
66
- # @return [String]
67
- attr_accessor :next_page_token
68
-
69
- # The total number of elements matching this request.
70
- # Corresponds to the JSON property `totalSize`
71
- # @return [Fixnum]
72
- attr_accessor :total_size
73
-
74
- def initialize(**args)
75
- update!(**args)
76
- end
77
-
78
- # Update properties of this object
79
- def update!(**args)
80
- @members = args[:members] if args.key?(:members)
81
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
82
- @total_size = args[:total_size] if args.key?(:total_size)
83
- end
84
- end
85
-
86
- # A time interval extending just after a start time through an end time. If the
87
- # start time is the same as the end time, then the interval represents a single
88
- # point in time.
89
- class TimeInterval
90
- include Google::Apis::Core::Hashable
91
-
92
- # Required. The end of the time interval.
93
- # Corresponds to the JSON property `endTime`
94
- # @return [String]
95
- attr_accessor :end_time
96
-
97
- # Optional. The beginning of the time interval. The default value for the start
98
- # time is the end time. The start time must not be later than the end time.
99
- # Corresponds to the JSON property `startTime`
100
- # @return [String]
101
- attr_accessor :start_time
102
-
103
- def initialize(**args)
104
- update!(**args)
105
- end
106
-
107
- # Update properties of this object
108
- def update!(**args)
109
- @end_time = args[:end_time] if args.key?(:end_time)
110
- @start_time = args[:start_time] if args.key?(:start_time)
111
- end
112
- end
113
-
114
- # The description of a dynamic collection of monitored resources. Each group has
115
- # a filter that is matched against monitored resources and their associated
116
- # metadata. If a group's filter matches an available monitored resource, then
117
- # that resource is a member of that group. Groups can contain any number of
118
- # monitored resources, and each monitored resource can be a member of any number
119
- # of groups.Groups can be nested in parent-child hierarchies. The parentName
120
- # field identifies an optional parent for each group. If a group has a parent,
121
- # then the only monitored resources available to be matched by the group's
122
- # filter are the resources contained in the parent group. In other words, a
123
- # group contains the monitored resources that match its filter and the filters
124
- # of all the group's ancestors. A group without a parent can contain any
125
- # monitored resource.For example, consider an infrastructure running a set of
126
- # instances with two user-defined tags: "environment" and "role". A parent group
127
- # has a filter, environment="production". A child of that parent group has a
128
- # filter, role="transcoder". The parent group contains all instances in the
129
- # production environment, regardless of their roles. The child group contains
130
- # instances that have the transcoder role and are in the production environment.
131
- # The monitored resources contained in a group can change at any moment,
132
- # depending on what resources exist and what filters are associated with the
133
- # group and its ancestors.
134
- class Group
135
- include Google::Apis::Core::Hashable
136
-
137
- # A user-assigned name for this group, used only for display purposes.
138
- # Corresponds to the JSON property `displayName`
139
- # @return [String]
140
- attr_accessor :display_name
141
-
142
- # The name of the group's parent, if it has one. The format is "projects/`
143
- # project_id_or_number`/groups/`group_id`". For groups with no parent,
144
- # parentName is the empty string, "".
145
- # Corresponds to the JSON property `parentName`
146
- # @return [String]
147
- attr_accessor :parent_name
148
-
149
- # If true, the members of this group are considered to be a cluster. The system
150
- # can perform additional analysis on groups that are clusters.
151
- # Corresponds to the JSON property `isCluster`
152
- # @return [Boolean]
153
- attr_accessor :is_cluster
154
- alias_method :is_cluster?, :is_cluster
155
-
156
- # The filter used to determine which monitored resources belong to this group.
157
- # Corresponds to the JSON property `filter`
158
- # @return [String]
159
- attr_accessor :filter
160
-
161
- # Output only. The name of this group. The format is "projects/`
162
- # project_id_or_number`/groups/`group_id`". When creating a group, this field is
163
- # ignored and a new name is created consisting of the project specified in the
164
- # call to CreateGroup and a unique `group_id` that is generated automatically.
165
- # Corresponds to the JSON property `name`
166
- # @return [String]
167
- attr_accessor :name
168
-
169
- def initialize(**args)
170
- update!(**args)
171
- end
172
-
173
- # Update properties of this object
174
- def update!(**args)
175
- @display_name = args[:display_name] if args.key?(:display_name)
176
- @parent_name = args[:parent_name] if args.key?(:parent_name)
177
- @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
178
- @filter = args[:filter] if args.key?(:filter)
179
- @name = args[:name] if args.key?(:name)
180
- end
181
- end
182
-
183
- # The ListTimeSeries response.
184
- class ListTimeSeriesResponse
25
+ # A Distribution may optionally contain a histogram of the values in the
26
+ # population. The histogram is given in bucket_counts as counts of values that
27
+ # fall into one of a sequence of non-overlapping buckets. The sequence of
28
+ # buckets is described by bucket_options.A bucket specifies an inclusive lower
29
+ # bound and exclusive upper bound for the values that are counted for that
30
+ # bucket. The upper bound of a bucket is strictly greater than the lower bound.
31
+ # The sequence of N buckets for a Distribution consists of an underflow bucket (
32
+ # number 0), zero or more finite buckets (number 1 through N - 2) and an
33
+ # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
34
+ # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
35
+ # span the whole range of finite values: lower bound of the underflow bucket is -
36
+ # infinity and the upper bound of the overflow bucket is +infinity. The finite
37
+ # buckets are so-called because both bounds are finite.BucketOptions describes
38
+ # bucket boundaries in one of three ways. Two describe the boundaries by giving
39
+ # parameters for a formula to generate boundaries and one gives the bucket
40
+ # boundaries explicitly.If bucket_options is not given, then no bucket_counts
41
+ # may be given.
42
+ class BucketOptions
185
43
  include Google::Apis::Core::Hashable
186
44
 
187
- # One or more time series that match the filter included in the request.
188
- # Corresponds to the JSON property `timeSeries`
189
- # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
190
- attr_accessor :time_series
191
-
192
- # If there are more results than have been returned, then this field is set to a
193
- # non-empty value. To see the additional results, use that value as pageToken in
194
- # the next call to this method.
195
- # Corresponds to the JSON property `nextPageToken`
196
- # @return [String]
197
- attr_accessor :next_page_token
198
-
199
- def initialize(**args)
200
- update!(**args)
201
- end
202
-
203
- # Update properties of this object
204
- def update!(**args)
205
- @time_series = args[:time_series] if args.key?(:time_series)
206
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
207
- end
208
- end
209
-
210
- # A single data point in a time series.
211
- class Point
212
- include Google::Apis::Core::Hashable
45
+ # Specify a sequence of buckets that have a width that is proportional to the
46
+ # value of the lower bound. Each bucket represents a constant relative
47
+ # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
48
+ # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
49
+ # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
50
+ # ^ (i - 1)).
51
+ # Corresponds to the JSON property `exponentialBuckets`
52
+ # @return [Google::Apis::MonitoringV3::Exponential]
53
+ attr_accessor :exponential_buckets
213
54
 
214
- # A single strongly-typed value.
215
- # Corresponds to the JSON property `value`
216
- # @return [Google::Apis::MonitoringV3::TypedValue]
217
- attr_accessor :value
55
+ # Specify a sequence of buckets that all have the same width (except overflow
56
+ # and underflow). Each bucket represents a constant absolute uncertainty on the
57
+ # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
58
+ # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
59
+ # Lower bound (1 <= i < N): offset + (width * (i - 1)).
60
+ # Corresponds to the JSON property `linearBuckets`
61
+ # @return [Google::Apis::MonitoringV3::Linear]
62
+ attr_accessor :linear_buckets
218
63
 
219
- # A time interval extending just after a start time through an end time. If the
220
- # start time is the same as the end time, then the interval represents a single
221
- # point in time.
222
- # Corresponds to the JSON property `interval`
223
- # @return [Google::Apis::MonitoringV3::TimeInterval]
224
- attr_accessor :interval
64
+ # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
65
+ # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
66
+ # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
67
+ # If bounds has only one element, there are no finite buckets, and that single
68
+ # element is the common boundary of the overflow and underflow buckets.
69
+ # Corresponds to the JSON property `explicitBuckets`
70
+ # @return [Google::Apis::MonitoringV3::Explicit]
71
+ attr_accessor :explicit_buckets
225
72
 
226
73
  def initialize(**args)
227
74
  update!(**args)
@@ -229,8 +76,9 @@ module Google
229
76
 
230
77
  # Update properties of this object
231
78
  def update!(**args)
232
- @value = args[:value] if args.key?(:value)
233
- @interval = args[:interval] if args.key?(:interval)
79
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
80
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
81
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
234
82
  end
235
83
  end
236
84
 
@@ -238,17 +86,17 @@ module Google
238
86
  class CollectdValue
239
87
  include Google::Apis::Core::Hashable
240
88
 
241
- # A single strongly-typed value.
242
- # Corresponds to the JSON property `value`
243
- # @return [Google::Apis::MonitoringV3::TypedValue]
244
- attr_accessor :value
245
-
246
89
  # The data source for the collectd value. For example there are two data sources
247
90
  # for network measurements: "rx" and "tx".
248
91
  # Corresponds to the JSON property `dataSourceName`
249
92
  # @return [String]
250
93
  attr_accessor :data_source_name
251
94
 
95
+ # A single strongly-typed value.
96
+ # Corresponds to the JSON property `value`
97
+ # @return [Google::Apis::MonitoringV3::TypedValue]
98
+ attr_accessor :value
99
+
252
100
  # The type of measurement.
253
101
  # Corresponds to the JSON property `dataSourceType`
254
102
  # @return [String]
@@ -260,70 +108,22 @@ module Google
260
108
 
261
109
  # Update properties of this object
262
110
  def update!(**args)
263
- @value = args[:value] if args.key?(:value)
264
111
  @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
112
+ @value = args[:value] if args.key?(:value)
265
113
  @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
266
114
  end
267
115
  end
268
116
 
269
- # A collection of data points that describes the time-varying values of a metric.
270
- # A time series is identified by a combination of a fully-specified monitored
271
- # resource and a fully-specified metric. This type is used for both listing and
272
- # creating time series.
273
- class TimeSeries
117
+ # SourceContext represents information about the source of a protobuf element,
118
+ # like the file in which it is defined.
119
+ class SourceContext
274
120
  include Google::Apis::Core::Hashable
275
121
 
276
- # A specific metric, identified by specifying values for all of the labels of a
277
- # MetricDescriptor.
278
- # Corresponds to the JSON property `metric`
279
- # @return [Google::Apis::MonitoringV3::Metric]
280
- attr_accessor :metric
281
-
282
- # The data points of this time series. When listing time series, the order of
283
- # the points is specified by the list method.When creating a time series, this
284
- # field must contain exactly one point and the point's type must be the same as
285
- # the value type of the associated metric. If the associated metric's descriptor
286
- # must be auto-created, then the value type of the descriptor is determined by
287
- # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
288
- # Corresponds to the JSON property `points`
289
- # @return [Array<Google::Apis::MonitoringV3::Point>]
290
- attr_accessor :points
291
-
292
- # The value type of the time series. When listing time series, this value type
293
- # might be different from the value type of the associated metric if this time
294
- # series is an alignment or reduction of other time series.When creating a time
295
- # series, this field is optional. If present, it must be the same as the type of
296
- # the data in the points field.
297
- # Corresponds to the JSON property `valueType`
298
- # @return [String]
299
- attr_accessor :value_type
300
-
301
- # An object representing a resource that can be used for monitoring, logging,
302
- # billing, or other purposes. Examples include virtual machine instances,
303
- # databases, and storage devices such as disks. The type field identifies a
304
- # MonitoredResourceDescriptor object that describes the resource's schema.
305
- # Information in the labels field identifies the actual resource and its
306
- # attributes according to the schema. For example, a particular Compute Engine
307
- # VM instance could be represented by the following object, because the
308
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
309
- # zone":
310
- # ` "type": "gce_instance",
311
- # "labels": ` "instance_id": "12345678901234",
312
- # "zone": "us-central1-a" ``
313
- # Corresponds to the JSON property `resource`
314
- # @return [Google::Apis::MonitoringV3::MonitoredResource]
315
- attr_accessor :resource
316
-
317
- # The metric kind of the time series. When listing time series, this metric kind
318
- # might be different from the metric kind of the associated metric if this time
319
- # series is an alignment or reduction of other time series.When creating a time
320
- # series, this field is optional. If present, it must be the same as the metric
321
- # kind of the associated metric. If the associated metric's descriptor must be
322
- # auto-created, then this field specifies the metric kind of the new descriptor
323
- # and must be either GAUGE (the default) or CUMULATIVE.
324
- # Corresponds to the JSON property `metricKind`
122
+ # The path-qualified name of the .proto file that contained the associated
123
+ # protobuf element. For example: "google/protobuf/source_context.proto".
124
+ # Corresponds to the JSON property `fileName`
325
125
  # @return [String]
326
- attr_accessor :metric_kind
126
+ attr_accessor :file_name
327
127
 
328
128
  def initialize(**args)
329
129
  update!(**args)
@@ -331,11 +131,7 @@ module Google
331
131
 
332
132
  # Update properties of this object
333
133
  def update!(**args)
334
- @metric = args[:metric] if args.key?(:metric)
335
- @points = args[:points] if args.key?(:points)
336
- @value_type = args[:value_type] if args.key?(:value_type)
337
- @resource = args[:resource] if args.key?(:resource)
338
- @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
134
+ @file_name = args[:file_name] if args.key?(:file_name)
339
135
  end
340
136
  end
341
137
 
@@ -345,11 +141,6 @@ module Google
345
141
  class MetricDescriptor
346
142
  include Google::Apis::Core::Hashable
347
143
 
348
- # A detailed description of the metric, which can be used in documentation.
349
- # Corresponds to the JSON property `description`
350
- # @return [String]
351
- attr_accessor :description
352
-
353
144
  # The unit in which the metric value is reported. It is only applicable if the
354
145
  # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
355
146
  # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
@@ -409,24 +200,6 @@ module Google
409
200
  # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
410
201
  attr_accessor :labels
411
202
 
412
- # Whether the metric records instantaneous values, changes to a value, etc. Some
413
- # combinations of metric_kind and value_type might not be supported.
414
- # Corresponds to the JSON property `metricKind`
415
- # @return [String]
416
- attr_accessor :metric_kind
417
-
418
- # Whether the measurement is an integer, a floating-point number, etc. Some
419
- # combinations of metric_kind and value_type might not be supported.
420
- # Corresponds to the JSON property `valueType`
421
- # @return [String]
422
- attr_accessor :value_type
423
-
424
- # A concise name for the metric, which can be displayed in user interfaces. Use
425
- # sentence case without an ending period, for example "Request count".
426
- # Corresponds to the JSON property `displayName`
427
- # @return [String]
428
- attr_accessor :display_name
429
-
430
203
  # The resource name of the metric descriptor. Depending on the implementation,
431
204
  # the name typically includes: (1) the parent resource name that defines the
432
205
  # scope of the metric type or of its data; and (2) the metric's URL-encoded type,
@@ -448,46 +221,86 @@ module Google
448
221
  # @return [String]
449
222
  attr_accessor :type
450
223
 
224
+ # Whether the measurement is an integer, a floating-point number, etc. Some
225
+ # combinations of metric_kind and value_type might not be supported.
226
+ # Corresponds to the JSON property `valueType`
227
+ # @return [String]
228
+ attr_accessor :value_type
229
+
230
+ # Whether the metric records instantaneous values, changes to a value, etc. Some
231
+ # combinations of metric_kind and value_type might not be supported.
232
+ # Corresponds to the JSON property `metricKind`
233
+ # @return [String]
234
+ attr_accessor :metric_kind
235
+
236
+ # A concise name for the metric, which can be displayed in user interfaces. Use
237
+ # sentence case without an ending period, for example "Request count".
238
+ # Corresponds to the JSON property `displayName`
239
+ # @return [String]
240
+ attr_accessor :display_name
241
+
242
+ # A detailed description of the metric, which can be used in documentation.
243
+ # Corresponds to the JSON property `description`
244
+ # @return [String]
245
+ attr_accessor :description
246
+
451
247
  def initialize(**args)
452
248
  update!(**args)
453
249
  end
454
250
 
455
251
  # Update properties of this object
456
252
  def update!(**args)
457
- @description = args[:description] if args.key?(:description)
458
253
  @unit = args[:unit] if args.key?(:unit)
459
254
  @labels = args[:labels] if args.key?(:labels)
460
- @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
461
- @value_type = args[:value_type] if args.key?(:value_type)
462
- @display_name = args[:display_name] if args.key?(:display_name)
463
255
  @name = args[:name] if args.key?(:name)
464
256
  @type = args[:type] if args.key?(:type)
257
+ @value_type = args[:value_type] if args.key?(:value_type)
258
+ @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
259
+ @display_name = args[:display_name] if args.key?(:display_name)
260
+ @description = args[:description] if args.key?(:description)
465
261
  end
466
262
  end
467
263
 
468
- # Specify a sequence of buckets that have a width that is proportional to the
469
- # value of the lower bound. Each bucket represents a constant relative
470
- # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
471
- # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
472
- # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
473
- # ^ (i - 1)).
474
- class Exponential
264
+ # The range of the population values.
265
+ class Range
475
266
  include Google::Apis::Core::Hashable
476
267
 
477
- # Must be greater than 1.
478
- # Corresponds to the JSON property `growthFactor`
268
+ # The minimum of the population values.
269
+ # Corresponds to the JSON property `min`
479
270
  # @return [Float]
480
- attr_accessor :growth_factor
271
+ attr_accessor :min
481
272
 
482
- # Must be greater than 0.
483
- # Corresponds to the JSON property `scale`
273
+ # The maximum of the population values.
274
+ # Corresponds to the JSON property `max`
484
275
  # @return [Float]
485
- attr_accessor :scale
276
+ attr_accessor :max
486
277
 
487
- # Must be greater than 0.
488
- # Corresponds to the JSON property `numFiniteBuckets`
489
- # @return [Fixnum]
490
- attr_accessor :num_finite_buckets
278
+ def initialize(**args)
279
+ update!(**args)
280
+ end
281
+
282
+ # Update properties of this object
283
+ def update!(**args)
284
+ @min = args[:min] if args.key?(:min)
285
+ @max = args[:max] if args.key?(:max)
286
+ end
287
+ end
288
+
289
+ # The ListGroups response.
290
+ class ListGroupsResponse
291
+ include Google::Apis::Core::Hashable
292
+
293
+ # The groups that match the specified filters.
294
+ # Corresponds to the JSON property `group`
295
+ # @return [Array<Google::Apis::MonitoringV3::Group>]
296
+ attr_accessor :group
297
+
298
+ # If there are more results than have been returned, then this field is set to a
299
+ # non-empty value. To see the additional results, use that value as pageToken in
300
+ # the next call to this method.
301
+ # Corresponds to the JSON property `nextPageToken`
302
+ # @return [String]
303
+ attr_accessor :next_page_token
491
304
 
492
305
  def initialize(**args)
493
306
  update!(**args)
@@ -495,24 +308,43 @@ module Google
495
308
 
496
309
  # Update properties of this object
497
310
  def update!(**args)
498
- @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
499
- @scale = args[:scale] if args.key?(:scale)
500
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
311
+ @group = args[:group] if args.key?(:group)
312
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
501
313
  end
502
314
  end
503
315
 
504
- # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
505
- # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
506
- # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
507
- # If bounds has only one element, there are no finite buckets, and that single
508
- # element is the common boundary of the overflow and underflow buckets.
509
- class Explicit
316
+ # The CreateCollectdTimeSeries request.
317
+ class CreateCollectdTimeSeriesRequest
510
318
  include Google::Apis::Core::Hashable
511
319
 
512
- # The values must be monotonically increasing.
513
- # Corresponds to the JSON property `bounds`
514
- # @return [Array<Float>]
515
- attr_accessor :bounds
320
+ # An object representing a resource that can be used for monitoring, logging,
321
+ # billing, or other purposes. Examples include virtual machine instances,
322
+ # databases, and storage devices such as disks. The type field identifies a
323
+ # MonitoredResourceDescriptor object that describes the resource's schema.
324
+ # Information in the labels field identifies the actual resource and its
325
+ # attributes according to the schema. For example, a particular Compute Engine
326
+ # VM instance could be represented by the following object, because the
327
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
328
+ # zone":
329
+ # ` "type": "gce_instance",
330
+ # "labels": ` "instance_id": "12345678901234",
331
+ # "zone": "us-central1-a" ``
332
+ # Corresponds to the JSON property `resource`
333
+ # @return [Google::Apis::MonitoringV3::MonitoredResource]
334
+ attr_accessor :resource
335
+
336
+ # The collectd payloads representing the time series data. You must not include
337
+ # more than a single point for each time series, so no two payloads can have the
338
+ # same values for all of the fields plugin, plugin_instance, type, and
339
+ # type_instance.
340
+ # Corresponds to the JSON property `collectdPayloads`
341
+ # @return [Array<Google::Apis::MonitoringV3::CollectdPayload>]
342
+ attr_accessor :collectd_payloads
343
+
344
+ # The version of collectd that collected the data. Example: "5.3.0-192.el6".
345
+ # Corresponds to the JSON property `collectdVersion`
346
+ # @return [String]
347
+ attr_accessor :collectd_version
516
348
 
517
349
  def initialize(**args)
518
350
  update!(**args)
@@ -520,32 +352,32 @@ module Google
520
352
 
521
353
  # Update properties of this object
522
354
  def update!(**args)
523
- @bounds = args[:bounds] if args.key?(:bounds)
355
+ @resource = args[:resource] if args.key?(:resource)
356
+ @collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads)
357
+ @collectd_version = args[:collectd_version] if args.key?(:collectd_version)
524
358
  end
525
359
  end
526
360
 
527
- # Specify a sequence of buckets that all have the same width (except overflow
528
- # and underflow). Each bucket represents a constant absolute uncertainty on the
529
- # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
530
- # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
531
- # Lower bound (1 <= i < N): offset + (width * (i - 1)).
532
- class Linear
361
+ # The ListGroupMembers response.
362
+ class ListGroupMembersResponse
533
363
  include Google::Apis::Core::Hashable
534
364
 
535
- # Must be greater than 0.
536
- # Corresponds to the JSON property `width`
537
- # @return [Float]
538
- attr_accessor :width
539
-
540
- # Lower bound of the first bucket.
541
- # Corresponds to the JSON property `offset`
542
- # @return [Float]
543
- attr_accessor :offset
365
+ # If there are more results than have been returned, then this field is set to a
366
+ # non-empty value. To see the additional results, use that value as pageToken in
367
+ # the next call to this method.
368
+ # Corresponds to the JSON property `nextPageToken`
369
+ # @return [String]
370
+ attr_accessor :next_page_token
544
371
 
545
- # Must be greater than 0.
546
- # Corresponds to the JSON property `numFiniteBuckets`
372
+ # The total number of elements matching this request.
373
+ # Corresponds to the JSON property `totalSize`
547
374
  # @return [Fixnum]
548
- attr_accessor :num_finite_buckets
375
+ attr_accessor :total_size
376
+
377
+ # A set of monitored resources in the group.
378
+ # Corresponds to the JSON property `members`
379
+ # @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
380
+ attr_accessor :members
549
381
 
550
382
  def initialize(**args)
551
383
  update!(**args)
@@ -553,57 +385,98 @@ module Google
553
385
 
554
386
  # Update properties of this object
555
387
  def update!(**args)
556
- @width = args[:width] if args.key?(:width)
557
- @offset = args[:offset] if args.key?(:offset)
558
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
388
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
389
+ @total_size = args[:total_size] if args.key?(:total_size)
390
+ @members = args[:members] if args.key?(:members)
559
391
  end
560
392
  end
561
393
 
562
- # A collection of data points sent from a collectd-based plugin. See the
563
- # collectd documentation for more information.
564
- class CollectdPayload
394
+ # The ListMonitoredResourcDescriptors response.
395
+ class ListMonitoredResourceDescriptorsResponse
565
396
  include Google::Apis::Core::Hashable
566
397
 
567
- # The end time of the interval.
568
- # Corresponds to the JSON property `endTime`
398
+ # If there are more results than have been returned, then this field is set to a
399
+ # non-empty value. To see the additional results, use that value as pageToken in
400
+ # the next call to this method.
401
+ # Corresponds to the JSON property `nextPageToken`
569
402
  # @return [String]
570
- attr_accessor :end_time
403
+ attr_accessor :next_page_token
571
404
 
572
- # The measurement metadata. Example: "process_id" -> 12345
573
- # Corresponds to the JSON property `metadata`
574
- # @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
575
- attr_accessor :metadata
405
+ # The monitored resource descriptors that are available to this project and that
406
+ # match filter, if present.
407
+ # Corresponds to the JSON property `resourceDescriptors`
408
+ # @return [Array<Google::Apis::MonitoringV3::MonitoredResourceDescriptor>]
409
+ attr_accessor :resource_descriptors
576
410
 
577
- # The measured values during this time interval. Each value must have a
578
- # different dataSourceName.
579
- # Corresponds to the JSON property `values`
580
- # @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
581
- attr_accessor :values
411
+ def initialize(**args)
412
+ update!(**args)
413
+ end
582
414
 
583
- # The instance name of the plugin Example: "hdcl".
584
- # Corresponds to the JSON property `pluginInstance`
585
- # @return [String]
586
- attr_accessor :plugin_instance
415
+ # Update properties of this object
416
+ def update!(**args)
417
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
418
+ @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
419
+ end
420
+ end
587
421
 
588
- # The start time of the interval.
589
- # Corresponds to the JSON property `startTime`
590
- # @return [String]
591
- attr_accessor :start_time
422
+ # A collection of data points that describes the time-varying values of a metric.
423
+ # A time series is identified by a combination of a fully-specified monitored
424
+ # resource and a fully-specified metric. This type is used for both listing and
425
+ # creating time series.
426
+ class TimeSeries
427
+ include Google::Apis::Core::Hashable
592
428
 
593
- # The measurement type instance. Example: "used".
594
- # Corresponds to the JSON property `typeInstance`
429
+ # The metric kind of the time series. When listing time series, this metric kind
430
+ # might be different from the metric kind of the associated metric if this time
431
+ # series is an alignment or reduction of other time series.When creating a time
432
+ # series, this field is optional. If present, it must be the same as the metric
433
+ # kind of the associated metric. If the associated metric's descriptor must be
434
+ # auto-created, then this field specifies the metric kind of the new descriptor
435
+ # and must be either GAUGE (the default) or CUMULATIVE.
436
+ # Corresponds to the JSON property `metricKind`
595
437
  # @return [String]
596
- attr_accessor :type_instance
438
+ attr_accessor :metric_kind
597
439
 
598
- # The measurement type. Example: "memory".
599
- # Corresponds to the JSON property `type`
600
- # @return [String]
601
- attr_accessor :type
440
+ # A specific metric, identified by specifying values for all of the labels of a
441
+ # MetricDescriptor.
442
+ # Corresponds to the JSON property `metric`
443
+ # @return [Google::Apis::MonitoringV3::Metric]
444
+ attr_accessor :metric
602
445
 
603
- # The name of the plugin. Example: "disk".
604
- # Corresponds to the JSON property `plugin`
446
+ # The data points of this time series. When listing time series, the order of
447
+ # the points is specified by the list method.When creating a time series, this
448
+ # field must contain exactly one point and the point's type must be the same as
449
+ # the value type of the associated metric. If the associated metric's descriptor
450
+ # must be auto-created, then the value type of the descriptor is determined by
451
+ # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
452
+ # Corresponds to the JSON property `points`
453
+ # @return [Array<Google::Apis::MonitoringV3::Point>]
454
+ attr_accessor :points
455
+
456
+ # The value type of the time series. When listing time series, this value type
457
+ # might be different from the value type of the associated metric if this time
458
+ # series is an alignment or reduction of other time series.When creating a time
459
+ # series, this field is optional. If present, it must be the same as the type of
460
+ # the data in the points field.
461
+ # Corresponds to the JSON property `valueType`
605
462
  # @return [String]
606
- attr_accessor :plugin
463
+ attr_accessor :value_type
464
+
465
+ # An object representing a resource that can be used for monitoring, logging,
466
+ # billing, or other purposes. Examples include virtual machine instances,
467
+ # databases, and storage devices such as disks. The type field identifies a
468
+ # MonitoredResourceDescriptor object that describes the resource's schema.
469
+ # Information in the labels field identifies the actual resource and its
470
+ # attributes according to the schema. For example, a particular Compute Engine
471
+ # VM instance could be represented by the following object, because the
472
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
473
+ # zone":
474
+ # ` "type": "gce_instance",
475
+ # "labels": ` "instance_id": "12345678901234",
476
+ # "zone": "us-central1-a" ``
477
+ # Corresponds to the JSON property `resource`
478
+ # @return [Google::Apis::MonitoringV3::MonitoredResource]
479
+ attr_accessor :resource
607
480
 
608
481
  def initialize(**args)
609
482
  update!(**args)
@@ -611,33 +484,26 @@ module Google
611
484
 
612
485
  # Update properties of this object
613
486
  def update!(**args)
614
- @end_time = args[:end_time] if args.key?(:end_time)
615
- @metadata = args[:metadata] if args.key?(:metadata)
616
- @values = args[:values] if args.key?(:values)
617
- @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
618
- @start_time = args[:start_time] if args.key?(:start_time)
619
- @type_instance = args[:type_instance] if args.key?(:type_instance)
620
- @type = args[:type] if args.key?(:type)
621
- @plugin = args[:plugin] if args.key?(:plugin)
487
+ @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
488
+ @metric = args[:metric] if args.key?(:metric)
489
+ @points = args[:points] if args.key?(:points)
490
+ @value_type = args[:value_type] if args.key?(:value_type)
491
+ @resource = args[:resource] if args.key?(:resource)
622
492
  end
623
493
  end
624
494
 
625
- # The ListMetricDescriptors response.
626
- class ListMetricDescriptorsResponse
495
+ # The CreateTimeSeries request.
496
+ class CreateTimeSeriesRequest
627
497
  include Google::Apis::Core::Hashable
628
498
 
629
- # The metric descriptors that are available to the project and that match the
630
- # value of filter, if present.
631
- # Corresponds to the JSON property `metricDescriptors`
632
- # @return [Array<Google::Apis::MonitoringV3::MetricDescriptor>]
633
- attr_accessor :metric_descriptors
634
-
635
- # If there are more results than have been returned, then this field is set to a
636
- # non-empty value. To see the additional results, use that value as pageToken in
637
- # the next call to this method.
638
- # Corresponds to the JSON property `nextPageToken`
639
- # @return [String]
640
- attr_accessor :next_page_token
499
+ # The new data to be added to a list of time series. Adds at most one data point
500
+ # to each of several time series. The new data point must be more recent than
501
+ # any other point in its time series. Each TimeSeries value must fully specify a
502
+ # unique time series by supplying all label values for the metric and the
503
+ # monitored resource.
504
+ # Corresponds to the JSON property `timeSeries`
505
+ # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
506
+ attr_accessor :time_series
641
507
 
642
508
  def initialize(**args)
643
509
  update!(**args)
@@ -645,8 +511,7 @@ module Google
645
511
 
646
512
  # Update properties of this object
647
513
  def update!(**args)
648
- @metric_descriptors = args[:metric_descriptors] if args.key?(:metric_descriptors)
649
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
514
+ @time_series = args[:time_series] if args.key?(:time_series)
650
515
  end
651
516
  end
652
517
 
@@ -664,17 +529,6 @@ module Google
664
529
  class Distribution
665
530
  include Google::Apis::Core::Hashable
666
531
 
667
- # If bucket_options is given, then the sum of the values in bucket_counts must
668
- # equal the value in count. If bucket_options is not given, no bucket_counts
669
- # fields may be given.Bucket counts are given in order under the numbering
670
- # scheme described above (the underflow bucket has number 0; the finite buckets,
671
- # if any, have numbers 1 through N-2; the overflow bucket has number N-1).The
672
- # size of bucket_counts must be no greater than N as defined in bucket_options.
673
- # Any suffix of trailing zero bucket_count fields may be omitted.
674
- # Corresponds to the JSON property `bucketCounts`
675
- # @return [Array<String>]
676
- attr_accessor :bucket_counts
677
-
678
532
  # A Distribution may optionally contain a histogram of the values in the
679
533
  # population. The histogram is given in bucket_counts as counts of values that
680
534
  # fall into one of a sequence of non-overlapping buckets. The sequence of
@@ -696,11 +550,6 @@ module Google
696
550
  # @return [Google::Apis::MonitoringV3::BucketOptions]
697
551
  attr_accessor :bucket_options
698
552
 
699
- # The number of values in the population. Must be non-negative.
700
- # Corresponds to the JSON property `count`
701
- # @return [String]
702
- attr_accessor :count
703
-
704
553
  # The sum of squared deviations from the mean of the values in the population.
705
554
  # For values x_i this is:
706
555
  # Sum[i=1..n]((x_i - mean)^2)
@@ -711,16 +560,32 @@ module Google
711
560
  # @return [Float]
712
561
  attr_accessor :sum_of_squared_deviation
713
562
 
563
+ # The range of the population values.
564
+ # Corresponds to the JSON property `range`
565
+ # @return [Google::Apis::MonitoringV3::Range]
566
+ attr_accessor :range
567
+
568
+ # The number of values in the population. Must be non-negative.
569
+ # Corresponds to the JSON property `count`
570
+ # @return [String]
571
+ attr_accessor :count
572
+
714
573
  # The arithmetic mean of the values in the population. If count is zero then
715
574
  # this field must be zero.
716
575
  # Corresponds to the JSON property `mean`
717
576
  # @return [Float]
718
577
  attr_accessor :mean
719
578
 
720
- # The range of the population values.
721
- # Corresponds to the JSON property `range`
722
- # @return [Google::Apis::MonitoringV3::Range]
723
- attr_accessor :range
579
+ # If bucket_options is given, then the sum of the values in bucket_counts must
580
+ # equal the value in count. If bucket_options is not given, no bucket_counts
581
+ # fields may be given.Bucket counts are given in order under the numbering
582
+ # scheme described above (the underflow bucket has number 0; the finite buckets,
583
+ # if any, have numbers 1 through N-2; the overflow bucket has number N-1).The
584
+ # size of bucket_counts must be no greater than N as defined in bucket_options.
585
+ # Any suffix of trailing zero bucket_count fields may be omitted.
586
+ # Corresponds to the JSON property `bucketCounts`
587
+ # @return [Array<String>]
588
+ attr_accessor :bucket_counts
724
589
 
725
590
  def initialize(**args)
726
591
  update!(**args)
@@ -728,12 +593,12 @@ module Google
728
593
 
729
594
  # Update properties of this object
730
595
  def update!(**args)
731
- @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
732
596
  @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
733
- @count = args[:count] if args.key?(:count)
734
597
  @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
735
- @mean = args[:mean] if args.key?(:mean)
736
598
  @range = args[:range] if args.key?(:range)
599
+ @count = args[:count] if args.key?(:count)
600
+ @mean = args[:mean] if args.key?(:mean)
601
+ @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
737
602
  end
738
603
  end
739
604
 
@@ -749,15 +614,8 @@ module Google
749
614
  # ` "type": "gce_instance",
750
615
  # "labels": ` "instance_id": "12345678901234",
751
616
  # "zone": "us-central1-a" ``
752
- class MonitoredResource
753
- include Google::Apis::Core::Hashable
754
-
755
- # Required. Values for all of the labels listed in the associated monitored
756
- # resource descriptor. For example, Cloud SQL databases use the labels "
757
- # database_id" and "zone".
758
- # Corresponds to the JSON property `labels`
759
- # @return [Hash<String,String>]
760
- attr_accessor :labels
617
+ class MonitoredResource
618
+ include Google::Apis::Core::Hashable
761
619
 
762
620
  # Required. The monitored resource type. This field must match the type field of
763
621
  # a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
@@ -766,35 +624,40 @@ module Google
766
624
  # @return [String]
767
625
  attr_accessor :type
768
626
 
627
+ # Required. Values for all of the labels listed in the associated monitored
628
+ # resource descriptor. For example, Cloud SQL databases use the labels "
629
+ # database_id" and "zone".
630
+ # Corresponds to the JSON property `labels`
631
+ # @return [Hash<String,String>]
632
+ attr_accessor :labels
633
+
769
634
  def initialize(**args)
770
635
  update!(**args)
771
636
  end
772
637
 
773
638
  # Update properties of this object
774
639
  def update!(**args)
775
- @labels = args[:labels] if args.key?(:labels)
776
640
  @type = args[:type] if args.key?(:type)
641
+ @labels = args[:labels] if args.key?(:labels)
777
642
  end
778
643
  end
779
644
 
780
- # A description of a label.
781
- class LabelDescriptor
645
+ # The ListMetricDescriptors response.
646
+ class ListMetricDescriptorsResponse
782
647
  include Google::Apis::Core::Hashable
783
648
 
784
- # A human-readable description for the label.
785
- # Corresponds to the JSON property `description`
786
- # @return [String]
787
- attr_accessor :description
788
-
789
- # The type of data that can be assigned to the label.
790
- # Corresponds to the JSON property `valueType`
791
- # @return [String]
792
- attr_accessor :value_type
649
+ # The metric descriptors that are available to the project and that match the
650
+ # value of filter, if present.
651
+ # Corresponds to the JSON property `metricDescriptors`
652
+ # @return [Array<Google::Apis::MonitoringV3::MetricDescriptor>]
653
+ attr_accessor :metric_descriptors
793
654
 
794
- # The label key.
795
- # Corresponds to the JSON property `key`
655
+ # If there are more results than have been returned, then this field is set to a
656
+ # non-empty value. To see the additional results, use that value as pageToken in
657
+ # the next call to this method.
658
+ # Corresponds to the JSON property `nextPageToken`
796
659
  # @return [String]
797
- attr_accessor :key
660
+ attr_accessor :next_page_token
798
661
 
799
662
  def initialize(**args)
800
663
  update!(**args)
@@ -802,9 +665,8 @@ module Google
802
665
 
803
666
  # Update properties of this object
804
667
  def update!(**args)
805
- @description = args[:description] if args.key?(:description)
806
- @value_type = args[:value_type] if args.key?(:value_type)
807
- @key = args[:key] if args.key?(:key)
668
+ @metric_descriptors = args[:metric_descriptors] if args.key?(:metric_descriptors)
669
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
808
670
  end
809
671
  end
810
672
 
@@ -818,6 +680,23 @@ module Google
818
680
  class MonitoredResourceDescriptor
819
681
  include Google::Apis::Core::Hashable
820
682
 
683
+ # Required. A set of labels used to describe instances of this monitored
684
+ # resource type. For example, an individual Google Cloud SQL database is
685
+ # identified by values for the labels "database_id" and "zone".
686
+ # Corresponds to the JSON property `labels`
687
+ # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
688
+ attr_accessor :labels
689
+
690
+ # Optional. The resource name of the monitored resource descriptor: "projects/`
691
+ # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
692
+ # the type field in this object and `project_id` is a project ID that provides
693
+ # API-specific context for accessing the type. APIs that do not use project
694
+ # information can use the resource name format "monitoredResourceDescriptors/`
695
+ # type`".
696
+ # Corresponds to the JSON property `name`
697
+ # @return [String]
698
+ attr_accessor :name
699
+
821
700
  # Optional. A concise name for the monitored resource type that might be
822
701
  # displayed in user interfaces. It should be a Title Cased Noun Phrase, without
823
702
  # any article or other determiners. For example, "Google Cloud SQL Database".
@@ -831,13 +710,6 @@ module Google
831
710
  # @return [String]
832
711
  attr_accessor :description
833
712
 
834
- # Required. A set of labels used to describe instances of this monitored
835
- # resource type. For example, an individual Google Cloud SQL database is
836
- # identified by values for the labels "database_id" and "zone".
837
- # Corresponds to the JSON property `labels`
838
- # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
839
- attr_accessor :labels
840
-
841
713
  # Required. The monitored resource type. For example, the type "
842
714
  # cloudsql_database" represents databases in Google Cloud SQL. The maximum
843
715
  # length of this value is 256 characters.
@@ -845,27 +717,17 @@ module Google
845
717
  # @return [String]
846
718
  attr_accessor :type
847
719
 
848
- # Optional. The resource name of the monitored resource descriptor: "projects/`
849
- # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
850
- # the type field in this object and `project_id` is a project ID that provides
851
- # API-specific context for accessing the type. APIs that do not use project
852
- # information can use the resource name format "monitoredResourceDescriptors/`
853
- # type`".
854
- # Corresponds to the JSON property `name`
855
- # @return [String]
856
- attr_accessor :name
857
-
858
720
  def initialize(**args)
859
721
  update!(**args)
860
722
  end
861
723
 
862
724
  # Update properties of this object
863
725
  def update!(**args)
726
+ @labels = args[:labels] if args.key?(:labels)
727
+ @name = args[:name] if args.key?(:name)
864
728
  @display_name = args[:display_name] if args.key?(:display_name)
865
729
  @description = args[:description] if args.key?(:description)
866
- @labels = args[:labels] if args.key?(:labels)
867
730
  @type = args[:type] if args.key?(:type)
868
- @name = args[:name] if args.key?(:name)
869
731
  end
870
732
  end
871
733
 
@@ -873,29 +735,11 @@ module Google
873
735
  class TypedValue
874
736
  include Google::Apis::Core::Hashable
875
737
 
876
- # A Boolean value: true or false.
877
- # Corresponds to the JSON property `boolValue`
878
- # @return [Boolean]
879
- attr_accessor :bool_value
880
- alias_method :bool_value?, :bool_value
881
-
882
- # A variable-length string value.
883
- # Corresponds to the JSON property `stringValue`
884
- # @return [String]
885
- attr_accessor :string_value
886
-
887
738
  # A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
888
739
  # Corresponds to the JSON property `int64Value`
889
740
  # @return [String]
890
741
  attr_accessor :int64_value
891
742
 
892
- # A 64-bit double-precision floating-point number. Its magnitude is
893
- # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
894
- # digits of precision.
895
- # Corresponds to the JSON property `doubleValue`
896
- # @return [Float]
897
- attr_accessor :double_value
898
-
899
743
  # Distribution contains summary statistics for a population of values and,
900
744
  # optionally, a histogram representing the distribution of those values across a
901
745
  # specified set of histogram buckets.The summary statistics are the count, mean,
@@ -911,36 +755,203 @@ module Google
911
755
  # @return [Google::Apis::MonitoringV3::Distribution]
912
756
  attr_accessor :distribution_value
913
757
 
758
+ # A Boolean value: true or false.
759
+ # Corresponds to the JSON property `boolValue`
760
+ # @return [Boolean]
761
+ attr_accessor :bool_value
762
+ alias_method :bool_value?, :bool_value
763
+
764
+ # A variable-length string value.
765
+ # Corresponds to the JSON property `stringValue`
766
+ # @return [String]
767
+ attr_accessor :string_value
768
+
769
+ # A 64-bit double-precision floating-point number. Its magnitude is
770
+ # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
771
+ # digits of precision.
772
+ # Corresponds to the JSON property `doubleValue`
773
+ # @return [Float]
774
+ attr_accessor :double_value
775
+
776
+ def initialize(**args)
777
+ update!(**args)
778
+ end
779
+
780
+ # Update properties of this object
781
+ def update!(**args)
782
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
783
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
784
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
785
+ @string_value = args[:string_value] if args.key?(:string_value)
786
+ @double_value = args[:double_value] if args.key?(:double_value)
787
+ end
788
+ end
789
+
790
+ # A collection of data points sent from a collectd-based plugin. See the
791
+ # collectd documentation for more information.
792
+ class CollectdPayload
793
+ include Google::Apis::Core::Hashable
794
+
795
+ # The measurement type instance. Example: "used".
796
+ # Corresponds to the JSON property `typeInstance`
797
+ # @return [String]
798
+ attr_accessor :type_instance
799
+
800
+ # The measurement metadata. Example: "process_id" -> 12345
801
+ # Corresponds to the JSON property `metadata`
802
+ # @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
803
+ attr_accessor :metadata
804
+
805
+ # The measurement type. Example: "memory".
806
+ # Corresponds to the JSON property `type`
807
+ # @return [String]
808
+ attr_accessor :type
809
+
810
+ # The name of the plugin. Example: "disk".
811
+ # Corresponds to the JSON property `plugin`
812
+ # @return [String]
813
+ attr_accessor :plugin
814
+
815
+ # The instance name of the plugin Example: "hdcl".
816
+ # Corresponds to the JSON property `pluginInstance`
817
+ # @return [String]
818
+ attr_accessor :plugin_instance
819
+
820
+ # The end time of the interval.
821
+ # Corresponds to the JSON property `endTime`
822
+ # @return [String]
823
+ attr_accessor :end_time
824
+
825
+ # The start time of the interval.
826
+ # Corresponds to the JSON property `startTime`
827
+ # @return [String]
828
+ attr_accessor :start_time
829
+
830
+ # The measured values during this time interval. Each value must have a
831
+ # different dataSourceName.
832
+ # Corresponds to the JSON property `values`
833
+ # @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
834
+ attr_accessor :values
835
+
836
+ def initialize(**args)
837
+ update!(**args)
838
+ end
839
+
840
+ # Update properties of this object
841
+ def update!(**args)
842
+ @type_instance = args[:type_instance] if args.key?(:type_instance)
843
+ @metadata = args[:metadata] if args.key?(:metadata)
844
+ @type = args[:type] if args.key?(:type)
845
+ @plugin = args[:plugin] if args.key?(:plugin)
846
+ @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
847
+ @end_time = args[:end_time] if args.key?(:end_time)
848
+ @start_time = args[:start_time] if args.key?(:start_time)
849
+ @values = args[:values] if args.key?(:values)
850
+ end
851
+ end
852
+
853
+ # Specify a sequence of buckets that all have the same width (except overflow
854
+ # and underflow). Each bucket represents a constant absolute uncertainty on the
855
+ # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
856
+ # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
857
+ # Lower bound (1 <= i < N): offset + (width * (i - 1)).
858
+ class Linear
859
+ include Google::Apis::Core::Hashable
860
+
861
+ # Must be greater than 0.
862
+ # Corresponds to the JSON property `width`
863
+ # @return [Float]
864
+ attr_accessor :width
865
+
866
+ # Lower bound of the first bucket.
867
+ # Corresponds to the JSON property `offset`
868
+ # @return [Float]
869
+ attr_accessor :offset
870
+
871
+ # Must be greater than 0.
872
+ # Corresponds to the JSON property `numFiniteBuckets`
873
+ # @return [Fixnum]
874
+ attr_accessor :num_finite_buckets
875
+
876
+ def initialize(**args)
877
+ update!(**args)
878
+ end
879
+
880
+ # Update properties of this object
881
+ def update!(**args)
882
+ @width = args[:width] if args.key?(:width)
883
+ @offset = args[:offset] if args.key?(:offset)
884
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
885
+ end
886
+ end
887
+
888
+ # A generic empty message that you can re-use to avoid defining duplicated empty
889
+ # messages in your APIs. A typical example is to use it as the request or the
890
+ # response type of an API method. For instance:
891
+ # service Foo `
892
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
893
+ # `
894
+ # The JSON representation for Empty is empty JSON object ``.
895
+ class Empty
896
+ include Google::Apis::Core::Hashable
897
+
898
+ def initialize(**args)
899
+ update!(**args)
900
+ end
901
+
902
+ # Update properties of this object
903
+ def update!(**args)
904
+ end
905
+ end
906
+
907
+ # A protocol buffer option, which can be attached to a message, field,
908
+ # enumeration, etc.
909
+ class Option
910
+ include Google::Apis::Core::Hashable
911
+
912
+ # The option's value packed in an Any message. If the value is a primitive, the
913
+ # corresponding wrapper type defined in google/protobuf/wrappers.proto should be
914
+ # used. If the value is an enum, it should be stored as an int32 value using the
915
+ # google.protobuf.Int32Value type.
916
+ # Corresponds to the JSON property `value`
917
+ # @return [Hash<String,Object>]
918
+ attr_accessor :value
919
+
920
+ # The option's name. For protobuf built-in options (options defined in
921
+ # descriptor.proto), this is the short name. For example, "map_entry". For
922
+ # custom options, it should be the fully-qualified name. For example, "google.
923
+ # api.http".
924
+ # Corresponds to the JSON property `name`
925
+ # @return [String]
926
+ attr_accessor :name
927
+
914
928
  def initialize(**args)
915
929
  update!(**args)
916
930
  end
917
931
 
918
932
  # Update properties of this object
919
933
  def update!(**args)
920
- @bool_value = args[:bool_value] if args.key?(:bool_value)
921
- @string_value = args[:string_value] if args.key?(:string_value)
922
- @int64_value = args[:int64_value] if args.key?(:int64_value)
923
- @double_value = args[:double_value] if args.key?(:double_value)
924
- @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
934
+ @value = args[:value] if args.key?(:value)
935
+ @name = args[:name] if args.key?(:name)
925
936
  end
926
937
  end
927
938
 
928
- # The ListMonitoredResourcDescriptors response.
929
- class ListMonitoredResourceDescriptorsResponse
939
+ # A time interval extending just after a start time through an end time. If the
940
+ # start time is the same as the end time, then the interval represents a single
941
+ # point in time.
942
+ class TimeInterval
930
943
  include Google::Apis::Core::Hashable
931
944
 
932
- # If there are more results than have been returned, then this field is set to a
933
- # non-empty value. To see the additional results, use that value as pageToken in
934
- # the next call to this method.
935
- # Corresponds to the JSON property `nextPageToken`
945
+ # Optional. The beginning of the time interval. The default value for the start
946
+ # time is the end time. The start time must not be later than the end time.
947
+ # Corresponds to the JSON property `startTime`
936
948
  # @return [String]
937
- attr_accessor :next_page_token
949
+ attr_accessor :start_time
938
950
 
939
- # The monitored resource descriptors that are available to this project and that
940
- # match filter, if present.
941
- # Corresponds to the JSON property `resourceDescriptors`
942
- # @return [Array<Google::Apis::MonitoringV3::MonitoredResourceDescriptor>]
943
- attr_accessor :resource_descriptors
951
+ # Required. The end of the time interval.
952
+ # Corresponds to the JSON property `endTime`
953
+ # @return [String]
954
+ attr_accessor :end_time
944
955
 
945
956
  def initialize(**args)
946
957
  update!(**args)
@@ -948,67 +959,57 @@ module Google
948
959
 
949
960
  # Update properties of this object
950
961
  def update!(**args)
951
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
952
- @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
962
+ @start_time = args[:start_time] if args.key?(:start_time)
963
+ @end_time = args[:end_time] if args.key?(:end_time)
953
964
  end
954
965
  end
955
966
 
956
- # A single field of a message type.
957
- class Field
967
+ # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
968
+ # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
969
+ # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
970
+ # If bounds has only one element, there are no finite buckets, and that single
971
+ # element is the common boundary of the overflow and underflow buckets.
972
+ class Explicit
958
973
  include Google::Apis::Core::Hashable
959
974
 
960
- # The string value of the default value of this field. Proto2 syntax only.
961
- # Corresponds to the JSON property `defaultValue`
962
- # @return [String]
963
- attr_accessor :default_value
964
-
965
- # The field JSON name.
966
- # Corresponds to the JSON property `jsonName`
967
- # @return [String]
968
- attr_accessor :json_name
969
-
970
- # The protocol buffer options.
971
- # Corresponds to the JSON property `options`
972
- # @return [Array<Google::Apis::MonitoringV3::Option>]
973
- attr_accessor :options
975
+ # The values must be monotonically increasing.
976
+ # Corresponds to the JSON property `bounds`
977
+ # @return [Array<Float>]
978
+ attr_accessor :bounds
974
979
 
975
- # The index of the field type in Type.oneofs, for message or enumeration types.
976
- # The first type has index 1; zero means the type is not in the list.
977
- # Corresponds to the JSON property `oneofIndex`
978
- # @return [Fixnum]
979
- attr_accessor :oneof_index
980
+ def initialize(**args)
981
+ update!(**args)
982
+ end
980
983
 
981
- # The field cardinality.
982
- # Corresponds to the JSON property `cardinality`
983
- # @return [String]
984
- attr_accessor :cardinality
984
+ # Update properties of this object
985
+ def update!(**args)
986
+ @bounds = args[:bounds] if args.key?(:bounds)
987
+ end
988
+ end
985
989
 
986
- # The field type URL, without the scheme, for message or enumeration types.
987
- # Example: "type.googleapis.com/google.protobuf.Timestamp".
988
- # Corresponds to the JSON property `typeUrl`
989
- # @return [String]
990
- attr_accessor :type_url
990
+ # Specify a sequence of buckets that have a width that is proportional to the
991
+ # value of the lower bound. Each bucket represents a constant relative
992
+ # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
993
+ # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
994
+ # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
995
+ # ^ (i - 1)).
996
+ class Exponential
997
+ include Google::Apis::Core::Hashable
991
998
 
992
- # The field name.
993
- # Corresponds to the JSON property `name`
994
- # @return [String]
995
- attr_accessor :name
999
+ # Must be greater than 1.
1000
+ # Corresponds to the JSON property `growthFactor`
1001
+ # @return [Float]
1002
+ attr_accessor :growth_factor
996
1003
 
997
- # Whether to use alternative packed wire representation.
998
- # Corresponds to the JSON property `packed`
999
- # @return [Boolean]
1000
- attr_accessor :packed
1001
- alias_method :packed?, :packed
1004
+ # Must be greater than 0.
1005
+ # Corresponds to the JSON property `scale`
1006
+ # @return [Float]
1007
+ attr_accessor :scale
1002
1008
 
1003
- # The field number.
1004
- # Corresponds to the JSON property `number`
1009
+ # Must be greater than 0.
1010
+ # Corresponds to the JSON property `numFiniteBuckets`
1005
1011
  # @return [Fixnum]
1006
- attr_accessor :number
1007
-
1008
- # The field type.
1009
- # Corresponds to the JSON property `kind`
1010
- # @return [String]
1011
- attr_accessor :kind
1012
+ attr_accessor :num_finite_buckets
1012
1013
 
1013
1014
  def initialize(**args)
1014
1015
  update!(**args)
@@ -1016,104 +1017,123 @@ module Google
1016
1017
 
1017
1018
  # Update properties of this object
1018
1019
  def update!(**args)
1019
- @default_value = args[:default_value] if args.key?(:default_value)
1020
- @json_name = args[:json_name] if args.key?(:json_name)
1021
- @options = args[:options] if args.key?(:options)
1022
- @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
1023
- @cardinality = args[:cardinality] if args.key?(:cardinality)
1024
- @type_url = args[:type_url] if args.key?(:type_url)
1025
- @name = args[:name] if args.key?(:name)
1026
- @packed = args[:packed] if args.key?(:packed)
1027
- @number = args[:number] if args.key?(:number)
1028
- @kind = args[:kind] if args.key?(:kind)
1020
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
1021
+ @scale = args[:scale] if args.key?(:scale)
1022
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
1029
1023
  end
1030
1024
  end
1031
1025
 
1032
- # A protocol buffer option, which can be attached to a message, field,
1033
- # enumeration, etc.
1034
- class Option
1026
+ # A single data point in a time series.
1027
+ class Point
1035
1028
  include Google::Apis::Core::Hashable
1036
1029
 
1037
- # The option's value packed in an Any message. If the value is a primitive, the
1038
- # corresponding wrapper type defined in google/protobuf/wrappers.proto should be
1039
- # used. If the value is an enum, it should be stored as an int32 value using the
1040
- # google.protobuf.Int32Value type.
1030
+ # A time interval extending just after a start time through an end time. If the
1031
+ # start time is the same as the end time, then the interval represents a single
1032
+ # point in time.
1033
+ # Corresponds to the JSON property `interval`
1034
+ # @return [Google::Apis::MonitoringV3::TimeInterval]
1035
+ attr_accessor :interval
1036
+
1037
+ # A single strongly-typed value.
1041
1038
  # Corresponds to the JSON property `value`
1042
- # @return [Hash<String,Object>]
1039
+ # @return [Google::Apis::MonitoringV3::TypedValue]
1043
1040
  attr_accessor :value
1044
1041
 
1045
- # The option's name. For protobuf built-in options (options defined in
1046
- # descriptor.proto), this is the short name. For example, "map_entry". For
1047
- # custom options, it should be the fully-qualified name. For example, "google.
1048
- # api.http".
1049
- # Corresponds to the JSON property `name`
1050
- # @return [String]
1051
- attr_accessor :name
1052
-
1053
1042
  def initialize(**args)
1054
1043
  update!(**args)
1055
1044
  end
1056
1045
 
1057
1046
  # Update properties of this object
1058
1047
  def update!(**args)
1048
+ @interval = args[:interval] if args.key?(:interval)
1059
1049
  @value = args[:value] if args.key?(:value)
1060
- @name = args[:name] if args.key?(:name)
1061
1050
  end
1062
1051
  end
1063
1052
 
1064
- # A generic empty message that you can re-use to avoid defining duplicated empty
1065
- # messages in your APIs. A typical example is to use it as the request or the
1066
- # response type of an API method. For instance:
1067
- # service Foo `
1068
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1069
- # `
1070
- # The JSON representation for Empty is empty JSON object ``.
1071
- class Empty
1053
+ # A specific metric, identified by specifying values for all of the labels of a
1054
+ # MetricDescriptor.
1055
+ class Metric
1072
1056
  include Google::Apis::Core::Hashable
1073
1057
 
1058
+ # The set of label values that uniquely identify this metric. All labels listed
1059
+ # in the MetricDescriptor must be assigned values.
1060
+ # Corresponds to the JSON property `labels`
1061
+ # @return [Hash<String,String>]
1062
+ attr_accessor :labels
1063
+
1064
+ # An existing metric type, see google.api.MetricDescriptor. For example, custom.
1065
+ # googleapis.com/invoice/paid/amount.
1066
+ # Corresponds to the JSON property `type`
1067
+ # @return [String]
1068
+ attr_accessor :type
1069
+
1074
1070
  def initialize(**args)
1075
1071
  update!(**args)
1076
1072
  end
1077
1073
 
1078
1074
  # Update properties of this object
1079
1075
  def update!(**args)
1076
+ @labels = args[:labels] if args.key?(:labels)
1077
+ @type = args[:type] if args.key?(:type)
1080
1078
  end
1081
1079
  end
1082
1080
 
1083
- # SourceContext represents information about the source of a protobuf element,
1084
- # like the file in which it is defined.
1085
- class SourceContext
1081
+ # A single field of a message type.
1082
+ class Field
1086
1083
  include Google::Apis::Core::Hashable
1087
1084
 
1088
- # The path-qualified name of the .proto file that contained the associated
1089
- # protobuf element. For example: "google/protobuf/source_context.proto".
1090
- # Corresponds to the JSON property `fileName`
1085
+ # The field name.
1086
+ # Corresponds to the JSON property `name`
1091
1087
  # @return [String]
1092
- attr_accessor :file_name
1088
+ attr_accessor :name
1093
1089
 
1094
- def initialize(**args)
1095
- update!(**args)
1096
- end
1090
+ # The field type URL, without the scheme, for message or enumeration types.
1091
+ # Example: "type.googleapis.com/google.protobuf.Timestamp".
1092
+ # Corresponds to the JSON property `typeUrl`
1093
+ # @return [String]
1094
+ attr_accessor :type_url
1097
1095
 
1098
- # Update properties of this object
1099
- def update!(**args)
1100
- @file_name = args[:file_name] if args.key?(:file_name)
1101
- end
1102
- end
1096
+ # The field number.
1097
+ # Corresponds to the JSON property `number`
1098
+ # @return [Fixnum]
1099
+ attr_accessor :number
1103
1100
 
1104
- # The range of the population values.
1105
- class Range
1106
- include Google::Apis::Core::Hashable
1101
+ # The field type.
1102
+ # Corresponds to the JSON property `kind`
1103
+ # @return [String]
1104
+ attr_accessor :kind
1105
+
1106
+ # The field JSON name.
1107
+ # Corresponds to the JSON property `jsonName`
1108
+ # @return [String]
1109
+ attr_accessor :json_name
1110
+
1111
+ # The protocol buffer options.
1112
+ # Corresponds to the JSON property `options`
1113
+ # @return [Array<Google::Apis::MonitoringV3::Option>]
1114
+ attr_accessor :options
1115
+
1116
+ # The index of the field type in Type.oneofs, for message or enumeration types.
1117
+ # The first type has index 1; zero means the type is not in the list.
1118
+ # Corresponds to the JSON property `oneofIndex`
1119
+ # @return [Fixnum]
1120
+ attr_accessor :oneof_index
1121
+
1122
+ # Whether to use alternative packed wire representation.
1123
+ # Corresponds to the JSON property `packed`
1124
+ # @return [Boolean]
1125
+ attr_accessor :packed
1126
+ alias_method :packed?, :packed
1107
1127
 
1108
- # The maximum of the population values.
1109
- # Corresponds to the JSON property `max`
1110
- # @return [Float]
1111
- attr_accessor :max
1128
+ # The field cardinality.
1129
+ # Corresponds to the JSON property `cardinality`
1130
+ # @return [String]
1131
+ attr_accessor :cardinality
1112
1132
 
1113
- # The minimum of the population values.
1114
- # Corresponds to the JSON property `min`
1115
- # @return [Float]
1116
- attr_accessor :min
1133
+ # The string value of the default value of this field. Proto2 syntax only.
1134
+ # Corresponds to the JSON property `defaultValue`
1135
+ # @return [String]
1136
+ attr_accessor :default_value
1117
1137
 
1118
1138
  def initialize(**args)
1119
1139
  update!(**args)
@@ -1121,24 +1141,35 @@ module Google
1121
1141
 
1122
1142
  # Update properties of this object
1123
1143
  def update!(**args)
1124
- @max = args[:max] if args.key?(:max)
1125
- @min = args[:min] if args.key?(:min)
1144
+ @name = args[:name] if args.key?(:name)
1145
+ @type_url = args[:type_url] if args.key?(:type_url)
1146
+ @number = args[:number] if args.key?(:number)
1147
+ @kind = args[:kind] if args.key?(:kind)
1148
+ @json_name = args[:json_name] if args.key?(:json_name)
1149
+ @options = args[:options] if args.key?(:options)
1150
+ @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
1151
+ @packed = args[:packed] if args.key?(:packed)
1152
+ @cardinality = args[:cardinality] if args.key?(:cardinality)
1153
+ @default_value = args[:default_value] if args.key?(:default_value)
1126
1154
  end
1127
1155
  end
1128
1156
 
1129
- # The CreateTimeSeries request.
1130
- class CreateTimeSeriesRequest
1157
+ # The ListTimeSeries response.
1158
+ class ListTimeSeriesResponse
1131
1159
  include Google::Apis::Core::Hashable
1132
1160
 
1133
- # The new data to be added to a list of time series. Adds at most one data point
1134
- # to each of several time series. The new data point must be more recent than
1135
- # any other point in its time series. Each TimeSeries value must fully specify a
1136
- # unique time series by supplying all label values for the metric and the
1137
- # monitored resource.
1161
+ # One or more time series that match the filter included in the request.
1138
1162
  # Corresponds to the JSON property `timeSeries`
1139
1163
  # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
1140
1164
  attr_accessor :time_series
1141
1165
 
1166
+ # If there are more results than have been returned, then this field is set to a
1167
+ # non-empty value. To see the additional results, use that value as pageToken in
1168
+ # the next call to this method.
1169
+ # Corresponds to the JSON property `nextPageToken`
1170
+ # @return [String]
1171
+ attr_accessor :next_page_token
1172
+
1142
1173
  def initialize(**args)
1143
1174
  update!(**args)
1144
1175
  end
@@ -1146,56 +1177,28 @@ module Google
1146
1177
  # Update properties of this object
1147
1178
  def update!(**args)
1148
1179
  @time_series = args[:time_series] if args.key?(:time_series)
1180
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1149
1181
  end
1150
1182
  end
1151
1183
 
1152
- # A Distribution may optionally contain a histogram of the values in the
1153
- # population. The histogram is given in bucket_counts as counts of values that
1154
- # fall into one of a sequence of non-overlapping buckets. The sequence of
1155
- # buckets is described by bucket_options.A bucket specifies an inclusive lower
1156
- # bound and exclusive upper bound for the values that are counted for that
1157
- # bucket. The upper bound of a bucket is strictly greater than the lower bound.
1158
- # The sequence of N buckets for a Distribution consists of an underflow bucket (
1159
- # number 0), zero or more finite buckets (number 1 through N - 2) and an
1160
- # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
1161
- # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
1162
- # span the whole range of finite values: lower bound of the underflow bucket is -
1163
- # infinity and the upper bound of the overflow bucket is +infinity. The finite
1164
- # buckets are so-called because both bounds are finite.BucketOptions describes
1165
- # bucket boundaries in one of three ways. Two describe the boundaries by giving
1166
- # parameters for a formula to generate boundaries and one gives the bucket
1167
- # boundaries explicitly.If bucket_options is not given, then no bucket_counts
1168
- # may be given.
1169
- class BucketOptions
1184
+ # A description of a label.
1185
+ class LabelDescriptor
1170
1186
  include Google::Apis::Core::Hashable
1171
1187
 
1172
- # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
1173
- # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
1174
- # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
1175
- # If bounds has only one element, there are no finite buckets, and that single
1176
- # element is the common boundary of the overflow and underflow buckets.
1177
- # Corresponds to the JSON property `explicitBuckets`
1178
- # @return [Google::Apis::MonitoringV3::Explicit]
1179
- attr_accessor :explicit_buckets
1188
+ # The label key.
1189
+ # Corresponds to the JSON property `key`
1190
+ # @return [String]
1191
+ attr_accessor :key
1180
1192
 
1181
- # Specify a sequence of buckets that have a width that is proportional to the
1182
- # value of the lower bound. Each bucket represents a constant relative
1183
- # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
1184
- # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
1185
- # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
1186
- # ^ (i - 1)).
1187
- # Corresponds to the JSON property `exponentialBuckets`
1188
- # @return [Google::Apis::MonitoringV3::Exponential]
1189
- attr_accessor :exponential_buckets
1193
+ # A human-readable description for the label.
1194
+ # Corresponds to the JSON property `description`
1195
+ # @return [String]
1196
+ attr_accessor :description
1190
1197
 
1191
- # Specify a sequence of buckets that all have the same width (except overflow
1192
- # and underflow). Each bucket represents a constant absolute uncertainty on the
1193
- # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
1194
- # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
1195
- # Lower bound (1 <= i < N): offset + (width * (i - 1)).
1196
- # Corresponds to the JSON property `linearBuckets`
1197
- # @return [Google::Apis::MonitoringV3::Linear]
1198
- attr_accessor :linear_buckets
1198
+ # The type of data that can be assigned to the label.
1199
+ # Corresponds to the JSON property `valueType`
1200
+ # @return [String]
1201
+ attr_accessor :value_type
1199
1202
 
1200
1203
  def initialize(**args)
1201
1204
  update!(**args)
@@ -1203,44 +1206,66 @@ module Google
1203
1206
 
1204
1207
  # Update properties of this object
1205
1208
  def update!(**args)
1206
- @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
1207
- @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
1208
- @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
1209
+ @key = args[:key] if args.key?(:key)
1210
+ @description = args[:description] if args.key?(:description)
1211
+ @value_type = args[:value_type] if args.key?(:value_type)
1209
1212
  end
1210
1213
  end
1211
1214
 
1212
- # The CreateCollectdTimeSeries request.
1213
- class CreateCollectdTimeSeriesRequest
1215
+ # The description of a dynamic collection of monitored resources. Each group has
1216
+ # a filter that is matched against monitored resources and their associated
1217
+ # metadata. If a group's filter matches an available monitored resource, then
1218
+ # that resource is a member of that group. Groups can contain any number of
1219
+ # monitored resources, and each monitored resource can be a member of any number
1220
+ # of groups.Groups can be nested in parent-child hierarchies. The parentName
1221
+ # field identifies an optional parent for each group. If a group has a parent,
1222
+ # then the only monitored resources available to be matched by the group's
1223
+ # filter are the resources contained in the parent group. In other words, a
1224
+ # group contains the monitored resources that match its filter and the filters
1225
+ # of all the group's ancestors. A group without a parent can contain any
1226
+ # monitored resource.For example, consider an infrastructure running a set of
1227
+ # instances with two user-defined tags: "environment" and "role". A parent group
1228
+ # has a filter, environment="production". A child of that parent group has a
1229
+ # filter, role="transcoder". The parent group contains all instances in the
1230
+ # production environment, regardless of their roles. The child group contains
1231
+ # instances that have the transcoder role and are in the production environment.
1232
+ # The monitored resources contained in a group can change at any moment,
1233
+ # depending on what resources exist and what filters are associated with the
1234
+ # group and its ancestors.
1235
+ class Group
1214
1236
  include Google::Apis::Core::Hashable
1215
1237
 
1216
- # The collectd payloads representing the time series data. You must not include
1217
- # more than a single point for each time series, so no two payloads can have the
1218
- # same values for all of the fields plugin, plugin_instance, type, and
1219
- # type_instance.
1220
- # Corresponds to the JSON property `collectdPayloads`
1221
- # @return [Array<Google::Apis::MonitoringV3::CollectdPayload>]
1222
- attr_accessor :collectd_payloads
1238
+ # The filter used to determine which monitored resources belong to this group.
1239
+ # Corresponds to the JSON property `filter`
1240
+ # @return [String]
1241
+ attr_accessor :filter
1223
1242
 
1224
- # The version of collectd that collected the data. Example: "5.3.0-192.el6".
1225
- # Corresponds to the JSON property `collectdVersion`
1243
+ # Output only. The name of this group. The format is "projects/`
1244
+ # project_id_or_number`/groups/`group_id`". When creating a group, this field is
1245
+ # ignored and a new name is created consisting of the project specified in the
1246
+ # call to CreateGroup and a unique `group_id` that is generated automatically.
1247
+ # Corresponds to the JSON property `name`
1226
1248
  # @return [String]
1227
- attr_accessor :collectd_version
1249
+ attr_accessor :name
1228
1250
 
1229
- # An object representing a resource that can be used for monitoring, logging,
1230
- # billing, or other purposes. Examples include virtual machine instances,
1231
- # databases, and storage devices such as disks. The type field identifies a
1232
- # MonitoredResourceDescriptor object that describes the resource's schema.
1233
- # Information in the labels field identifies the actual resource and its
1234
- # attributes according to the schema. For example, a particular Compute Engine
1235
- # VM instance could be represented by the following object, because the
1236
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
1237
- # zone":
1238
- # ` "type": "gce_instance",
1239
- # "labels": ` "instance_id": "12345678901234",
1240
- # "zone": "us-central1-a" ``
1241
- # Corresponds to the JSON property `resource`
1242
- # @return [Google::Apis::MonitoringV3::MonitoredResource]
1243
- attr_accessor :resource
1251
+ # The name of the group's parent, if it has one. The format is "projects/`
1252
+ # project_id_or_number`/groups/`group_id`". For groups with no parent,
1253
+ # parentName is the empty string, "".
1254
+ # Corresponds to the JSON property `parentName`
1255
+ # @return [String]
1256
+ attr_accessor :parent_name
1257
+
1258
+ # A user-assigned name for this group, used only for display purposes.
1259
+ # Corresponds to the JSON property `displayName`
1260
+ # @return [String]
1261
+ attr_accessor :display_name
1262
+
1263
+ # If true, the members of this group are considered to be a cluster. The system
1264
+ # can perform additional analysis on groups that are clusters.
1265
+ # Corresponds to the JSON property `isCluster`
1266
+ # @return [Boolean]
1267
+ attr_accessor :is_cluster
1268
+ alias_method :is_cluster?, :is_cluster
1244
1269
 
1245
1270
  def initialize(**args)
1246
1271
  update!(**args)
@@ -1248,9 +1273,11 @@ module Google
1248
1273
 
1249
1274
  # Update properties of this object
1250
1275
  def update!(**args)
1251
- @collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads)
1252
- @collectd_version = args[:collectd_version] if args.key?(:collectd_version)
1253
- @resource = args[:resource] if args.key?(:resource)
1276
+ @filter = args[:filter] if args.key?(:filter)
1277
+ @name = args[:name] if args.key?(:name)
1278
+ @parent_name = args[:parent_name] if args.key?(:parent_name)
1279
+ @display_name = args[:display_name] if args.key?(:display_name)
1280
+ @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
1254
1281
  end
1255
1282
  end
1256
1283
 
@@ -1258,76 +1285,49 @@ module Google
1258
1285
  class Type
1259
1286
  include Google::Apis::Core::Hashable
1260
1287
 
1288
+ # The list of fields.
1289
+ # Corresponds to the JSON property `fields`
1290
+ # @return [Array<Google::Apis::MonitoringV3::Field>]
1291
+ attr_accessor :fields
1292
+
1293
+ # The fully qualified message name.
1294
+ # Corresponds to the JSON property `name`
1295
+ # @return [String]
1296
+ attr_accessor :name
1297
+
1261
1298
  # The list of types appearing in oneof definitions in this type.
1262
1299
  # Corresponds to the JSON property `oneofs`
1263
1300
  # @return [Array<String>]
1264
1301
  attr_accessor :oneofs
1265
1302
 
1266
- # The protocol buffer options.
1267
- # Corresponds to the JSON property `options`
1268
- # @return [Array<Google::Apis::MonitoringV3::Option>]
1269
- attr_accessor :options
1270
-
1271
1303
  # SourceContext represents information about the source of a protobuf element,
1272
1304
  # like the file in which it is defined.
1273
1305
  # Corresponds to the JSON property `sourceContext`
1274
1306
  # @return [Google::Apis::MonitoringV3::SourceContext]
1275
1307
  attr_accessor :source_context
1276
1308
 
1277
- # The list of fields.
1278
- # Corresponds to the JSON property `fields`
1279
- # @return [Array<Google::Apis::MonitoringV3::Field>]
1280
- attr_accessor :fields
1281
-
1282
- # The fully qualified message name.
1283
- # Corresponds to the JSON property `name`
1284
- # @return [String]
1285
- attr_accessor :name
1286
-
1287
1309
  # The source syntax.
1288
1310
  # Corresponds to the JSON property `syntax`
1289
1311
  # @return [String]
1290
1312
  attr_accessor :syntax
1291
1313
 
1314
+ # The protocol buffer options.
1315
+ # Corresponds to the JSON property `options`
1316
+ # @return [Array<Google::Apis::MonitoringV3::Option>]
1317
+ attr_accessor :options
1318
+
1292
1319
  def initialize(**args)
1293
1320
  update!(**args)
1294
1321
  end
1295
1322
 
1296
1323
  # Update properties of this object
1297
1324
  def update!(**args)
1298
- @oneofs = args[:oneofs] if args.key?(:oneofs)
1299
- @options = args[:options] if args.key?(:options)
1300
- @source_context = args[:source_context] if args.key?(:source_context)
1301
1325
  @fields = args[:fields] if args.key?(:fields)
1302
1326
  @name = args[:name] if args.key?(:name)
1327
+ @oneofs = args[:oneofs] if args.key?(:oneofs)
1328
+ @source_context = args[:source_context] if args.key?(:source_context)
1303
1329
  @syntax = args[:syntax] if args.key?(:syntax)
1304
- end
1305
- end
1306
-
1307
- # The ListGroups response.
1308
- class ListGroupsResponse
1309
- include Google::Apis::Core::Hashable
1310
-
1311
- # The groups that match the specified filters.
1312
- # Corresponds to the JSON property `group`
1313
- # @return [Array<Google::Apis::MonitoringV3::Group>]
1314
- attr_accessor :group
1315
-
1316
- # If there are more results than have been returned, then this field is set to a
1317
- # non-empty value. To see the additional results, use that value as pageToken in
1318
- # the next call to this method.
1319
- # Corresponds to the JSON property `nextPageToken`
1320
- # @return [String]
1321
- attr_accessor :next_page_token
1322
-
1323
- def initialize(**args)
1324
- update!(**args)
1325
- end
1326
-
1327
- # Update properties of this object
1328
- def update!(**args)
1329
- @group = args[:group] if args.key?(:group)
1330
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1330
+ @options = args[:options] if args.key?(:options)
1331
1331
  end
1332
1332
  end
1333
1333
  end