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