google-api-client 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- 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 = '
|
|
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
|
-
#
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
|
|
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
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
|
|
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
|
-
#
|
|
69
|
-
#
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
#
|
|
75
|
-
#
|
|
76
|
-
|
|
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
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
# Corresponds to the JSON property `
|
|
92
|
-
# @return [
|
|
93
|
-
attr_accessor :
|
|
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
|
-
@
|
|
102
|
-
@
|
|
103
|
-
@
|
|
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
|
-
#
|
|
111
|
-
|
|
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
|
-
#
|
|
126
|
-
#
|
|
127
|
-
#
|
|
128
|
-
|
|
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 :
|
|
95
|
+
attr_accessor :data_source_type
|
|
131
96
|
|
|
132
|
-
#
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
|
|
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
|
-
@
|
|
146
|
-
@
|
|
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
|
-
#
|
|
151
|
-
|
|
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
|
|
155
|
-
#
|
|
156
|
-
# Corresponds to the JSON property `
|
|
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 :
|
|
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
|
-
@
|
|
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
|
-
#
|
|
179
|
-
#
|
|
180
|
-
#
|
|
181
|
-
|
|
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
|
-
#
|
|
189
|
-
#
|
|
190
|
-
# the type
|
|
191
|
-
#
|
|
192
|
-
#
|
|
193
|
-
#
|
|
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
|
-
#
|
|
199
|
-
#
|
|
200
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
212
|
-
#
|
|
213
|
-
#
|
|
214
|
-
#
|
|
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 :
|
|
234
|
+
attr_accessor :unit
|
|
217
235
|
|
|
218
|
-
#
|
|
219
|
-
#
|
|
220
|
-
#
|
|
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
|
-
@
|
|
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
|
-
#
|
|
240
|
-
class
|
|
262
|
+
# The range of the population values.
|
|
263
|
+
class Range
|
|
241
264
|
include Google::Apis::Core::Hashable
|
|
242
265
|
|
|
243
|
-
#
|
|
244
|
-
#
|
|
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 :
|
|
249
|
-
|
|
250
|
-
# A 64-bit integer. Its range is approximately ±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
|
-
#
|
|
277
|
-
# Corresponds to the JSON property `
|
|
278
|
-
# @return [
|
|
279
|
-
attr_accessor :
|
|
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
|
-
@
|
|
288
|
-
@
|
|
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
|
-
#
|
|
296
|
-
|
|
297
|
-
class CollectdPayload
|
|
287
|
+
# The ListGroups response.
|
|
288
|
+
class ListGroupsResponse
|
|
298
289
|
include Google::Apis::Core::Hashable
|
|
299
290
|
|
|
300
|
-
#
|
|
301
|
-
#
|
|
302
|
-
#
|
|
303
|
-
|
|
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 :
|
|
296
|
+
attr_accessor :next_page_token
|
|
334
297
|
|
|
335
|
-
# The
|
|
336
|
-
#
|
|
337
|
-
#
|
|
338
|
-
|
|
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
|
-
@
|
|
348
|
-
@
|
|
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
|
-
#
|
|
359
|
-
|
|
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
|
-
#
|
|
368
|
-
# Corresponds to the JSON property `
|
|
369
|
-
# @return [
|
|
370
|
-
attr_accessor :
|
|
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
|
-
#
|
|
373
|
-
#
|
|
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 :
|
|
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
|
-
@
|
|
389
|
-
@
|
|
390
|
-
@
|
|
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
|
-
#
|
|
395
|
-
|
|
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
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
#
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
|
419
|
-
#
|
|
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 :
|
|
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
|
-
@
|
|
441
|
-
@
|
|
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
|
-
#
|
|
446
|
-
|
|
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
|
-
#
|
|
455
|
-
#
|
|
456
|
-
#
|
|
457
|
-
|
|
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
|
-
@
|
|
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
|
|
470
|
-
#
|
|
471
|
-
#
|
|
472
|
-
|
|
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
|
-
#
|
|
476
|
-
#
|
|
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 :
|
|
452
|
+
attr_accessor :metric_kind
|
|
479
453
|
|
|
480
|
-
#
|
|
481
|
-
#
|
|
482
|
-
# Corresponds to the JSON property `
|
|
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 :
|
|
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
|
-
@
|
|
493
|
-
@
|
|
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
|
-
#
|
|
498
|
-
|
|
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
|
-
#
|
|
507
|
-
#
|
|
508
|
-
#
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
#
|
|
512
|
-
#
|
|
513
|
-
|
|
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
|
-
@
|
|
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
|
-
#
|
|
534
|
-
|
|
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
|
-
#
|
|
538
|
-
#
|
|
539
|
-
#
|
|
540
|
-
#
|
|
541
|
-
#
|
|
542
|
-
|
|
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
|
-
#
|
|
545
|
-
#
|
|
546
|
-
#
|
|
547
|
-
|
|
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
|
-
@
|
|
556
|
-
@
|
|
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
|
-
#
|
|
561
|
-
|
|
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
|
-
#
|
|
565
|
-
#
|
|
566
|
-
#
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
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
|
|
612
|
-
#
|
|
613
|
-
#
|
|
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 :
|
|
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
|
-
@
|
|
624
|
-
@
|
|
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
|
-
#
|
|
637
|
-
|
|
638
|
-
class Metric
|
|
641
|
+
# The ListMetricDescriptors response.
|
|
642
|
+
class ListMetricDescriptorsResponse
|
|
639
643
|
include Google::Apis::Core::Hashable
|
|
640
644
|
|
|
641
|
-
# The
|
|
642
|
-
#
|
|
643
|
-
# Corresponds to the JSON property `
|
|
644
|
-
# @return [
|
|
645
|
-
attr_accessor :
|
|
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
|
-
#
|
|
648
|
-
#
|
|
649
|
-
#
|
|
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 :
|
|
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
|
-
@
|
|
660
|
-
@
|
|
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
|
-
#
|
|
665
|
-
|
|
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
|
|
669
|
-
#
|
|
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 :
|
|
687
|
+
attr_accessor :name
|
|
672
688
|
|
|
673
|
-
# A
|
|
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
|
|
679
|
-
#
|
|
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 :
|
|
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
|
-
@
|
|
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
|
-
@
|
|
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
|
-
#
|
|
696
|
-
class
|
|
730
|
+
# A single strongly-typed value.
|
|
731
|
+
class TypedValue
|
|
697
732
|
include Google::Apis::Core::Hashable
|
|
698
733
|
|
|
699
|
-
#
|
|
700
|
-
#
|
|
701
|
-
#
|
|
702
|
-
|
|
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 :
|
|
743
|
+
attr_accessor :string_value
|
|
705
744
|
|
|
706
|
-
#
|
|
707
|
-
#
|
|
708
|
-
#
|
|
709
|
-
|
|
745
|
+
# A 64-bit double-precision floating-point number. Its magnitude is
|
|
746
|
+
# approximately ±10<sup>±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 ±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
|
-
@
|
|
718
|
-
@
|
|
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
|
-
#
|
|
723
|
-
#
|
|
724
|
-
|
|
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
|
|
746
|
-
# Corresponds to the JSON property `
|
|
791
|
+
# The measurement type instance. Example: "used".
|
|
792
|
+
# Corresponds to the JSON property `typeInstance`
|
|
747
793
|
# @return [String]
|
|
748
|
-
attr_accessor :
|
|
794
|
+
attr_accessor :type_instance
|
|
749
795
|
|
|
750
|
-
#
|
|
751
|
-
#
|
|
752
|
-
#
|
|
753
|
-
|
|
754
|
-
|
|
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 :
|
|
804
|
+
attr_accessor :type
|
|
757
805
|
|
|
758
|
-
# The name of the
|
|
759
|
-
#
|
|
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 :
|
|
809
|
+
attr_accessor :plugin
|
|
764
810
|
|
|
765
|
-
#
|
|
766
|
-
# Corresponds to the JSON property `
|
|
811
|
+
# The instance name of the plugin Example: "hdcl".
|
|
812
|
+
# Corresponds to the JSON property `pluginInstance`
|
|
767
813
|
# @return [String]
|
|
768
|
-
attr_accessor :
|
|
814
|
+
attr_accessor :plugin_instance
|
|
769
815
|
|
|
770
|
-
#
|
|
771
|
-
#
|
|
772
|
-
#
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
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
|
-
@
|
|
784
|
-
@
|
|
785
|
-
@
|
|
786
|
-
@
|
|
787
|
-
@
|
|
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
|
-
#
|
|
792
|
-
|
|
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
|
-
#
|
|
796
|
-
# Corresponds to the JSON property `
|
|
797
|
-
# @return [
|
|
798
|
-
attr_accessor :
|
|
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
|
-
#
|
|
817
|
-
# Corresponds to the JSON property `
|
|
818
|
-
# @return [
|
|
819
|
-
attr_accessor :
|
|
863
|
+
# Must be greater than 0.
|
|
864
|
+
# Corresponds to the JSON property `width`
|
|
865
|
+
# @return [Float]
|
|
866
|
+
attr_accessor :width
|
|
820
867
|
|
|
821
|
-
#
|
|
822
|
-
# Corresponds to the JSON property `
|
|
823
|
-
# @return [
|
|
824
|
-
attr_accessor :
|
|
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
|
-
@
|
|
833
|
-
@
|
|
834
|
-
@
|
|
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
|
-
#
|
|
842
|
-
#
|
|
843
|
-
#
|
|
844
|
-
#
|
|
845
|
-
#
|
|
846
|
-
#
|
|
847
|
-
#
|
|
848
|
-
|
|
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
|
|
900
|
-
|
|
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
|
-
#
|
|
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 [
|
|
914
|
+
# @return [Hash<String,Object>]
|
|
906
915
|
attr_accessor :value
|
|
907
916
|
|
|
908
|
-
# The
|
|
909
|
-
#
|
|
910
|
-
#
|
|
911
|
-
|
|
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 :
|
|
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
|
-
@
|
|
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
|
-
#
|
|
932
|
-
#
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
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
|
-
@
|
|
956
|
+
@bounds = args[:bounds] if args.key?(:bounds)
|
|
949
957
|
end
|
|
950
958
|
end
|
|
951
959
|
|
|
952
|
-
#
|
|
953
|
-
#
|
|
954
|
-
#
|
|
955
|
-
class
|
|
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
|
|
959
|
-
# the
|
|
960
|
-
#
|
|
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 :
|
|
970
|
+
attr_accessor :start_time
|
|
969
971
|
|
|
970
|
-
#
|
|
971
|
-
#
|
|
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 :
|
|
975
|
+
attr_accessor :end_time
|
|
978
976
|
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
# @return [String]
|
|
983
|
-
attr_accessor :value_type
|
|
977
|
+
def initialize(**args)
|
|
978
|
+
update!(**args)
|
|
979
|
+
end
|
|
984
980
|
|
|
985
|
-
#
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
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
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
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
|
-
#
|
|
998
|
-
# Corresponds to the JSON property `
|
|
999
|
-
# @return [
|
|
1000
|
-
attr_accessor :
|
|
997
|
+
# Must be greater than 0.
|
|
998
|
+
# Corresponds to the JSON property `scale`
|
|
999
|
+
# @return [Float]
|
|
1000
|
+
attr_accessor :scale
|
|
1001
1001
|
|
|
1002
|
-
#
|
|
1003
|
-
#
|
|
1004
|
-
#
|
|
1005
|
-
|
|
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
|
-
#
|
|
1053
|
-
#
|
|
1054
|
-
#
|
|
1055
|
-
|
|
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
|
-
@
|
|
1068
|
-
@
|
|
1069
|
-
@
|
|
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
|
-
#
|
|
1079
|
-
class
|
|
1024
|
+
# A single data point in a time series.
|
|
1025
|
+
class Point
|
|
1080
1026
|
include Google::Apis::Core::Hashable
|
|
1081
1027
|
|
|
1082
|
-
#
|
|
1083
|
-
# Corresponds to the JSON property `
|
|
1084
|
-
# @return [
|
|
1085
|
-
attr_accessor :
|
|
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
|
-
#
|
|
1088
|
-
#
|
|
1089
|
-
#
|
|
1090
|
-
|
|
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
|
-
@
|
|
1099
|
-
@
|
|
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
|
-
#
|
|
1104
|
-
class
|
|
1051
|
+
# A single field of a message type.
|
|
1052
|
+
class Field
|
|
1105
1053
|
include Google::Apis::Core::Hashable
|
|
1106
1054
|
|
|
1107
|
-
# The
|
|
1108
|
-
# Corresponds to the JSON property `
|
|
1109
|
-
# @return [
|
|
1110
|
-
attr_accessor :
|
|
1055
|
+
# The field name.
|
|
1056
|
+
# Corresponds to the JSON property `name`
|
|
1057
|
+
# @return [String]
|
|
1058
|
+
attr_accessor :name
|
|
1111
1059
|
|
|
1112
|
-
#
|
|
1113
|
-
#
|
|
1114
|
-
#
|
|
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 :
|
|
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
|
-
@
|
|
1126
|
-
@
|
|
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
|
-
#
|
|
1131
|
-
|
|
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
|
|
1135
|
-
#
|
|
1136
|
-
#
|
|
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 :
|
|
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
|
-
@
|
|
1170
|
-
@
|
|
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
|
-
#
|
|
1176
|
-
class
|
|
1155
|
+
# A description of a label.
|
|
1156
|
+
class LabelDescriptor
|
|
1177
1157
|
include Google::Apis::Core::Hashable
|
|
1178
1158
|
|
|
1179
|
-
#
|
|
1180
|
-
#
|
|
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 :
|
|
1162
|
+
attr_accessor :key
|
|
1185
1163
|
|
|
1186
|
-
#
|
|
1187
|
-
# Corresponds to the JSON property `
|
|
1188
|
-
# @return [
|
|
1189
|
-
attr_accessor :
|
|
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
|
-
#
|
|
1192
|
-
# Corresponds to the JSON property `
|
|
1193
|
-
# @return [
|
|
1194
|
-
attr_accessor :
|
|
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
|
-
@
|
|
1203
|
-
@
|
|
1204
|
-
@
|
|
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
|
|
1209
|
-
class
|
|
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
|
|
1237
|
-
|
|
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
|
|
1244
|
-
#
|
|
1245
|
-
#
|
|
1246
|
-
|
|
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
|
-
#
|
|
1253
|
-
#
|
|
1254
|
-
#
|
|
1255
|
-
|
|
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
|
|
1269
|
-
#
|
|
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 :
|
|
1230
|
+
attr_accessor :name
|
|
1278
1231
|
|
|
1279
|
-
#
|
|
1280
|
-
#
|
|
1281
|
-
#
|
|
1282
|
-
|
|
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
|
|
1286
|
-
#
|
|
1287
|
-
#
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
#
|
|
1291
|
-
#
|
|
1292
|
-
#
|
|
1293
|
-
|
|
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
|
-
@
|
|
1302
|
-
@
|
|
1303
|
-
@
|
|
1304
|
-
@
|
|
1305
|
-
@
|
|
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
|
|
1310
|
-
|
|
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
|
-
#
|
|
1314
|
-
#
|
|
1315
|
-
#
|
|
1316
|
-
#
|
|
1317
|
-
#
|
|
1318
|
-
#
|
|
1319
|
-
|
|
1320
|
-
|
|
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
|
-
@
|
|
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
|