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