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