google-api-client 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- 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 +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -48,11 +48,75 @@ module Google
|
|
|
48
48
|
super('https://monitoring.googleapis.com/', '')
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
# Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
|
|
52
|
+
# caution">This method is only for use by the Stackdriver Monitoring Agent. Use
|
|
53
|
+
# projects.timeSeries.create instead.</aside>
|
|
54
|
+
# @param [String] name
|
|
55
|
+
# The project in which to create the time series. The format is "projects/
|
|
56
|
+
# PROJECT_ID_OR_NUMBER".
|
|
57
|
+
# @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object
|
|
58
|
+
# @param [String] fields
|
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
|
60
|
+
# @param [String] quota_user
|
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
|
64
|
+
# Request-specific options
|
|
65
|
+
#
|
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
|
67
|
+
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
|
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
69
|
+
#
|
|
70
|
+
# @return [Google::Apis::MonitoringV3::Empty]
|
|
71
|
+
#
|
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
75
|
+
def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
76
|
+
command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
|
|
77
|
+
command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
|
|
78
|
+
command.request_object = create_collectd_time_series_request_object
|
|
79
|
+
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
|
|
80
|
+
command.response_class = Google::Apis::MonitoringV3::Empty
|
|
81
|
+
command.params['name'] = name unless name.nil?
|
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
84
|
+
execute_or_queue_command(command, &block)
|
|
85
|
+
end
|
|
86
|
+
|
|
51
87
|
# Lists time series that match a filter. This method does not require a
|
|
52
88
|
# Stackdriver account.
|
|
53
89
|
# @param [String] name
|
|
54
90
|
# The project on which to execute the request. The format is "projects/`
|
|
55
91
|
# project_id_or_number`".
|
|
92
|
+
# @param [Array<String>, String] aggregation_group_by_fields
|
|
93
|
+
# The set of fields to preserve when crossSeriesReducer is specified. The
|
|
94
|
+
# groupByFields determine how the time series are partitioned into subsets prior
|
|
95
|
+
# to applying the aggregation function. Each subset contains time series that
|
|
96
|
+
# have the same value for each of the grouping fields. Each individual time
|
|
97
|
+
# series is a member of exactly one subset. The crossSeriesReducer is applied to
|
|
98
|
+
# each subset of time series. It is not possible to reduce across different
|
|
99
|
+
# resource types, so this field implicitly contains resource.type. Fields not
|
|
100
|
+
# specified in groupByFields are aggregated away. If groupByFields is not
|
|
101
|
+
# specified and all the time series have the same resource type, then the time
|
|
102
|
+
# series are aggregated into a single output time series. If crossSeriesReducer
|
|
103
|
+
# is not defined, this field is ignored.
|
|
104
|
+
# @param [String] interval_end_time
|
|
105
|
+
# Required. The end of the time interval.
|
|
106
|
+
# @param [String] aggregation_alignment_period
|
|
107
|
+
# The alignment period for per-time series alignment. If present,
|
|
108
|
+
# alignmentPeriod must be at least 60 seconds. After per-time series alignment,
|
|
109
|
+
# each time series will contain data points only on the period boundaries. If
|
|
110
|
+
# perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
|
|
111
|
+
# ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
|
|
112
|
+
# this field must be defined; otherwise an error is returned.
|
|
113
|
+
# @param [Fixnum] page_size
|
|
114
|
+
# A positive number that is the maximum number of results to return. When view
|
|
115
|
+
# field sets to FULL, it limits the number of Points server will return; if view
|
|
116
|
+
# field is HEADERS, it limits the number of TimeSeries server will return.
|
|
117
|
+
# @param [String] order_by
|
|
118
|
+
# Specifies the order in which the points of the time series should be returned.
|
|
119
|
+
# By default, results are not ordered. Currently, this field must be left blank.
|
|
56
120
|
# @param [String] aggregation_cross_series_reducer
|
|
57
121
|
# The approach to be used to combine time series. Not all reducer functions may
|
|
58
122
|
# be applied to all time series, depending on the metric type and the value type
|
|
@@ -84,34 +148,6 @@ module Google
|
|
|
84
148
|
# time is the end time. The start time must not be later than the end time.
|
|
85
149
|
# @param [String] view
|
|
86
150
|
# Specifies which information is returned about the time series.
|
|
87
|
-
# @param [Array<String>, String] aggregation_group_by_fields
|
|
88
|
-
# The set of fields to preserve when crossSeriesReducer is specified. The
|
|
89
|
-
# groupByFields determine how the time series are partitioned into subsets prior
|
|
90
|
-
# to applying the aggregation function. Each subset contains time series that
|
|
91
|
-
# have the same value for each of the grouping fields. Each individual time
|
|
92
|
-
# series is a member of exactly one subset. The crossSeriesReducer is applied to
|
|
93
|
-
# each subset of time series. It is not possible to reduce across different
|
|
94
|
-
# resource types, so this field implicitly contains resource.type. Fields not
|
|
95
|
-
# specified in groupByFields are aggregated away. If groupByFields is not
|
|
96
|
-
# specified and all the time series have the same resource type, then the time
|
|
97
|
-
# series are aggregated into a single output time series. If crossSeriesReducer
|
|
98
|
-
# is not defined, this field is ignored.
|
|
99
|
-
# @param [String] interval_end_time
|
|
100
|
-
# Required. The end of the time interval.
|
|
101
|
-
# @param [String] aggregation_alignment_period
|
|
102
|
-
# The alignment period for per-time series alignment. If present,
|
|
103
|
-
# alignmentPeriod must be at least 60 seconds. After per-time series alignment,
|
|
104
|
-
# each time series will contain data points only on the period boundaries. If
|
|
105
|
-
# perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
|
|
106
|
-
# ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
|
|
107
|
-
# this field must be defined; otherwise an error is returned.
|
|
108
|
-
# @param [Fixnum] page_size
|
|
109
|
-
# A positive number that is the maximum number of results to return. When view
|
|
110
|
-
# field sets to FULL, it limits the number of Points server will return; if view
|
|
111
|
-
# field is HEADERS, it limits the number of TimeSeries server will return.
|
|
112
|
-
# @param [String] order_by
|
|
113
|
-
# Specifies the order in which the points of the time series should be returned.
|
|
114
|
-
# By default, results are not ordered. Currently, this field must be left blank.
|
|
115
151
|
# @param [String] fields
|
|
116
152
|
# Selector specifying which fields to include in a partial response.
|
|
117
153
|
# @param [String] quota_user
|
|
@@ -129,22 +165,22 @@ module Google
|
|
|
129
165
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
130
166
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
131
167
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
132
|
-
def list_project_time_series(name,
|
|
168
|
+
def list_project_time_series(name, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, page_size: nil, order_by: nil, aggregation_cross_series_reducer: nil, filter: nil, page_token: nil, aggregation_per_series_aligner: nil, interval_start_time: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
133
169
|
command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
|
|
134
170
|
command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
|
|
135
171
|
command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
|
|
136
172
|
command.params['name'] = name unless name.nil?
|
|
173
|
+
command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
|
|
174
|
+
command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
|
|
175
|
+
command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
|
|
176
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
177
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
137
178
|
command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
|
|
138
179
|
command.query['filter'] = filter unless filter.nil?
|
|
139
180
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
140
181
|
command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
|
|
141
182
|
command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
|
|
142
183
|
command.query['view'] = view unless view.nil?
|
|
143
|
-
command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
|
|
144
|
-
command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
|
|
145
|
-
command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
|
|
146
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
147
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
|
148
184
|
command.query['fields'] = fields unless fields.nil?
|
|
149
185
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
150
186
|
execute_or_queue_command(command, &block)
|
|
@@ -186,22 +222,12 @@ module Google
|
|
|
186
222
|
execute_or_queue_command(command, &block)
|
|
187
223
|
end
|
|
188
224
|
|
|
189
|
-
#
|
|
190
|
-
#
|
|
225
|
+
# Creates a new metric descriptor. User-created metric descriptors define custom
|
|
226
|
+
# metrics.
|
|
191
227
|
# @param [String] name
|
|
192
228
|
# The project on which to execute the request. The format is "projects/`
|
|
193
229
|
# project_id_or_number`".
|
|
194
|
-
# @param [
|
|
195
|
-
# A positive number that is the maximum number of results to return.
|
|
196
|
-
# @param [String] filter
|
|
197
|
-
# If this field is empty, all custom and system-defined metric descriptors are
|
|
198
|
-
# returned. Otherwise, the filter specifies which metric descriptors are to be
|
|
199
|
-
# returned. For example, the following filter matches all custom metrics:
|
|
200
|
-
# metric.type = starts_with("custom.googleapis.com/")
|
|
201
|
-
# @param [String] page_token
|
|
202
|
-
# If this field is not empty then it must contain the nextPageToken value
|
|
203
|
-
# returned by a previous call to this method. Using this field causes the method
|
|
204
|
-
# to return additional results from the previous method call.
|
|
230
|
+
# @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_object
|
|
205
231
|
# @param [String] fields
|
|
206
232
|
# Selector specifying which fields to include in a partial response.
|
|
207
233
|
# @param [String] quota_user
|
|
@@ -211,33 +237,31 @@ module Google
|
|
|
211
237
|
# Request-specific options
|
|
212
238
|
#
|
|
213
239
|
# @yield [result, err] Result & error if block supplied
|
|
214
|
-
# @yieldparam result [Google::Apis::MonitoringV3::
|
|
240
|
+
# @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
|
|
215
241
|
# @yieldparam err [StandardError] error object if request failed
|
|
216
242
|
#
|
|
217
|
-
# @return [Google::Apis::MonitoringV3::
|
|
243
|
+
# @return [Google::Apis::MonitoringV3::MetricDescriptor]
|
|
218
244
|
#
|
|
219
245
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
220
246
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
221
247
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
222
|
-
def
|
|
223
|
-
command = make_simple_command(:
|
|
224
|
-
command.
|
|
225
|
-
command.
|
|
248
|
+
def create_project_metric_descriptor(name, metric_descriptor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
249
|
+
command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options)
|
|
250
|
+
command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
|
|
251
|
+
command.request_object = metric_descriptor_object
|
|
252
|
+
command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
|
|
253
|
+
command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
|
|
226
254
|
command.params['name'] = name unless name.nil?
|
|
227
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
228
|
-
command.query['filter'] = filter unless filter.nil?
|
|
229
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
230
255
|
command.query['fields'] = fields unless fields.nil?
|
|
231
256
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
232
257
|
execute_or_queue_command(command, &block)
|
|
233
258
|
end
|
|
234
259
|
|
|
235
|
-
#
|
|
236
|
-
# account.
|
|
260
|
+
# Deletes a metric descriptor. Only user-created custom metrics can be deleted.
|
|
237
261
|
# @param [String] name
|
|
238
262
|
# The metric descriptor on which to execute the request. The format is "projects/
|
|
239
|
-
# `project_id_or_number`/metricDescriptors/`metric_id`". An example
|
|
240
|
-
# metric_id` is "
|
|
263
|
+
# `project_id_or_number`/metricDescriptors/`metric_id`". An example of `
|
|
264
|
+
# metric_id` is: "custom.googleapis.com/my_test_metric".
|
|
241
265
|
# @param [String] fields
|
|
242
266
|
# Selector specifying which fields to include in a partial response.
|
|
243
267
|
# @param [String] quota_user
|
|
@@ -247,30 +271,40 @@ module Google
|
|
|
247
271
|
# Request-specific options
|
|
248
272
|
#
|
|
249
273
|
# @yield [result, err] Result & error if block supplied
|
|
250
|
-
# @yieldparam result [Google::Apis::MonitoringV3::
|
|
274
|
+
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
|
|
251
275
|
# @yieldparam err [StandardError] error object if request failed
|
|
252
276
|
#
|
|
253
|
-
# @return [Google::Apis::MonitoringV3::
|
|
277
|
+
# @return [Google::Apis::MonitoringV3::Empty]
|
|
254
278
|
#
|
|
255
279
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
256
280
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
257
281
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
258
|
-
def
|
|
259
|
-
command = make_simple_command(:
|
|
260
|
-
command.response_representation = Google::Apis::MonitoringV3::
|
|
261
|
-
command.response_class = Google::Apis::MonitoringV3::
|
|
282
|
+
def delete_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
283
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
|
284
|
+
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
|
|
285
|
+
command.response_class = Google::Apis::MonitoringV3::Empty
|
|
262
286
|
command.params['name'] = name unless name.nil?
|
|
263
287
|
command.query['fields'] = fields unless fields.nil?
|
|
264
288
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
265
289
|
execute_or_queue_command(command, &block)
|
|
266
290
|
end
|
|
267
291
|
|
|
268
|
-
#
|
|
269
|
-
#
|
|
292
|
+
# Lists metric descriptors that match a filter. This method does not require a
|
|
293
|
+
# Stackdriver account.
|
|
270
294
|
# @param [String] name
|
|
271
295
|
# The project on which to execute the request. The format is "projects/`
|
|
272
296
|
# project_id_or_number`".
|
|
273
|
-
# @param [
|
|
297
|
+
# @param [String] filter
|
|
298
|
+
# If this field is empty, all custom and system-defined metric descriptors are
|
|
299
|
+
# returned. Otherwise, the filter specifies which metric descriptors are to be
|
|
300
|
+
# returned. For example, the following filter matches all custom metrics:
|
|
301
|
+
# metric.type = starts_with("custom.googleapis.com/")
|
|
302
|
+
# @param [String] page_token
|
|
303
|
+
# If this field is not empty then it must contain the nextPageToken value
|
|
304
|
+
# returned by a previous call to this method. Using this field causes the method
|
|
305
|
+
# to return additional results from the previous method call.
|
|
306
|
+
# @param [Fixnum] page_size
|
|
307
|
+
# A positive number that is the maximum number of results to return.
|
|
274
308
|
# @param [String] fields
|
|
275
309
|
# Selector specifying which fields to include in a partial response.
|
|
276
310
|
# @param [String] quota_user
|
|
@@ -280,31 +314,33 @@ module Google
|
|
|
280
314
|
# Request-specific options
|
|
281
315
|
#
|
|
282
316
|
# @yield [result, err] Result & error if block supplied
|
|
283
|
-
# @yieldparam result [Google::Apis::MonitoringV3::
|
|
317
|
+
# @yieldparam result [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] parsed result object
|
|
284
318
|
# @yieldparam err [StandardError] error object if request failed
|
|
285
319
|
#
|
|
286
|
-
# @return [Google::Apis::MonitoringV3::
|
|
320
|
+
# @return [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse]
|
|
287
321
|
#
|
|
288
322
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
289
323
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
290
324
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
291
|
-
def
|
|
292
|
-
command = make_simple_command(:
|
|
293
|
-
command.
|
|
294
|
-
command.
|
|
295
|
-
command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
|
|
296
|
-
command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
|
|
325
|
+
def list_project_metric_descriptors(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
326
|
+
command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
|
|
327
|
+
command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
|
|
328
|
+
command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
|
|
297
329
|
command.params['name'] = name unless name.nil?
|
|
330
|
+
command.query['filter'] = filter unless filter.nil?
|
|
331
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
332
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
298
333
|
command.query['fields'] = fields unless fields.nil?
|
|
299
334
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
300
335
|
execute_or_queue_command(command, &block)
|
|
301
336
|
end
|
|
302
337
|
|
|
303
|
-
#
|
|
338
|
+
# Gets a single metric descriptor. This method does not require a Stackdriver
|
|
339
|
+
# account.
|
|
304
340
|
# @param [String] name
|
|
305
341
|
# The metric descriptor on which to execute the request. The format is "projects/
|
|
306
|
-
# `project_id_or_number`/metricDescriptors/`metric_id`". An example of `
|
|
307
|
-
# metric_id` is
|
|
342
|
+
# `project_id_or_number`/metricDescriptors/`metric_id`". An example value of `
|
|
343
|
+
# metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count".
|
|
308
344
|
# @param [String] fields
|
|
309
345
|
# Selector specifying which fields to include in a partial response.
|
|
310
346
|
# @param [String] quota_user
|
|
@@ -314,18 +350,18 @@ module Google
|
|
|
314
350
|
# Request-specific options
|
|
315
351
|
#
|
|
316
352
|
# @yield [result, err] Result & error if block supplied
|
|
317
|
-
# @yieldparam result [Google::Apis::MonitoringV3::
|
|
353
|
+
# @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
|
|
318
354
|
# @yieldparam err [StandardError] error object if request failed
|
|
319
355
|
#
|
|
320
|
-
# @return [Google::Apis::MonitoringV3::
|
|
356
|
+
# @return [Google::Apis::MonitoringV3::MetricDescriptor]
|
|
321
357
|
#
|
|
322
358
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
323
359
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
324
360
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
325
|
-
def
|
|
326
|
-
command = make_simple_command(:
|
|
327
|
-
command.response_representation = Google::Apis::MonitoringV3::
|
|
328
|
-
command.response_class = Google::Apis::MonitoringV3::
|
|
361
|
+
def get_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
362
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
|
363
|
+
command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
|
|
364
|
+
command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
|
|
329
365
|
command.params['name'] = name unless name.nil?
|
|
330
366
|
command.query['fields'] = fields unless fields.nil?
|
|
331
367
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -337,6 +373,10 @@ module Google
|
|
|
337
373
|
# @param [String] name
|
|
338
374
|
# The project on which to execute the request. The format is "projects/`
|
|
339
375
|
# project_id_or_number`".
|
|
376
|
+
# @param [String] page_token
|
|
377
|
+
# If this field is not empty then it must contain the nextPageToken value
|
|
378
|
+
# returned by a previous call to this method. Using this field causes the method
|
|
379
|
+
# to return additional results from the previous method call.
|
|
340
380
|
# @param [Fixnum] page_size
|
|
341
381
|
# A positive number that is the maximum number of results to return.
|
|
342
382
|
# @param [String] filter
|
|
@@ -344,10 +384,6 @@ module Google
|
|
|
344
384
|
# reference the descriptor's type and labels. For example, the following filter
|
|
345
385
|
# returns only Google Compute Engine descriptors that have an id label:
|
|
346
386
|
# resource.type = starts_with("gce_") AND resource.label:id
|
|
347
|
-
# @param [String] page_token
|
|
348
|
-
# If this field is not empty then it must contain the nextPageToken value
|
|
349
|
-
# returned by a previous call to this method. Using this field causes the method
|
|
350
|
-
# to return additional results from the previous method call.
|
|
351
387
|
# @param [String] fields
|
|
352
388
|
# Selector specifying which fields to include in a partial response.
|
|
353
389
|
# @param [String] quota_user
|
|
@@ -365,14 +401,14 @@ module Google
|
|
|
365
401
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
366
402
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
367
403
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
368
|
-
def list_project_monitored_resource_descriptors(name,
|
|
404
|
+
def list_project_monitored_resource_descriptors(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
369
405
|
command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options)
|
|
370
406
|
command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation
|
|
371
407
|
command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse
|
|
372
408
|
command.params['name'] = name unless name.nil?
|
|
409
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
373
410
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
374
411
|
command.query['filter'] = filter unless filter.nil?
|
|
375
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
376
412
|
command.query['fields'] = fields unless fields.nil?
|
|
377
413
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
378
414
|
execute_or_queue_command(command, &block)
|
|
@@ -411,6 +447,82 @@ module Google
|
|
|
411
447
|
execute_or_queue_command(command, &block)
|
|
412
448
|
end
|
|
413
449
|
|
|
450
|
+
# Updates an existing group. You can change any group attributes except name.
|
|
451
|
+
# @param [String] name
|
|
452
|
+
# Output only. The name of this group. The format is "projects/`
|
|
453
|
+
# project_id_or_number`/groups/`group_id`". When creating a group, this field is
|
|
454
|
+
# ignored and a new name is created consisting of the project specified in the
|
|
455
|
+
# call to CreateGroup and a unique `group_id` that is generated automatically.
|
|
456
|
+
# @param [Google::Apis::MonitoringV3::Group] group_object
|
|
457
|
+
# @param [Boolean] validate_only
|
|
458
|
+
# If true, validate this request but do not update the existing group.
|
|
459
|
+
# @param [String] fields
|
|
460
|
+
# Selector specifying which fields to include in a partial response.
|
|
461
|
+
# @param [String] quota_user
|
|
462
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
463
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
464
|
+
# @param [Google::Apis::RequestOptions] options
|
|
465
|
+
# Request-specific options
|
|
466
|
+
#
|
|
467
|
+
# @yield [result, err] Result & error if block supplied
|
|
468
|
+
# @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
|
|
469
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
470
|
+
#
|
|
471
|
+
# @return [Google::Apis::MonitoringV3::Group]
|
|
472
|
+
#
|
|
473
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
474
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
475
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
476
|
+
def update_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
477
|
+
command = make_simple_command(:put, 'v3/{+name}', options)
|
|
478
|
+
command.request_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
479
|
+
command.request_object = group_object
|
|
480
|
+
command.response_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
481
|
+
command.response_class = Google::Apis::MonitoringV3::Group
|
|
482
|
+
command.params['name'] = name unless name.nil?
|
|
483
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
484
|
+
command.query['fields'] = fields unless fields.nil?
|
|
485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
486
|
+
execute_or_queue_command(command, &block)
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Creates a new group.
|
|
490
|
+
# @param [String] name
|
|
491
|
+
# The project in which to create the group. The format is "projects/`
|
|
492
|
+
# project_id_or_number`".
|
|
493
|
+
# @param [Google::Apis::MonitoringV3::Group] group_object
|
|
494
|
+
# @param [Boolean] validate_only
|
|
495
|
+
# If true, validate this request but do not create the group.
|
|
496
|
+
# @param [String] fields
|
|
497
|
+
# Selector specifying which fields to include in a partial response.
|
|
498
|
+
# @param [String] quota_user
|
|
499
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
500
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
501
|
+
# @param [Google::Apis::RequestOptions] options
|
|
502
|
+
# Request-specific options
|
|
503
|
+
#
|
|
504
|
+
# @yield [result, err] Result & error if block supplied
|
|
505
|
+
# @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
|
|
506
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
507
|
+
#
|
|
508
|
+
# @return [Google::Apis::MonitoringV3::Group]
|
|
509
|
+
#
|
|
510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
513
|
+
def create_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
514
|
+
command = make_simple_command(:post, 'v3/{+name}/groups', options)
|
|
515
|
+
command.request_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
516
|
+
command.request_object = group_object
|
|
517
|
+
command.response_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
518
|
+
command.response_class = Google::Apis::MonitoringV3::Group
|
|
519
|
+
command.params['name'] = name unless name.nil?
|
|
520
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
521
|
+
command.query['fields'] = fields unless fields.nil?
|
|
522
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
523
|
+
execute_or_queue_command(command, &block)
|
|
524
|
+
end
|
|
525
|
+
|
|
414
526
|
# Deletes an existing group.
|
|
415
527
|
# @param [String] name
|
|
416
528
|
# The group to delete. The format is "projects/`project_id_or_number`/groups/`
|
|
@@ -529,86 +641,12 @@ module Google
|
|
|
529
641
|
execute_or_queue_command(command, &block)
|
|
530
642
|
end
|
|
531
643
|
|
|
532
|
-
# Updates an existing group. You can change any group attributes except name.
|
|
533
|
-
# @param [String] name
|
|
534
|
-
# Output only. The name of this group. The format is "projects/`
|
|
535
|
-
# project_id_or_number`/groups/`group_id`". When creating a group, this field is
|
|
536
|
-
# ignored and a new name is created consisting of the project specified in the
|
|
537
|
-
# call to CreateGroup and a unique `group_id` that is generated automatically.
|
|
538
|
-
# @param [Google::Apis::MonitoringV3::Group] group_object
|
|
539
|
-
# @param [Boolean] validate_only
|
|
540
|
-
# If true, validate this request but do not update the existing group.
|
|
541
|
-
# @param [String] fields
|
|
542
|
-
# Selector specifying which fields to include in a partial response.
|
|
543
|
-
# @param [String] quota_user
|
|
544
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
545
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
546
|
-
# @param [Google::Apis::RequestOptions] options
|
|
547
|
-
# Request-specific options
|
|
548
|
-
#
|
|
549
|
-
# @yield [result, err] Result & error if block supplied
|
|
550
|
-
# @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
|
|
551
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
552
|
-
#
|
|
553
|
-
# @return [Google::Apis::MonitoringV3::Group]
|
|
554
|
-
#
|
|
555
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
556
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
557
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
558
|
-
def update_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
559
|
-
command = make_simple_command(:put, 'v3/{+name}', options)
|
|
560
|
-
command.request_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
561
|
-
command.request_object = group_object
|
|
562
|
-
command.response_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
563
|
-
command.response_class = Google::Apis::MonitoringV3::Group
|
|
564
|
-
command.params['name'] = name unless name.nil?
|
|
565
|
-
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
566
|
-
command.query['fields'] = fields unless fields.nil?
|
|
567
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
568
|
-
execute_or_queue_command(command, &block)
|
|
569
|
-
end
|
|
570
|
-
|
|
571
|
-
# Creates a new group.
|
|
572
|
-
# @param [String] name
|
|
573
|
-
# The project in which to create the group. The format is "projects/`
|
|
574
|
-
# project_id_or_number`".
|
|
575
|
-
# @param [Google::Apis::MonitoringV3::Group] group_object
|
|
576
|
-
# @param [Boolean] validate_only
|
|
577
|
-
# If true, validate this request but do not create the group.
|
|
578
|
-
# @param [String] fields
|
|
579
|
-
# Selector specifying which fields to include in a partial response.
|
|
580
|
-
# @param [String] quota_user
|
|
581
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
582
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
583
|
-
# @param [Google::Apis::RequestOptions] options
|
|
584
|
-
# Request-specific options
|
|
585
|
-
#
|
|
586
|
-
# @yield [result, err] Result & error if block supplied
|
|
587
|
-
# @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
|
|
588
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
589
|
-
#
|
|
590
|
-
# @return [Google::Apis::MonitoringV3::Group]
|
|
591
|
-
#
|
|
592
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
593
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
594
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
595
|
-
def create_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
596
|
-
command = make_simple_command(:post, 'v3/{+name}/groups', options)
|
|
597
|
-
command.request_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
598
|
-
command.request_object = group_object
|
|
599
|
-
command.response_representation = Google::Apis::MonitoringV3::Group::Representation
|
|
600
|
-
command.response_class = Google::Apis::MonitoringV3::Group
|
|
601
|
-
command.params['name'] = name unless name.nil?
|
|
602
|
-
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
603
|
-
command.query['fields'] = fields unless fields.nil?
|
|
604
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
605
|
-
execute_or_queue_command(command, &block)
|
|
606
|
-
end
|
|
607
|
-
|
|
608
644
|
# Lists the monitored resources that are members of a group.
|
|
609
645
|
# @param [String] name
|
|
610
646
|
# The group whose members are listed. The format is "projects/`
|
|
611
647
|
# project_id_or_number`/groups/`group_id`".
|
|
648
|
+
# @param [String] interval_end_time
|
|
649
|
+
# Required. The end of the time interval.
|
|
612
650
|
# @param [String] filter
|
|
613
651
|
# An optional list filter describing the members to be returned. The filter may
|
|
614
652
|
# reference the type, labels, and metadata of monitored resources that comprise
|
|
@@ -624,8 +662,6 @@ module Google
|
|
|
624
662
|
# @param [String] interval_start_time
|
|
625
663
|
# Optional. The beginning of the time interval. The default value for the start
|
|
626
664
|
# time is the end time. The start time must not be later than the end time.
|
|
627
|
-
# @param [String] interval_end_time
|
|
628
|
-
# Required. The end of the time interval.
|
|
629
665
|
# @param [String] fields
|
|
630
666
|
# Selector specifying which fields to include in a partial response.
|
|
631
667
|
# @param [String] quota_user
|
|
@@ -643,52 +679,16 @@ module Google
|
|
|
643
679
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
644
680
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
645
681
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
646
|
-
def list_project_group_members(name,
|
|
682
|
+
def list_project_group_members(name, interval_end_time: nil, filter: nil, page_token: nil, page_size: nil, interval_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
647
683
|
command = make_simple_command(:get, 'v3/{+name}/members', options)
|
|
648
684
|
command.response_representation = Google::Apis::MonitoringV3::ListGroupMembersResponse::Representation
|
|
649
685
|
command.response_class = Google::Apis::MonitoringV3::ListGroupMembersResponse
|
|
650
686
|
command.params['name'] = name unless name.nil?
|
|
687
|
+
command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
|
|
651
688
|
command.query['filter'] = filter unless filter.nil?
|
|
652
689
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
653
690
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
654
691
|
command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
|
|
655
|
-
command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
|
|
656
|
-
command.query['fields'] = fields unless fields.nil?
|
|
657
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
658
|
-
execute_or_queue_command(command, &block)
|
|
659
|
-
end
|
|
660
|
-
|
|
661
|
-
# Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
|
|
662
|
-
# caution">This method is only for use by the Stackdriver Monitoring Agent. Use
|
|
663
|
-
# projects.timeSeries.create instead.</aside>
|
|
664
|
-
# @param [String] name
|
|
665
|
-
# The project in which to create the time series. The format is "projects/
|
|
666
|
-
# PROJECT_ID_OR_NUMBER".
|
|
667
|
-
# @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object
|
|
668
|
-
# @param [String] fields
|
|
669
|
-
# Selector specifying which fields to include in a partial response.
|
|
670
|
-
# @param [String] quota_user
|
|
671
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
672
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
673
|
-
# @param [Google::Apis::RequestOptions] options
|
|
674
|
-
# Request-specific options
|
|
675
|
-
#
|
|
676
|
-
# @yield [result, err] Result & error if block supplied
|
|
677
|
-
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
|
|
678
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
679
|
-
#
|
|
680
|
-
# @return [Google::Apis::MonitoringV3::Empty]
|
|
681
|
-
#
|
|
682
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
683
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
684
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
685
|
-
def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
686
|
-
command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
|
|
687
|
-
command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
|
|
688
|
-
command.request_object = create_collectd_time_series_request_object
|
|
689
|
-
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
|
|
690
|
-
command.response_class = Google::Apis::MonitoringV3::Empty
|
|
691
|
-
command.params['name'] = name unless name.nil?
|
|
692
692
|
command.query['fields'] = fields unless fields.nil?
|
|
693
693
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
694
694
|
execute_or_queue_command(command, &block)
|