google-api-client 0.11.1 → 0.11.2

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