| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.monitoring.v3; | 3 library googleapis.monitoring.v3; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client monitoring/v3'; | 15 const core.String USER_AGENT = 'dart-api-client monitoring/v3'; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Manages your Stackdriver monitoring data and configurations. Projects must be | 18 * Manages your Stackdriver Monitoring data and configurations. Most projects |
| 19 * associated with a Stackdriver account, except for the following methods: | 19 * must be associated with a Stackdriver account, with a few exceptions as noted |
| 20 * [monitoredResourceDescriptors.list](v3/projects.monitoredResourceDescriptors/
list), | 20 * on the individual method pages. |
| 21 * [monitoredResourceDescriptors.get](v3/projects.monitoredResourceDescriptors/g
et), | |
| 22 * [metricDescriptors.list](v3/projects.metricDescriptors/list), | |
| 23 * [metricDescriptors.get](v3/projects.metricDescriptors/get), and | |
| 24 * [timeSeries.list](v3/projects.timeSeries/list). | |
| 25 */ | 21 */ |
| 26 class MonitoringApi { | 22 class MonitoringApi { |
| 27 /** View and manage your data across Google Cloud Platform services */ | 23 /** View and manage your data across Google Cloud Platform services */ |
| 28 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
| 29 | 25 |
| 30 /** | 26 /** |
| 31 * View and write monitoring data for all of your Google and third-party Cloud | 27 * View and write monitoring data for all of your Google and third-party Cloud |
| 32 * and API projects | 28 * and API projects |
| 33 */ | 29 */ |
| 34 static const MonitoringScope = "https://www.googleapis.com/auth/monitoring"; | 30 static const MonitoringScope = "https://www.googleapis.com/auth/monitoring"; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 65 } | 61 } |
| 66 | 62 |
| 67 | 63 |
| 68 class ProjectsCollectdTimeSeriesResourceApi { | 64 class ProjectsCollectdTimeSeriesResourceApi { |
| 69 final commons.ApiRequester _requester; | 65 final commons.ApiRequester _requester; |
| 70 | 66 |
| 71 ProjectsCollectdTimeSeriesResourceApi(commons.ApiRequester client) : | 67 ProjectsCollectdTimeSeriesResourceApi(commons.ApiRequester client) : |
| 72 _requester = client; | 68 _requester = client; |
| 73 | 69 |
| 74 /** | 70 /** |
| 75 * Creates a new time series with the given data points. This method is only | 71 * Stackdriver Monitoring Agent only: Creates a new time series.<aside |
| 76 * for use in `collectd`-related code, including the Google Monitoring Agent. | 72 * class="caution">This method is only for use by the Stackdriver Monitoring |
| 77 * See [google.monitoring.v3.MetricService.CreateTimeSeries] instead. | 73 * Agent. Use projects.timeSeries.create instead.</aside> |
| 78 * | 74 * |
| 79 * [request] - The metadata request object. | 75 * [request] - The metadata request object. |
| 80 * | 76 * |
| 81 * Request parameters: | 77 * Request parameters: |
| 82 * | 78 * |
| 83 * [name] - The project in which to create the time series. The format is | 79 * [name] - The project in which to create the time series. The format is |
| 84 * `"projects/PROJECT_ID_OR_NUMBER"`. | 80 * "projects/PROJECT_ID_OR_NUMBER". |
| 85 * Value must have pattern "^projects/[^/]*$". | 81 * Value must have pattern "^projects/[^/]+$". |
| 86 * | 82 * |
| 87 * Completes with a [Empty]. | 83 * Completes with a [Empty]. |
| 88 * | 84 * |
| 89 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 85 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 90 * error. | 86 * error. |
| 91 * | 87 * |
| 92 * If the used [http.Client] completes with an error when making a REST call, | 88 * If the used [http.Client] completes with an error when making a REST call, |
| 93 * this method will complete with the same error. | 89 * this method will complete with the same error. |
| 94 */ | 90 */ |
| 95 async.Future<Empty> create(CreateCollectdTimeSeriesRequest request, core.Strin
g name) { | 91 async.Future<Empty> create(CreateCollectdTimeSeriesRequest request, core.Strin
g name) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 _requester = client; | 127 _requester = client; |
| 132 | 128 |
| 133 /** | 129 /** |
| 134 * Creates a new group. | 130 * Creates a new group. |
| 135 * | 131 * |
| 136 * [request] - The metadata request object. | 132 * [request] - The metadata request object. |
| 137 * | 133 * |
| 138 * Request parameters: | 134 * Request parameters: |
| 139 * | 135 * |
| 140 * [name] - The project in which to create the group. The format is | 136 * [name] - The project in which to create the group. The format is |
| 141 * `"projects/{project_id_or_number}"`. | 137 * "projects/{project_id_or_number}". |
| 142 * Value must have pattern "^projects/[^/]*$". | 138 * Value must have pattern "^projects/[^/]+$". |
| 143 * | 139 * |
| 144 * [validateOnly] - If true, validate this request but do not create the | 140 * [validateOnly] - If true, validate this request but do not create the |
| 145 * group. | 141 * group. |
| 146 * | 142 * |
| 147 * Completes with a [Group]. | 143 * Completes with a [Group]. |
| 148 * | 144 * |
| 149 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 145 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 150 * error. | 146 * error. |
| 151 * | 147 * |
| 152 * If the used [http.Client] completes with an error when making a REST call, | 148 * If the used [http.Client] completes with an error when making a REST call, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 181 downloadOptions: _downloadOptions); | 177 downloadOptions: _downloadOptions); |
| 182 return _response.then((data) => new Group.fromJson(data)); | 178 return _response.then((data) => new Group.fromJson(data)); |
| 183 } | 179 } |
| 184 | 180 |
| 185 /** | 181 /** |
| 186 * Deletes an existing group. | 182 * Deletes an existing group. |
| 187 * | 183 * |
| 188 * Request parameters: | 184 * Request parameters: |
| 189 * | 185 * |
| 190 * [name] - The group to delete. The format is | 186 * [name] - The group to delete. The format is |
| 191 * `"projects/{project_id_or_number}/groups/{group_id}"`. | 187 * "projects/{project_id_or_number}/groups/{group_id}". |
| 192 * Value must have pattern "^projects/[^/] * / groups/[^/]*$". | 188 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 193 * | 189 * |
| 194 * Completes with a [Empty]. | 190 * Completes with a [Empty]. |
| 195 * | 191 * |
| 196 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 197 * error. | 193 * error. |
| 198 * | 194 * |
| 199 * If the used [http.Client] completes with an error when making a REST call, | 195 * If the used [http.Client] completes with an error when making a REST call, |
| 200 * this method will complete with the same error. | 196 * this method will complete with the same error. |
| 201 */ | 197 */ |
| 202 async.Future<Empty> delete(core.String name) { | 198 async.Future<Empty> delete(core.String name) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 222 downloadOptions: _downloadOptions); | 218 downloadOptions: _downloadOptions); |
| 223 return _response.then((data) => new Empty.fromJson(data)); | 219 return _response.then((data) => new Empty.fromJson(data)); |
| 224 } | 220 } |
| 225 | 221 |
| 226 /** | 222 /** |
| 227 * Gets a single group. | 223 * Gets a single group. |
| 228 * | 224 * |
| 229 * Request parameters: | 225 * Request parameters: |
| 230 * | 226 * |
| 231 * [name] - The group to retrieve. The format is | 227 * [name] - The group to retrieve. The format is |
| 232 * `"projects/{project_id_or_number}/groups/{group_id}"`. | 228 * "projects/{project_id_or_number}/groups/{group_id}". |
| 233 * Value must have pattern "^projects/[^/] * / groups/[^/]*$". | 229 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 234 * | 230 * |
| 235 * Completes with a [Group]. | 231 * Completes with a [Group]. |
| 236 * | 232 * |
| 237 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 238 * error. | 234 * error. |
| 239 * | 235 * |
| 240 * If the used [http.Client] completes with an error when making a REST call, | 236 * If the used [http.Client] completes with an error when making a REST call, |
| 241 * this method will complete with the same error. | 237 * this method will complete with the same error. |
| 242 */ | 238 */ |
| 243 async.Future<Group> get(core.String name) { | 239 async.Future<Group> get(core.String name) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 263 downloadOptions: _downloadOptions); | 259 downloadOptions: _downloadOptions); |
| 264 return _response.then((data) => new Group.fromJson(data)); | 260 return _response.then((data) => new Group.fromJson(data)); |
| 265 } | 261 } |
| 266 | 262 |
| 267 /** | 263 /** |
| 268 * Lists the existing groups. | 264 * Lists the existing groups. |
| 269 * | 265 * |
| 270 * Request parameters: | 266 * Request parameters: |
| 271 * | 267 * |
| 272 * [name] - The project whose groups are to be listed. The format is | 268 * [name] - The project whose groups are to be listed. The format is |
| 273 * `"projects/{project_id_or_number}"`. | 269 * "projects/{project_id_or_number}". |
| 274 * Value must have pattern "^projects/[^/]*$". | 270 * Value must have pattern "^projects/[^/]+$". |
| 275 * | |
| 276 * [childrenOfGroup] - A group name: | |
| 277 * `"projects/{project_id_or_number}/groups/{group_id}"`. Returns groups whose | |
| 278 * `parentName` field contains the group name. If no groups have this parent, | |
| 279 * the results are empty. | |
| 280 * | |
| 281 * [ancestorsOfGroup] - A group name: | |
| 282 * `"projects/{project_id_or_number}/groups/{group_id}"`. Returns groups that | |
| 283 * are ancestors of the specified group. The groups are returned in order, | |
| 284 * starting with the immediate parent and ending with the most distant | |
| 285 * ancestor. If the specified group has no immediate parent, the results are | |
| 286 * empty. | |
| 287 * | 271 * |
| 288 * [descendantsOfGroup] - A group name: | 272 * [descendantsOfGroup] - A group name: |
| 289 * `"projects/{project_id_or_number}/groups/{group_id}"`. Returns the | 273 * "projects/{project_id_or_number}/groups/{group_id}". Returns the |
| 290 * descendants of the specified group. This is a superset of the results | 274 * descendants of the specified group. This is a superset of the results |
| 291 * returned by the `childrenOfGroup` filter, and includes | 275 * returned by the childrenOfGroup filter, and includes children-of-children, |
| 292 * children-of-children, and so forth. | 276 * and so forth. |
| 293 * | 277 * |
| 294 * [pageSize] - A positive number that is the maximum number of results to | 278 * [pageSize] - A positive number that is the maximum number of results to |
| 295 * return. | 279 * return. |
| 296 * | 280 * |
| 281 * [childrenOfGroup] - A group name: |
| 282 * "projects/{project_id_or_number}/groups/{group_id}". Returns |
| 283 * groups whose parentName field contains the group name. If no groups have |
| 284 * this parent, the results are empty. |
| 285 * |
| 286 * [ancestorsOfGroup] - A group name: |
| 287 * "projects/{project_id_or_number}/groups/{group_id}". Returns |
| 288 * groups that are ancestors of the specified group. The groups are returned |
| 289 * in order, starting with the immediate parent and ending with the most |
| 290 * distant ancestor. If the specified group has no immediate parent, the |
| 291 * results are empty. |
| 292 * |
| 297 * [pageToken] - If this field is not empty then it must contain the | 293 * [pageToken] - If this field is not empty then it must contain the |
| 298 * `nextPageToken` value returned by a previous call to this method. Using | 294 * nextPageToken value returned by a previous call to this method. Using this |
| 299 * this field causes the method to return additional results from the previous | 295 * field causes the method to return additional results from the previous |
| 300 * method call. | 296 * method call. |
| 301 * | 297 * |
| 302 * Completes with a [ListGroupsResponse]. | 298 * Completes with a [ListGroupsResponse]. |
| 303 * | 299 * |
| 304 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 305 * error. | 301 * error. |
| 306 * | 302 * |
| 307 * If the used [http.Client] completes with an error when making a REST call, | 303 * If the used [http.Client] completes with an error when making a REST call, |
| 308 * this method will complete with the same error. | 304 * this method will complete with the same error. |
| 309 */ | 305 */ |
| 310 async.Future<ListGroupsResponse> list(core.String name, {core.String childrenO
fGroup, core.String ancestorsOfGroup, core.String descendantsOfGroup, core.int p
ageSize, core.String pageToken}) { | 306 async.Future<ListGroupsResponse> list(core.String name, {core.String descendan
tsOfGroup, core.int pageSize, core.String childrenOfGroup, core.String ancestors
OfGroup, core.String pageToken}) { |
| 311 var _url = null; | 307 var _url = null; |
| 312 var _queryParams = new core.Map(); | 308 var _queryParams = new core.Map(); |
| 313 var _uploadMedia = null; | 309 var _uploadMedia = null; |
| 314 var _uploadOptions = null; | 310 var _uploadOptions = null; |
| 315 var _downloadOptions = commons.DownloadOptions.Metadata; | 311 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 316 var _body = null; | 312 var _body = null; |
| 317 | 313 |
| 318 if (name == null) { | 314 if (name == null) { |
| 319 throw new core.ArgumentError("Parameter name is required."); | 315 throw new core.ArgumentError("Parameter name is required."); |
| 320 } | 316 } |
| 317 if (descendantsOfGroup != null) { |
| 318 _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; |
| 319 } |
| 320 if (pageSize != null) { |
| 321 _queryParams["pageSize"] = ["${pageSize}"]; |
| 322 } |
| 321 if (childrenOfGroup != null) { | 323 if (childrenOfGroup != null) { |
| 322 _queryParams["childrenOfGroup"] = [childrenOfGroup]; | 324 _queryParams["childrenOfGroup"] = [childrenOfGroup]; |
| 323 } | 325 } |
| 324 if (ancestorsOfGroup != null) { | 326 if (ancestorsOfGroup != null) { |
| 325 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; | 327 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; |
| 326 } | 328 } |
| 327 if (descendantsOfGroup != null) { | |
| 328 _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; | |
| 329 } | |
| 330 if (pageSize != null) { | |
| 331 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 332 } | |
| 333 if (pageToken != null) { | 329 if (pageToken != null) { |
| 334 _queryParams["pageToken"] = [pageToken]; | 330 _queryParams["pageToken"] = [pageToken]; |
| 335 } | 331 } |
| 336 | 332 |
| 337 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups'; | 333 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups'; |
| 338 | 334 |
| 339 var _response = _requester.request(_url, | 335 var _response = _requester.request(_url, |
| 340 "GET", | 336 "GET", |
| 341 body: _body, | 337 body: _body, |
| 342 queryParams: _queryParams, | 338 queryParams: _queryParams, |
| 343 uploadOptions: _uploadOptions, | 339 uploadOptions: _uploadOptions, |
| 344 uploadMedia: _uploadMedia, | 340 uploadMedia: _uploadMedia, |
| 345 downloadOptions: _downloadOptions); | 341 downloadOptions: _downloadOptions); |
| 346 return _response.then((data) => new ListGroupsResponse.fromJson(data)); | 342 return _response.then((data) => new ListGroupsResponse.fromJson(data)); |
| 347 } | 343 } |
| 348 | 344 |
| 349 /** | 345 /** |
| 350 * Updates an existing group. You can change any group attributes except | 346 * Updates an existing group. You can change any group attributes except name. |
| 351 * `name`. | |
| 352 * | 347 * |
| 353 * [request] - The metadata request object. | 348 * [request] - The metadata request object. |
| 354 * | 349 * |
| 355 * Request parameters: | 350 * Request parameters: |
| 356 * | 351 * |
| 357 * [name] - The name of this group. The format is | 352 * [name] - Output only. The name of this group. The format is |
| 358 * `"projects/{project_id_or_number}/groups/{group_id}"`. When creating a | 353 * "projects/{project_id_or_number}/groups/{group_id}". When |
| 359 * group, this field is ignored and a new name is created consisting of the | 354 * creating a group, this field is ignored and a new name is created |
| 360 * project specified in the call to `CreateGroup` and a unique `{group_id}` | 355 * consisting of the project specified in the call to CreateGroup and a unique |
| 361 * that is generated automatically. @OutputOnly | 356 * {group_id} that is generated automatically. |
| 362 * Value must have pattern "^projects/[^/] * / groups/[^/]*$". | 357 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 363 * | 358 * |
| 364 * [validateOnly] - If true, validate this request but do not update the | 359 * [validateOnly] - If true, validate this request but do not update the |
| 365 * existing group. | 360 * existing group. |
| 366 * | 361 * |
| 367 * Completes with a [Group]. | 362 * Completes with a [Group]. |
| 368 * | 363 * |
| 369 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 370 * error. | 365 * error. |
| 371 * | 366 * |
| 372 * If the used [http.Client] completes with an error when making a REST call, | 367 * If the used [http.Client] completes with an error when making a REST call, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 405 |
| 411 ProjectsGroupsMembersResourceApi(commons.ApiRequester client) : | 406 ProjectsGroupsMembersResourceApi(commons.ApiRequester client) : |
| 412 _requester = client; | 407 _requester = client; |
| 413 | 408 |
| 414 /** | 409 /** |
| 415 * Lists the monitored resources that are members of a group. | 410 * Lists the monitored resources that are members of a group. |
| 416 * | 411 * |
| 417 * Request parameters: | 412 * Request parameters: |
| 418 * | 413 * |
| 419 * [name] - The group whose members are listed. The format is | 414 * [name] - The group whose members are listed. The format is |
| 420 * `"projects/{project_id_or_number}/groups/{group_id}"`. | 415 * "projects/{project_id_or_number}/groups/{group_id}". |
| 421 * Value must have pattern "^projects/[^/] * / groups/[^/]*$". | 416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
| 417 * |
| 418 * [filter] - An optional list filter (/monitoring/api/learn_more#filtering) |
| 419 * describing the members to be returned. The filter may reference the type, |
| 420 * labels, and metadata of monitored resources that comprise the group. For |
| 421 * example, to return only resources representing Compute Engine VM instances, |
| 422 * use this filter: |
| 423 * resource.type = "gce_instance" |
| 424 * |
| 425 * [interval_endTime] - Required. The end of the time interval. |
| 426 * |
| 427 * [interval_startTime] - Optional. The beginning of the time interval. The |
| 428 * default value for the start time is the end time. The start time must not |
| 429 * be later than the end time. |
| 422 * | 430 * |
| 423 * [pageSize] - A positive number that is the maximum number of results to | 431 * [pageSize] - A positive number that is the maximum number of results to |
| 424 * return. | 432 * return. |
| 425 * | 433 * |
| 426 * [pageToken] - If this field is not empty then it must contain the | 434 * [pageToken] - If this field is not empty then it must contain the |
| 427 * `nextPageToken` value returned by a previous call to this method. Using | 435 * nextPageToken value returned by a previous call to this method. Using this |
| 428 * this field causes the method to return additional results from the previous | 436 * field causes the method to return additional results from the previous |
| 429 * method call. | 437 * method call. |
| 430 * | 438 * |
| 431 * [filter] - An optional [list filter](/monitoring/api/learn_more#filtering) | |
| 432 * describing the members to be returned. The filter may reference the type, | |
| 433 * labels, and metadata of monitored resources that comprise the group. For | |
| 434 * example, to return only resources representing Compute Engine VM instances, | |
| 435 * use this filter: resource.type = "gce_instance" | |
| 436 * | |
| 437 * [interval_endTime] - Required. The end of the interval. The interval | |
| 438 * includes this time. | |
| 439 * | |
| 440 * [interval_startTime] - If this value is omitted, the interval is a point in | |
| 441 * time, `endTime`. If `startTime` is present, it must be earlier than (less | |
| 442 * than) `endTime`. The interval begins after `startTime`—it does not include | |
| 443 * `startTime`. | |
| 444 * | |
| 445 * Completes with a [ListGroupMembersResponse]. | 439 * Completes with a [ListGroupMembersResponse]. |
| 446 * | 440 * |
| 447 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 441 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 448 * error. | 442 * error. |
| 449 * | 443 * |
| 450 * If the used [http.Client] completes with an error when making a REST call, | 444 * If the used [http.Client] completes with an error when making a REST call, |
| 451 * this method will complete with the same error. | 445 * this method will complete with the same error. |
| 452 */ | 446 */ |
| 453 async.Future<ListGroupMembersResponse> list(core.String name, {core.int pageSi
ze, core.String pageToken, core.String filter, core.String interval_endTime, cor
e.String interval_startTime}) { | 447 async.Future<ListGroupMembersResponse> list(core.String name, {core.String fil
ter, core.String interval_endTime, core.String interval_startTime, core.int page
Size, core.String pageToken}) { |
| 454 var _url = null; | 448 var _url = null; |
| 455 var _queryParams = new core.Map(); | 449 var _queryParams = new core.Map(); |
| 456 var _uploadMedia = null; | 450 var _uploadMedia = null; |
| 457 var _uploadOptions = null; | 451 var _uploadOptions = null; |
| 458 var _downloadOptions = commons.DownloadOptions.Metadata; | 452 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 459 var _body = null; | 453 var _body = null; |
| 460 | 454 |
| 461 if (name == null) { | 455 if (name == null) { |
| 462 throw new core.ArgumentError("Parameter name is required."); | 456 throw new core.ArgumentError("Parameter name is required."); |
| 463 } | 457 } |
| 464 if (pageSize != null) { | |
| 465 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 466 } | |
| 467 if (pageToken != null) { | |
| 468 _queryParams["pageToken"] = [pageToken]; | |
| 469 } | |
| 470 if (filter != null) { | 458 if (filter != null) { |
| 471 _queryParams["filter"] = [filter]; | 459 _queryParams["filter"] = [filter]; |
| 472 } | 460 } |
| 473 if (interval_endTime != null) { | 461 if (interval_endTime != null) { |
| 474 _queryParams["interval.endTime"] = [interval_endTime]; | 462 _queryParams["interval.endTime"] = [interval_endTime]; |
| 475 } | 463 } |
| 476 if (interval_startTime != null) { | 464 if (interval_startTime != null) { |
| 477 _queryParams["interval.startTime"] = [interval_startTime]; | 465 _queryParams["interval.startTime"] = [interval_startTime]; |
| 478 } | 466 } |
| 467 if (pageSize != null) { |
| 468 _queryParams["pageSize"] = ["${pageSize}"]; |
| 469 } |
| 470 if (pageToken != null) { |
| 471 _queryParams["pageToken"] = [pageToken]; |
| 472 } |
| 479 | 473 |
| 480 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; | 474 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; |
| 481 | 475 |
| 482 var _response = _requester.request(_url, | 476 var _response = _requester.request(_url, |
| 483 "GET", | 477 "GET", |
| 484 body: _body, | 478 body: _body, |
| 485 queryParams: _queryParams, | 479 queryParams: _queryParams, |
| 486 uploadOptions: _uploadOptions, | 480 uploadOptions: _uploadOptions, |
| 487 uploadMedia: _uploadMedia, | 481 uploadMedia: _uploadMedia, |
| 488 downloadOptions: _downloadOptions); | 482 downloadOptions: _downloadOptions); |
| 489 return _response.then((data) => new ListGroupMembersResponse.fromJson(data))
; | 483 return _response.then((data) => new ListGroupMembersResponse.fromJson(data))
; |
| 490 } | 484 } |
| 491 | 485 |
| 492 } | 486 } |
| 493 | 487 |
| 494 | 488 |
| 495 class ProjectsMetricDescriptorsResourceApi { | 489 class ProjectsMetricDescriptorsResourceApi { |
| 496 final commons.ApiRequester _requester; | 490 final commons.ApiRequester _requester; |
| 497 | 491 |
| 498 ProjectsMetricDescriptorsResourceApi(commons.ApiRequester client) : | 492 ProjectsMetricDescriptorsResourceApi(commons.ApiRequester client) : |
| 499 _requester = client; | 493 _requester = client; |
| 500 | 494 |
| 501 /** | 495 /** |
| 502 * Creates a new metric descriptor. User-created metric descriptors define | 496 * Creates a new metric descriptor. User-created metric descriptors define |
| 503 * [custom metrics](/monitoring/custom-metrics). | 497 * custom metrics (/monitoring/custom-metrics). |
| 504 * | 498 * |
| 505 * [request] - The metadata request object. | 499 * [request] - The metadata request object. |
| 506 * | 500 * |
| 507 * Request parameters: | 501 * Request parameters: |
| 508 * | 502 * |
| 509 * [name] - The project on which to execute the request. The format is | 503 * [name] - The project on which to execute the request. The format is |
| 510 * `"projects/{project_id_or_number}"`. | 504 * "projects/{project_id_or_number}". |
| 511 * Value must have pattern "^projects/[^/]*$". | 505 * Value must have pattern "^projects/[^/]+$". |
| 512 * | 506 * |
| 513 * Completes with a [MetricDescriptor]. | 507 * Completes with a [MetricDescriptor]. |
| 514 * | 508 * |
| 515 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 509 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 516 * error. | 510 * error. |
| 517 * | 511 * |
| 518 * If the used [http.Client] completes with an error when making a REST call, | 512 * If the used [http.Client] completes with an error when making a REST call, |
| 519 * this method will complete with the same error. | 513 * this method will complete with the same error. |
| 520 */ | 514 */ |
| 521 async.Future<MetricDescriptor> create(MetricDescriptor request, core.String na
me) { | 515 async.Future<MetricDescriptor> create(MetricDescriptor request, core.String na
me) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 539 "POST", | 533 "POST", |
| 540 body: _body, | 534 body: _body, |
| 541 queryParams: _queryParams, | 535 queryParams: _queryParams, |
| 542 uploadOptions: _uploadOptions, | 536 uploadOptions: _uploadOptions, |
| 543 uploadMedia: _uploadMedia, | 537 uploadMedia: _uploadMedia, |
| 544 downloadOptions: _downloadOptions); | 538 downloadOptions: _downloadOptions); |
| 545 return _response.then((data) => new MetricDescriptor.fromJson(data)); | 539 return _response.then((data) => new MetricDescriptor.fromJson(data)); |
| 546 } | 540 } |
| 547 | 541 |
| 548 /** | 542 /** |
| 549 * Deletes a metric descriptor. Only user-created [custom | 543 * Deletes a metric descriptor. Only user-created custom metrics |
| 550 * metrics](/monitoring/custom-metrics) can be deleted. | 544 * (/monitoring/custom-metrics) can be deleted. |
| 551 * | 545 * |
| 552 * Request parameters: | 546 * Request parameters: |
| 553 * | 547 * |
| 554 * [name] - The metric descriptor on which to execute the request. The format | 548 * [name] - The metric descriptor on which to execute the request. The format |
| 555 * is `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An | 549 * is |
| 556 * example of `{metric_id}` is: `"custom.googleapis.com/my_test_metric"`. | 550 * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". |
| 557 * Value must have pattern "^projects/[^/] * / metricDescriptors/.*$". | 551 * An example of {metric_id} is: |
| 552 * "custom.googleapis.com/my_test_metric". |
| 553 * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". |
| 558 * | 554 * |
| 559 * Completes with a [Empty]. | 555 * Completes with a [Empty]. |
| 560 * | 556 * |
| 561 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 557 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 562 * error. | 558 * error. |
| 563 * | 559 * |
| 564 * If the used [http.Client] completes with an error when making a REST call, | 560 * If the used [http.Client] completes with an error when making a REST call, |
| 565 * this method will complete with the same error. | 561 * this method will complete with the same error. |
| 566 */ | 562 */ |
| 567 async.Future<Empty> delete(core.String name) { | 563 async.Future<Empty> delete(core.String name) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 588 return _response.then((data) => new Empty.fromJson(data)); | 584 return _response.then((data) => new Empty.fromJson(data)); |
| 589 } | 585 } |
| 590 | 586 |
| 591 /** | 587 /** |
| 592 * Gets a single metric descriptor. This method does not require a Stackdriver | 588 * Gets a single metric descriptor. This method does not require a Stackdriver |
| 593 * account. | 589 * account. |
| 594 * | 590 * |
| 595 * Request parameters: | 591 * Request parameters: |
| 596 * | 592 * |
| 597 * [name] - The metric descriptor on which to execute the request. The format | 593 * [name] - The metric descriptor on which to execute the request. The format |
| 598 * is `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An | 594 * is |
| 599 * example value of `{metric_id}` is | 595 * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". |
| 600 * `"compute.googleapis.com/instance/disk/read_bytes_count"`. | 596 * An example value of {metric_id} is |
| 601 * Value must have pattern "^projects/[^/] * / metricDescriptors/.*$". | 597 * "compute.googleapis.com/instance/disk/read_bytes_count". |
| 598 * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". |
| 602 * | 599 * |
| 603 * Completes with a [MetricDescriptor]. | 600 * Completes with a [MetricDescriptor]. |
| 604 * | 601 * |
| 605 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 602 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 606 * error. | 603 * error. |
| 607 * | 604 * |
| 608 * If the used [http.Client] completes with an error when making a REST call, | 605 * If the used [http.Client] completes with an error when making a REST call, |
| 609 * this method will complete with the same error. | 606 * this method will complete with the same error. |
| 610 */ | 607 */ |
| 611 async.Future<MetricDescriptor> get(core.String name) { | 608 async.Future<MetricDescriptor> get(core.String name) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 632 return _response.then((data) => new MetricDescriptor.fromJson(data)); | 629 return _response.then((data) => new MetricDescriptor.fromJson(data)); |
| 633 } | 630 } |
| 634 | 631 |
| 635 /** | 632 /** |
| 636 * Lists metric descriptors that match a filter. This method does not require | 633 * Lists metric descriptors that match a filter. This method does not require |
| 637 * a Stackdriver account. | 634 * a Stackdriver account. |
| 638 * | 635 * |
| 639 * Request parameters: | 636 * Request parameters: |
| 640 * | 637 * |
| 641 * [name] - The project on which to execute the request. The format is | 638 * [name] - The project on which to execute the request. The format is |
| 642 * `"projects/{project_id_or_number}"`. | 639 * "projects/{project_id_or_number}". |
| 643 * Value must have pattern "^projects/[^/]*$". | 640 * Value must have pattern "^projects/[^/]+$". |
| 644 * | |
| 645 * [filter] - If this field is empty, all custom and system-defined metric | |
| 646 * descriptors are returned. Otherwise, the | |
| 647 * [filter](/monitoring/api/v3/filters) specifies which metric descriptors are | |
| 648 * to be returned. For example, the following filter matches all [custom | |
| 649 * metrics](/monitoring/custom-metrics): metric.type = | |
| 650 * starts_with("custom.googleapis.com/") | |
| 651 * | 641 * |
| 652 * [pageSize] - A positive number that is the maximum number of results to | 642 * [pageSize] - A positive number that is the maximum number of results to |
| 653 * return. | 643 * return. |
| 654 * | 644 * |
| 645 * [filter] - If this field is empty, all custom and system-defined metric |
| 646 * descriptors are returned. Otherwise, the filter |
| 647 * (/monitoring/api/v3/filters) specifies which metric descriptors are to be |
| 648 * returned. For example, the following filter matches all custom metrics |
| 649 * (/monitoring/custom-metrics): |
| 650 * metric.type = starts_with("custom.googleapis.com/") |
| 651 * |
| 655 * [pageToken] - If this field is not empty then it must contain the | 652 * [pageToken] - If this field is not empty then it must contain the |
| 656 * `nextPageToken` value returned by a previous call to this method. Using | 653 * nextPageToken value returned by a previous call to this method. Using this |
| 657 * this field causes the method to return additional results from the previous | 654 * field causes the method to return additional results from the previous |
| 658 * method call. | 655 * method call. |
| 659 * | 656 * |
| 660 * Completes with a [ListMetricDescriptorsResponse]. | 657 * Completes with a [ListMetricDescriptorsResponse]. |
| 661 * | 658 * |
| 662 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 659 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 663 * error. | 660 * error. |
| 664 * | 661 * |
| 665 * If the used [http.Client] completes with an error when making a REST call, | 662 * If the used [http.Client] completes with an error when making a REST call, |
| 666 * this method will complete with the same error. | 663 * this method will complete with the same error. |
| 667 */ | 664 */ |
| 668 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.Strin
g filter, core.int pageSize, core.String pageToken}) { | 665 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.int p
ageSize, core.String filter, core.String pageToken}) { |
| 669 var _url = null; | 666 var _url = null; |
| 670 var _queryParams = new core.Map(); | 667 var _queryParams = new core.Map(); |
| 671 var _uploadMedia = null; | 668 var _uploadMedia = null; |
| 672 var _uploadOptions = null; | 669 var _uploadOptions = null; |
| 673 var _downloadOptions = commons.DownloadOptions.Metadata; | 670 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 674 var _body = null; | 671 var _body = null; |
| 675 | 672 |
| 676 if (name == null) { | 673 if (name == null) { |
| 677 throw new core.ArgumentError("Parameter name is required."); | 674 throw new core.ArgumentError("Parameter name is required."); |
| 678 } | 675 } |
| 676 if (pageSize != null) { |
| 677 _queryParams["pageSize"] = ["${pageSize}"]; |
| 678 } |
| 679 if (filter != null) { | 679 if (filter != null) { |
| 680 _queryParams["filter"] = [filter]; | 680 _queryParams["filter"] = [filter]; |
| 681 } | 681 } |
| 682 if (pageSize != null) { | |
| 683 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 684 } | |
| 685 if (pageToken != null) { | 682 if (pageToken != null) { |
| 686 _queryParams["pageToken"] = [pageToken]; | 683 _queryParams["pageToken"] = [pageToken]; |
| 687 } | 684 } |
| 688 | 685 |
| 689 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc
riptors'; | 686 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc
riptors'; |
| 690 | 687 |
| 691 var _response = _requester.request(_url, | 688 var _response = _requester.request(_url, |
| 692 "GET", | 689 "GET", |
| 693 body: _body, | 690 body: _body, |
| 694 queryParams: _queryParams, | 691 queryParams: _queryParams, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 707 ProjectsMonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
| 704 ProjectsMonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
|
| 708 _requester = client; | 705 _requester = client; |
| 709 | 706 |
| 710 /** | 707 /** |
| 711 * Gets a single monitored resource descriptor. This method does not require a | 708 * Gets a single monitored resource descriptor. This method does not require a |
| 712 * Stackdriver account. | 709 * Stackdriver account. |
| 713 * | 710 * |
| 714 * Request parameters: | 711 * Request parameters: |
| 715 * | 712 * |
| 716 * [name] - The monitored resource descriptor to get. The format is | 713 * [name] - The monitored resource descriptor to get. The format is |
| 717 * `"projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_ty
pe}"`. | 714 * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resourc
e_type}". |
| 718 * The `{resource_type}` is a predefined type, such as `cloudsql_database`. | 715 * The {resource_type} is a predefined type, such as cloudsql_database. |
| 719 * Value must have pattern "^projects/[^/] * / | 716 * Value must have pattern |
| 720 * monitoredResourceDescriptors/[^/]*$". | 717 * "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$". |
| 721 * | 718 * |
| 722 * Completes with a [MonitoredResourceDescriptor]. | 719 * Completes with a [MonitoredResourceDescriptor]. |
| 723 * | 720 * |
| 724 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 721 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 725 * error. | 722 * error. |
| 726 * | 723 * |
| 727 * If the used [http.Client] completes with an error when making a REST call, | 724 * If the used [http.Client] completes with an error when making a REST call, |
| 728 * this method will complete with the same error. | 725 * this method will complete with the same error. |
| 729 */ | 726 */ |
| 730 async.Future<MonitoredResourceDescriptor> get(core.String name) { | 727 async.Future<MonitoredResourceDescriptor> get(core.String name) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 751 return _response.then((data) => new MonitoredResourceDescriptor.fromJson(dat
a)); | 748 return _response.then((data) => new MonitoredResourceDescriptor.fromJson(dat
a)); |
| 752 } | 749 } |
| 753 | 750 |
| 754 /** | 751 /** |
| 755 * Lists monitored resource descriptors that match a filter. This method does | 752 * Lists monitored resource descriptors that match a filter. This method does |
| 756 * not require a Stackdriver account. | 753 * not require a Stackdriver account. |
| 757 * | 754 * |
| 758 * Request parameters: | 755 * Request parameters: |
| 759 * | 756 * |
| 760 * [name] - The project on which to execute the request. The format is | 757 * [name] - The project on which to execute the request. The format is |
| 761 * `"projects/{project_id_or_number}"`. | 758 * "projects/{project_id_or_number}". |
| 762 * Value must have pattern "^projects/[^/]*$". | 759 * Value must have pattern "^projects/[^/]+$". |
| 763 * | |
| 764 * [filter] - An optional [filter](/monitoring/api/v3/filters) describing the | |
| 765 * descriptors to be returned. The filter can reference the descriptor's type | |
| 766 * and labels. For example, the following filter returns only Google Compute | |
| 767 * Engine descriptors that have an `id` label: resource.type = | |
| 768 * starts_with("gce_") AND resource.label:id | |
| 769 * | 760 * |
| 770 * [pageSize] - A positive number that is the maximum number of results to | 761 * [pageSize] - A positive number that is the maximum number of results to |
| 771 * return. | 762 * return. |
| 772 * | 763 * |
| 764 * [filter] - An optional filter (/monitoring/api/v3/filters) describing the |
| 765 * descriptors to be returned. The filter can reference the descriptor's type |
| 766 * and labels. For example, the following filter returns only Google Compute |
| 767 * Engine descriptors that have an id label: |
| 768 * resource.type = starts_with("gce_") AND resource.label:id |
| 769 * |
| 773 * [pageToken] - If this field is not empty then it must contain the | 770 * [pageToken] - If this field is not empty then it must contain the |
| 774 * `nextPageToken` value returned by a previous call to this method. Using | 771 * nextPageToken value returned by a previous call to this method. Using this |
| 775 * this field causes the method to return additional results from the previous | 772 * field causes the method to return additional results from the previous |
| 776 * method call. | 773 * method call. |
| 777 * | 774 * |
| 778 * Completes with a [ListMonitoredResourceDescriptorsResponse]. | 775 * Completes with a [ListMonitoredResourceDescriptorsResponse]. |
| 779 * | 776 * |
| 780 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 777 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 781 * error. | 778 * error. |
| 782 * | 779 * |
| 783 * If the used [http.Client] completes with an error when making a REST call, | 780 * If the used [http.Client] completes with an error when making a REST call, |
| 784 * this method will complete with the same error. | 781 * this method will complete with the same error. |
| 785 */ | 782 */ |
| 786 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name,
{core.String filter, core.int pageSize, core.String pageToken}) { | 783 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name,
{core.int pageSize, core.String filter, core.String pageToken}) { |
| 787 var _url = null; | 784 var _url = null; |
| 788 var _queryParams = new core.Map(); | 785 var _queryParams = new core.Map(); |
| 789 var _uploadMedia = null; | 786 var _uploadMedia = null; |
| 790 var _uploadOptions = null; | 787 var _uploadOptions = null; |
| 791 var _downloadOptions = commons.DownloadOptions.Metadata; | 788 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 792 var _body = null; | 789 var _body = null; |
| 793 | 790 |
| 794 if (name == null) { | 791 if (name == null) { |
| 795 throw new core.ArgumentError("Parameter name is required."); | 792 throw new core.ArgumentError("Parameter name is required."); |
| 796 } | 793 } |
| 794 if (pageSize != null) { |
| 795 _queryParams["pageSize"] = ["${pageSize}"]; |
| 796 } |
| 797 if (filter != null) { | 797 if (filter != null) { |
| 798 _queryParams["filter"] = [filter]; | 798 _queryParams["filter"] = [filter]; |
| 799 } | 799 } |
| 800 if (pageSize != null) { | |
| 801 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 802 } | |
| 803 if (pageToken != null) { | 800 if (pageToken != null) { |
| 804 _queryParams["pageToken"] = [pageToken]; | 801 _queryParams["pageToken"] = [pageToken]; |
| 805 } | 802 } |
| 806 | 803 |
| 807 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR
esourceDescriptors'; | 804 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR
esourceDescriptors'; |
| 808 | 805 |
| 809 var _response = _requester.request(_url, | 806 var _response = _requester.request(_url, |
| 810 "GET", | 807 "GET", |
| 811 body: _body, | 808 body: _body, |
| 812 queryParams: _queryParams, | 809 queryParams: _queryParams, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 829 * Creates or adds data to one or more time series. The response is empty if | 826 * Creates or adds data to one or more time series. The response is empty if |
| 830 * all time series in the request were written. If any time series could not | 827 * all time series in the request were written. If any time series could not |
| 831 * be written, a corresponding failure message is included in the error | 828 * be written, a corresponding failure message is included in the error |
| 832 * response. | 829 * response. |
| 833 * | 830 * |
| 834 * [request] - The metadata request object. | 831 * [request] - The metadata request object. |
| 835 * | 832 * |
| 836 * Request parameters: | 833 * Request parameters: |
| 837 * | 834 * |
| 838 * [name] - The project on which to execute the request. The format is | 835 * [name] - The project on which to execute the request. The format is |
| 839 * `"projects/{project_id_or_number}"`. | 836 * "projects/{project_id_or_number}". |
| 840 * Value must have pattern "^projects/[^/]*$". | 837 * Value must have pattern "^projects/[^/]+$". |
| 841 * | 838 * |
| 842 * Completes with a [Empty]. | 839 * Completes with a [Empty]. |
| 843 * | 840 * |
| 844 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 841 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 845 * error. | 842 * error. |
| 846 * | 843 * |
| 847 * If the used [http.Client] completes with an error when making a REST call, | 844 * If the used [http.Client] completes with an error when making a REST call, |
| 848 * this method will complete with the same error. | 845 * this method will complete with the same error. |
| 849 */ | 846 */ |
| 850 async.Future<Empty> create(CreateTimeSeriesRequest request, core.String name)
{ | 847 async.Future<Empty> create(CreateTimeSeriesRequest request, core.String name)
{ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 875 } | 872 } |
| 876 | 873 |
| 877 /** | 874 /** |
| 878 * Lists time series that match a filter. This method does not require a | 875 * Lists time series that match a filter. This method does not require a |
| 879 * Stackdriver account. | 876 * Stackdriver account. |
| 880 * | 877 * |
| 881 * Request parameters: | 878 * Request parameters: |
| 882 * | 879 * |
| 883 * [name] - The project on which to execute the request. The format is | 880 * [name] - The project on which to execute the request. The format is |
| 884 * "projects/{project_id_or_number}". | 881 * "projects/{project_id_or_number}". |
| 885 * Value must have pattern "^projects/[^/]*$". | 882 * Value must have pattern "^projects/[^/]+$". |
| 886 * | 883 * |
| 887 * [filter] - A [monitoring filter](/monitoring/api/v3/filters) that specifies | 884 * [filter] - A monitoring filter (/monitoring/api/v3/filters) that specifies |
| 888 * which time series should be returned. The filter must specify a single | 885 * which time series should be returned. The filter must specify a single |
| 889 * metric type, and can additionally specify metric labels and other | 886 * metric type, and can additionally specify metric labels and other |
| 890 * information. For example: metric.type = | 887 * information. For example: |
| 891 * "compute.googleapis.com/instance/cpu/usage_time" AND | 888 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" |
| 892 * metric.label.instance_name = "my-instance-name" | 889 * AND |
| 890 * metric.label.instance_name = "my-instance-name" |
| 893 * | 891 * |
| 894 * [interval_endTime] - Required. The end of the interval. The interval | 892 * [aggregation_groupByFields] - The set of fields to preserve when |
| 895 * includes this time. | 893 * crossSeriesReducer is specified. The groupByFields determine how the time |
| 896 * | 894 * series are partitioned into subsets prior to applying the aggregation |
| 897 * [interval_startTime] - If this value is omitted, the interval is a point in | 895 * function. Each subset contains time series that have the same value for |
| 898 * time, `endTime`. If `startTime` is present, it must be earlier than (less | 896 * each of the grouping fields. Each individual time series is a member of |
| 899 * than) `endTime`. The interval begins after `startTime`—it does not include | 897 * exactly one subset. The crossSeriesReducer is applied to each subset of |
| 900 * `startTime`. | 898 * time series. Fields not specified in groupByFields are aggregated away. If |
| 901 * | 899 * groupByFields is not specified, the time series are aggregated into a |
| 902 * [aggregation_alignmentPeriod] - The alignment period for per-[time | 900 * single output time series. If crossSeriesReducer is not defined, this field |
| 903 * series](TimeSeries) alignment. If present, `alignmentPeriod` must be at | 901 * is ignored. |
| 904 * least 60 seconds. After per-time series alignment, each time series will | |
| 905 * contain data points only on the period boundaries. If `perSeriesAligner` is | |
| 906 * not specified or equals `ALIGN_NONE`, then this field is ignored. If | |
| 907 * `perSeriesAligner` is specified and does not equal `ALIGN_NONE`, then this | |
| 908 * field must be defined; otherwise an error is returned. | |
| 909 * | |
| 910 * [aggregation_perSeriesAligner] - The approach to be used to align | |
| 911 * individual time series. Not all alignment functions may be applied to all | |
| 912 * time series, depending on the metric type and value type of the original | |
| 913 * time series. Alignment may change the metric type or the value type of the | |
| 914 * time series. Time series data must be aligned in order to perform | |
| 915 * cross-time series reduction. If `crossSeriesReducer` is specified, then | |
| 916 * `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and | |
| 917 * `alignmentPeriod` must be specified; otherwise, an error is returned. | |
| 918 * Possible string values are: | |
| 919 * - "ALIGN_NONE" : A ALIGN_NONE. | |
| 920 * - "ALIGN_DELTA" : A ALIGN_DELTA. | |
| 921 * - "ALIGN_RATE" : A ALIGN_RATE. | |
| 922 * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE. | |
| 923 * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER. | |
| 924 * - "ALIGN_MIN" : A ALIGN_MIN. | |
| 925 * - "ALIGN_MAX" : A ALIGN_MAX. | |
| 926 * - "ALIGN_MEAN" : A ALIGN_MEAN. | |
| 927 * - "ALIGN_COUNT" : A ALIGN_COUNT. | |
| 928 * - "ALIGN_SUM" : A ALIGN_SUM. | |
| 929 * - "ALIGN_STDDEV" : A ALIGN_STDDEV. | |
| 930 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. | |
| 931 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. | |
| 932 * | 902 * |
| 933 * [aggregation_crossSeriesReducer] - The approach to be used to combine time | 903 * [aggregation_crossSeriesReducer] - The approach to be used to combine time |
| 934 * series. Not all reducer functions may be applied to all time series, | 904 * series. Not all reducer functions may be applied to all time series, |
| 935 * depending on the metric type and the value type of the original time | 905 * depending on the metric type and the value type of the original time |
| 936 * series. Reduction may change the metric type of value type of the time | 906 * series. Reduction may change the metric type of value type of the time |
| 937 * series. Time series data must be aligned in order to perform cross-time | 907 * series.Time series data must be aligned in order to perform cross-time |
| 938 * series reduction. If `crossSeriesReducer` is specified, then | 908 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner |
| 939 * `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and | 909 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be |
| 940 * `alignmentPeriod` must be specified; otherwise, an error is returned. | 910 * specified; otherwise, an error is returned. |
| 941 * Possible string values are: | 911 * Possible string values are: |
| 942 * - "REDUCE_NONE" : A REDUCE_NONE. | 912 * - "REDUCE_NONE" : A REDUCE_NONE. |
| 943 * - "REDUCE_MEAN" : A REDUCE_MEAN. | 913 * - "REDUCE_MEAN" : A REDUCE_MEAN. |
| 944 * - "REDUCE_MIN" : A REDUCE_MIN. | 914 * - "REDUCE_MIN" : A REDUCE_MIN. |
| 945 * - "REDUCE_MAX" : A REDUCE_MAX. | 915 * - "REDUCE_MAX" : A REDUCE_MAX. |
| 946 * - "REDUCE_SUM" : A REDUCE_SUM. | 916 * - "REDUCE_SUM" : A REDUCE_SUM. |
| 947 * - "REDUCE_STDDEV" : A REDUCE_STDDEV. | 917 * - "REDUCE_STDDEV" : A REDUCE_STDDEV. |
| 948 * - "REDUCE_COUNT" : A REDUCE_COUNT. | 918 * - "REDUCE_COUNT" : A REDUCE_COUNT. |
| 949 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE. | 919 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE. |
| 950 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE. | 920 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE. |
| 951 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99. | 921 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99. |
| 952 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. | 922 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. |
| 953 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. | 923 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. |
| 954 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. | 924 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. |
| 955 * | 925 * |
| 956 * [aggregation_groupByFields] - The set of fields to preserve when | 926 * [interval_endTime] - Required. The end of the time interval. |
| 957 * `crossSeriesReducer` is specified. The `groupByFields` determine how the | |
| 958 * time series are partitioned into subsets prior to applying the aggregation | |
| 959 * function. Each subset contains time series that have the same value for | |
| 960 * each of the grouping fields. Each individual time series is a member of | |
| 961 * exactly one subset. The `crossSeriesReducer` is applied to each subset of | |
| 962 * time series. Fields not specified in `groupByFields` are aggregated away. | |
| 963 * If `groupByFields` is not specified, the time series are aggregated into a | |
| 964 * single output time series. If `crossSeriesReducer` is not defined, this | |
| 965 * field is ignored. | |
| 966 * | 927 * |
| 967 * [orderBy] - Specifies the order in which the points of the time series | 928 * [interval_startTime] - Optional. The beginning of the time interval. The |
| 968 * should be returned. By default, results are not ordered. Currently, this | 929 * default value for the start time is the end time. The start time must not |
| 969 * field must be left blank. | 930 * be later than the end time. |
| 931 * |
| 932 * [pageSize] - A positive number that is the maximum number of results to |
| 933 * return. When view field sets to FULL, it limits the number of Points server |
| 934 * will return; if view field is HEADERS, it limits the number of TimeSeries |
| 935 * server will return. |
| 970 * | 936 * |
| 971 * [view] - Specifies which information is returned about the time series. | 937 * [view] - Specifies which information is returned about the time series. |
| 972 * Possible string values are: | 938 * Possible string values are: |
| 973 * - "FULL" : A FULL. | 939 * - "FULL" : A FULL. |
| 974 * - "HEADERS" : A HEADERS. | 940 * - "HEADERS" : A HEADERS. |
| 975 * | 941 * |
| 976 * [pageSize] - A positive number that is the maximum number of results to | 942 * [aggregation_alignmentPeriod] - The alignment period for per-time series |
| 977 * return. When `view` field sets to `FULL`, it limits the number of `Points` | 943 * alignment. If present, alignmentPeriod must be at least 60 seconds. After |
| 978 * server will return; if `view` field is `HEADERS`, it limits the number of | 944 * per-time series alignment, each time series will contain data points only |
| 979 * `TimeSeries` server will return. | 945 * on the period boundaries. If perSeriesAligner is not specified or equals |
| 946 * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified |
| 947 * and does not equal ALIGN_NONE, then this field must be defined; otherwise |
| 948 * an error is returned. |
| 949 * |
| 950 * [aggregation_perSeriesAligner] - The approach to be used to align |
| 951 * individual time series. Not all alignment functions may be applied to all |
| 952 * time series, depending on the metric type and value type of the original |
| 953 * time series. Alignment may change the metric type or the value type of the |
| 954 * time series.Time series data must be aligned in order to perform cross-time |
| 955 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner |
| 956 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be |
| 957 * specified; otherwise, an error is returned. |
| 958 * Possible string values are: |
| 959 * - "ALIGN_NONE" : A ALIGN_NONE. |
| 960 * - "ALIGN_DELTA" : A ALIGN_DELTA. |
| 961 * - "ALIGN_RATE" : A ALIGN_RATE. |
| 962 * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE. |
| 963 * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER. |
| 964 * - "ALIGN_MIN" : A ALIGN_MIN. |
| 965 * - "ALIGN_MAX" : A ALIGN_MAX. |
| 966 * - "ALIGN_MEAN" : A ALIGN_MEAN. |
| 967 * - "ALIGN_COUNT" : A ALIGN_COUNT. |
| 968 * - "ALIGN_SUM" : A ALIGN_SUM. |
| 969 * - "ALIGN_STDDEV" : A ALIGN_STDDEV. |
| 970 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. |
| 971 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. |
| 972 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99. |
| 973 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. |
| 974 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. |
| 975 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. |
| 976 * |
| 977 * [orderBy] - Specifies the order in which the points of the time series |
| 978 * should be returned. By default, results are not ordered. Currently, this |
| 979 * field must be left blank. |
| 980 * | 980 * |
| 981 * [pageToken] - If this field is not empty then it must contain the | 981 * [pageToken] - If this field is not empty then it must contain the |
| 982 * `nextPageToken` value returned by a previous call to this method. Using | 982 * nextPageToken value returned by a previous call to this method. Using this |
| 983 * this field causes the method to return additional results from the previous | 983 * field causes the method to return additional results from the previous |
| 984 * method call. | 984 * method call. |
| 985 * | 985 * |
| 986 * Completes with a [ListTimeSeriesResponse]. | 986 * Completes with a [ListTimeSeriesResponse]. |
| 987 * | 987 * |
| 988 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 988 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 989 * error. | 989 * error. |
| 990 * | 990 * |
| 991 * If the used [http.Client] completes with an error when making a REST call, | 991 * If the used [http.Client] completes with an error when making a REST call, |
| 992 * this method will complete with the same error. | 992 * this method will complete with the same error. |
| 993 */ | 993 */ |
| 994 async.Future<ListTimeSeriesResponse> list(core.String name, {core.String filte
r, core.String interval_endTime, core.String interval_startTime, core.String agg
regation_alignmentPeriod, core.String aggregation_perSeriesAligner, core.String
aggregation_crossSeriesReducer, core.List<core.String> aggregation_groupByFields
, core.String orderBy, core.String view, core.int pageSize, core.String pageToke
n}) { | 994 async.Future<ListTimeSeriesResponse> list(core.String name, {core.String filte
r, core.List<core.String> aggregation_groupByFields, core.String aggregation_cro
ssSeriesReducer, core.String interval_endTime, core.String interval_startTime, c
ore.int pageSize, core.String view, core.String aggregation_alignmentPeriod, cor
e.String aggregation_perSeriesAligner, core.String orderBy, core.String pageToke
n}) { |
| 995 var _url = null; | 995 var _url = null; |
| 996 var _queryParams = new core.Map(); | 996 var _queryParams = new core.Map(); |
| 997 var _uploadMedia = null; | 997 var _uploadMedia = null; |
| 998 var _uploadOptions = null; | 998 var _uploadOptions = null; |
| 999 var _downloadOptions = commons.DownloadOptions.Metadata; | 999 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1000 var _body = null; | 1000 var _body = null; |
| 1001 | 1001 |
| 1002 if (name == null) { | 1002 if (name == null) { |
| 1003 throw new core.ArgumentError("Parameter name is required."); | 1003 throw new core.ArgumentError("Parameter name is required."); |
| 1004 } | 1004 } |
| 1005 if (filter != null) { | 1005 if (filter != null) { |
| 1006 _queryParams["filter"] = [filter]; | 1006 _queryParams["filter"] = [filter]; |
| 1007 } | 1007 } |
| 1008 if (aggregation_groupByFields != null) { |
| 1009 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; |
| 1010 } |
| 1011 if (aggregation_crossSeriesReducer != null) { |
| 1012 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; |
| 1013 } |
| 1008 if (interval_endTime != null) { | 1014 if (interval_endTime != null) { |
| 1009 _queryParams["interval.endTime"] = [interval_endTime]; | 1015 _queryParams["interval.endTime"] = [interval_endTime]; |
| 1010 } | 1016 } |
| 1011 if (interval_startTime != null) { | 1017 if (interval_startTime != null) { |
| 1012 _queryParams["interval.startTime"] = [interval_startTime]; | 1018 _queryParams["interval.startTime"] = [interval_startTime]; |
| 1013 } | 1019 } |
| 1020 if (pageSize != null) { |
| 1021 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1022 } |
| 1023 if (view != null) { |
| 1024 _queryParams["view"] = [view]; |
| 1025 } |
| 1014 if (aggregation_alignmentPeriod != null) { | 1026 if (aggregation_alignmentPeriod != null) { |
| 1015 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod
]; | 1027 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod
]; |
| 1016 } | 1028 } |
| 1017 if (aggregation_perSeriesAligner != null) { | 1029 if (aggregation_perSeriesAligner != null) { |
| 1018 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; | 1030 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; |
| 1019 } | 1031 } |
| 1020 if (aggregation_crossSeriesReducer != null) { | |
| 1021 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; | |
| 1022 } | |
| 1023 if (aggregation_groupByFields != null) { | |
| 1024 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; | |
| 1025 } | |
| 1026 if (orderBy != null) { | 1032 if (orderBy != null) { |
| 1027 _queryParams["orderBy"] = [orderBy]; | 1033 _queryParams["orderBy"] = [orderBy]; |
| 1028 } | 1034 } |
| 1029 if (view != null) { | |
| 1030 _queryParams["view"] = [view]; | |
| 1031 } | |
| 1032 if (pageSize != null) { | |
| 1033 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1034 } | |
| 1035 if (pageToken != null) { | 1035 if (pageToken != null) { |
| 1036 _queryParams["pageToken"] = [pageToken]; | 1036 _queryParams["pageToken"] = [pageToken]; |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries
'; | 1039 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries
'; |
| 1040 | 1040 |
| 1041 var _response = _requester.request(_url, | 1041 var _response = _requester.request(_url, |
| 1042 "GET", | 1042 "GET", |
| 1043 body: _body, | 1043 body: _body, |
| 1044 queryParams: _queryParams, | 1044 queryParams: _queryParams, |
| 1045 uploadOptions: _uploadOptions, | 1045 uploadOptions: _uploadOptions, |
| 1046 uploadMedia: _uploadMedia, | 1046 uploadMedia: _uploadMedia, |
| 1047 downloadOptions: _downloadOptions); | 1047 downloadOptions: _downloadOptions); |
| 1048 return _response.then((data) => new ListTimeSeriesResponse.fromJson(data)); | 1048 return _response.then((data) => new ListTimeSeriesResponse.fromJson(data)); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 | 1053 |
| 1054 | 1054 |
| 1055 /** | 1055 /** |
| 1056 * A Distribution may optionally contain a histogram of the values in the | 1056 * A Distribution may optionally contain a histogram of the values in the |
| 1057 * population. The histogram is given in `bucket_counts` as counts of values | 1057 * population. The histogram is given in bucket_counts as counts of values that |
| 1058 * that fall into one of a sequence of non-overlapping buckets. The sequence of | 1058 * fall into one of a sequence of non-overlapping buckets. The sequence of |
| 1059 * buckets is described by `bucket_options`. A bucket specifies an inclusive | 1059 * buckets is described by bucket_options.A bucket specifies an inclusive lower |
| 1060 * lower bound and exclusive upper bound for the values that are counted for | 1060 * bound and exclusive upper bound for the values that are counted for that |
| 1061 * that bucket. The upper bound of a bucket is strictly greater than the lower | 1061 * bucket. The upper bound of a bucket is strictly greater than the lower |
| 1062 * bound. The sequence of N buckets for a Distribution consists of an underflow | 1062 * bound.The sequence of N buckets for a Distribution consists of an underflow |
| 1063 * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and | 1063 * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and |
| 1064 * an overflow bucket (number N - 1). The buckets are contiguous: the lower | 1064 * an overflow bucket (number N - 1). The buckets are contiguous: the lower |
| 1065 * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The | 1065 * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. |
| 1066 * buckets span the whole range of finite values: lower bound of the underflow | 1066 * The buckets span the whole range of finite values: lower bound of the |
| 1067 * bucket is -infinity and the upper bound of the overflow bucket is +infinity. | 1067 * underflow bucket is -infinity and the upper bound of the overflow bucket is |
| 1068 * The finite buckets are so-called because both bounds are finite. | 1068 * +infinity. The finite buckets are so-called because both bounds are |
| 1069 * `BucketOptions` describes bucket boundaries in one of three ways. Two | 1069 * finite.BucketOptions describes bucket boundaries in one of three ways. Two |
| 1070 * describe the boundaries by giving parameters for a formula to generate | 1070 * describe the boundaries by giving parameters for a formula to generate |
| 1071 * boundaries and one gives the bucket boundaries explicitly. If | 1071 * boundaries and one gives the bucket boundaries explicitly.If bucket_options |
| 1072 * `bucket_boundaries` is not given, then no `bucket_counts` may be given. | 1072 * is not given, then no bucket_counts may be given. |
| 1073 */ | 1073 */ |
| 1074 class BucketOptions { | 1074 class BucketOptions { |
| 1075 /** The explicit buckets. */ | 1075 /** The explicit buckets. */ |
| 1076 Explicit explicitBuckets; | 1076 Explicit explicitBuckets; |
| 1077 /** The exponential buckets. */ | 1077 /** The exponential buckets. */ |
| 1078 Exponential exponentialBuckets; | 1078 Exponential exponentialBuckets; |
| 1079 /** The linear bucket. */ | 1079 /** The linear bucket. */ |
| 1080 Linear linearBuckets; | 1080 Linear linearBuckets; |
| 1081 | 1081 |
| 1082 BucketOptions(); | 1082 BucketOptions(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1102 _json["exponentialBuckets"] = (exponentialBuckets).toJson(); | 1102 _json["exponentialBuckets"] = (exponentialBuckets).toJson(); |
| 1103 } | 1103 } |
| 1104 if (linearBuckets != null) { | 1104 if (linearBuckets != null) { |
| 1105 _json["linearBuckets"] = (linearBuckets).toJson(); | 1105 _json["linearBuckets"] = (linearBuckets).toJson(); |
| 1106 } | 1106 } |
| 1107 return _json; | 1107 return _json; |
| 1108 } | 1108 } |
| 1109 } | 1109 } |
| 1110 | 1110 |
| 1111 /** | 1111 /** |
| 1112 * A collection of data points sent from a `collectd`-based plugin. See the | 1112 * A collection of data points sent from a collectd-based plugin. See the |
| 1113 * `collectd` documentation for more information. | 1113 * collectd documentation for more information. |
| 1114 */ | 1114 */ |
| 1115 class CollectdPayload { | 1115 class CollectdPayload { |
| 1116 /** The end time of the interval. */ | 1116 /** The end time of the interval. */ |
| 1117 core.String endTime; | 1117 core.String endTime; |
| 1118 /** The measurement metadata. Example: `"process_id" -> 12345` */ | 1118 /** The measurement metadata. Example: "process_id" -> 12345 */ |
| 1119 core.Map<core.String, TypedValue> metadata; | 1119 core.Map<core.String, TypedValue> metadata; |
| 1120 /** The name of the plugin. Example: `"disk"`. */ | 1120 /** The name of the plugin. Example: "disk". */ |
| 1121 core.String plugin; | 1121 core.String plugin; |
| 1122 /** The instance name of the plugin Example: `"hdcl"`. */ | 1122 /** The instance name of the plugin Example: "hdcl". */ |
| 1123 core.String pluginInstance; | 1123 core.String pluginInstance; |
| 1124 /** The start time of the interval. */ | 1124 /** The start time of the interval. */ |
| 1125 core.String startTime; | 1125 core.String startTime; |
| 1126 /** The measurement type. Example: `"memory"`. */ | 1126 /** The measurement type. Example: "memory". */ |
| 1127 core.String type; | 1127 core.String type; |
| 1128 /** The measurement type instance. Example: `"used"`. */ | 1128 /** The measurement type instance. Example: "used". */ |
| 1129 core.String typeInstance; | 1129 core.String typeInstance; |
| 1130 /** | 1130 /** |
| 1131 * The measured values during this time interval. Each value must have a | 1131 * The measured values during this time interval. Each value must have a |
| 1132 * different `dataSourceName`. | 1132 * different dataSourceName. |
| 1133 */ | 1133 */ |
| 1134 core.List<CollectdValue> values; | 1134 core.List<CollectdValue> values; |
| 1135 | 1135 |
| 1136 CollectdPayload(); | 1136 CollectdPayload(); |
| 1137 | 1137 |
| 1138 CollectdPayload.fromJson(core.Map _json) { | 1138 CollectdPayload.fromJson(core.Map _json) { |
| 1139 if (_json.containsKey("endTime")) { | 1139 if (_json.containsKey("endTime")) { |
| 1140 endTime = _json["endTime"]; | 1140 endTime = _json["endTime"]; |
| 1141 } | 1141 } |
| 1142 if (_json.containsKey("metadata")) { | 1142 if (_json.containsKey("metadata")) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 if (typeInstance != null) { | 1185 if (typeInstance != null) { |
| 1186 _json["typeInstance"] = typeInstance; | 1186 _json["typeInstance"] = typeInstance; |
| 1187 } | 1187 } |
| 1188 if (values != null) { | 1188 if (values != null) { |
| 1189 _json["values"] = values.map((value) => (value).toJson()).toList(); | 1189 _json["values"] = values.map((value) => (value).toJson()).toList(); |
| 1190 } | 1190 } |
| 1191 return _json; | 1191 return _json; |
| 1192 } | 1192 } |
| 1193 } | 1193 } |
| 1194 | 1194 |
| 1195 /** A single data point from a `collectd`-based plugin. */ | 1195 /** A single data point from a collectd-based plugin. */ |
| 1196 class CollectdValue { | 1196 class CollectdValue { |
| 1197 /** | 1197 /** |
| 1198 * The data source for the `collectd` value. For example there are two data | 1198 * The data source for the collectd value. For example there are two data |
| 1199 * sources for network measurements: `"rx"` and `"tx"`. | 1199 * sources for network measurements: "rx" and "tx". |
| 1200 */ | 1200 */ |
| 1201 core.String dataSourceName; | 1201 core.String dataSourceName; |
| 1202 /** | 1202 /** |
| 1203 * The type of measurement. | 1203 * The type of measurement. |
| 1204 * Possible string values are: | 1204 * Possible string values are: |
| 1205 * - "UNSPECIFIED_DATA_SOURCE_TYPE" : A UNSPECIFIED_DATA_SOURCE_TYPE. | 1205 * - "UNSPECIFIED_DATA_SOURCE_TYPE" : An unspecified data source type. This |
| 1206 * - "GAUGE" : A GAUGE. | 1206 * corresponds to |
| 1207 * - "COUNTER" : A COUNTER. | 1207 * google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED. |
| 1208 * - "DERIVE" : A DERIVE. | 1208 * - "GAUGE" : An instantaneous measurement of a varying quantity. This |
| 1209 * - "ABSOLUTE" : A ABSOLUTE. | 1209 * corresponds to google.api.MetricDescriptor.MetricKind.GAUGE. |
| 1210 * - "COUNTER" : A cumulative value over time. This corresponds to |
| 1211 * google.api.MetricDescriptor.MetricKind.CUMULATIVE. |
| 1212 * - "DERIVE" : A rate of change of the measurement. |
| 1213 * - "ABSOLUTE" : An amount of change since the last measurement interval. |
| 1214 * This corresponds to google.api.MetricDescriptor.MetricKind.DELTA. |
| 1210 */ | 1215 */ |
| 1211 core.String dataSourceType; | 1216 core.String dataSourceType; |
| 1212 /** The measurement value. */ | 1217 /** The measurement value. */ |
| 1213 TypedValue value; | 1218 TypedValue value; |
| 1214 | 1219 |
| 1215 CollectdValue(); | 1220 CollectdValue(); |
| 1216 | 1221 |
| 1217 CollectdValue.fromJson(core.Map _json) { | 1222 CollectdValue.fromJson(core.Map _json) { |
| 1218 if (_json.containsKey("dataSourceName")) { | 1223 if (_json.containsKey("dataSourceName")) { |
| 1219 dataSourceName = _json["dataSourceName"]; | 1224 dataSourceName = _json["dataSourceName"]; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1234 if (dataSourceType != null) { | 1239 if (dataSourceType != null) { |
| 1235 _json["dataSourceType"] = dataSourceType; | 1240 _json["dataSourceType"] = dataSourceType; |
| 1236 } | 1241 } |
| 1237 if (value != null) { | 1242 if (value != null) { |
| 1238 _json["value"] = (value).toJson(); | 1243 _json["value"] = (value).toJson(); |
| 1239 } | 1244 } |
| 1240 return _json; | 1245 return _json; |
| 1241 } | 1246 } |
| 1242 } | 1247 } |
| 1243 | 1248 |
| 1244 /** The `CreateCollectdTimeSeries` request. */ | 1249 /** The CreateCollectdTimeSeries request. */ |
| 1245 class CreateCollectdTimeSeriesRequest { | 1250 class CreateCollectdTimeSeriesRequest { |
| 1246 /** | 1251 /** |
| 1247 * The `collectd` payloads representing the time series data. You must not | 1252 * The collectd payloads representing the time series data. You must not |
| 1248 * include more than a single point for each time series, so no two payloads | 1253 * include more than a single point for each time series, so no two payloads |
| 1249 * can have the same values for all of the fields `plugin`, `plugin_instance`, | 1254 * can have the same values for all of the fields plugin, plugin_instance, |
| 1250 * `type`, and `type_instance`. | 1255 * type, and type_instance. |
| 1251 */ | 1256 */ |
| 1252 core.List<CollectdPayload> collectdPayloads; | 1257 core.List<CollectdPayload> collectdPayloads; |
| 1253 /** | 1258 /** |
| 1254 * The version of `collectd` that collected the data. Example: | 1259 * The version of collectd that collected the data. Example: |
| 1255 * `"5.3.0-192.el6"`. | 1260 * "5.3.0-192.el6". |
| 1256 */ | 1261 */ |
| 1257 core.String collectdVersion; | 1262 core.String collectdVersion; |
| 1258 /** The monitored resource associated with the time series. */ | 1263 /** The monitored resource associated with the time series. */ |
| 1259 MonitoredResource resource; | 1264 MonitoredResource resource; |
| 1260 | 1265 |
| 1261 CreateCollectdTimeSeriesRequest(); | 1266 CreateCollectdTimeSeriesRequest(); |
| 1262 | 1267 |
| 1263 CreateCollectdTimeSeriesRequest.fromJson(core.Map _json) { | 1268 CreateCollectdTimeSeriesRequest.fromJson(core.Map _json) { |
| 1264 if (_json.containsKey("collectdPayloads")) { | 1269 if (_json.containsKey("collectdPayloads")) { |
| 1265 collectdPayloads = _json["collectdPayloads"].map((value) => new CollectdPa
yload.fromJson(value)).toList(); | 1270 collectdPayloads = _json["collectdPayloads"].map((value) => new CollectdPa
yload.fromJson(value)).toList(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1280 if (collectdVersion != null) { | 1285 if (collectdVersion != null) { |
| 1281 _json["collectdVersion"] = collectdVersion; | 1286 _json["collectdVersion"] = collectdVersion; |
| 1282 } | 1287 } |
| 1283 if (resource != null) { | 1288 if (resource != null) { |
| 1284 _json["resource"] = (resource).toJson(); | 1289 _json["resource"] = (resource).toJson(); |
| 1285 } | 1290 } |
| 1286 return _json; | 1291 return _json; |
| 1287 } | 1292 } |
| 1288 } | 1293 } |
| 1289 | 1294 |
| 1290 /** The `CreateTimeSeries` request. */ | 1295 /** The CreateTimeSeries request. */ |
| 1291 class CreateTimeSeriesRequest { | 1296 class CreateTimeSeriesRequest { |
| 1292 /** | 1297 /** |
| 1293 * The new data to be added to a list of time series. Adds at most one data | 1298 * The new data to be added to a list of time series. Adds at most one data |
| 1294 * point to each of several time series. The new data point must be more | 1299 * point to each of several time series. The new data point must be more |
| 1295 * recent than any other point in its time series. Each `TimeSeries` value | 1300 * recent than any other point in its time series. Each TimeSeries value must |
| 1296 * must fully specify a unique time series by supplying all label values for | 1301 * fully specify a unique time series by supplying all label values for the |
| 1297 * the metric and the monitored resource. | 1302 * metric and the monitored resource. |
| 1298 */ | 1303 */ |
| 1299 core.List<TimeSeries> timeSeries; | 1304 core.List<TimeSeries> timeSeries; |
| 1300 | 1305 |
| 1301 CreateTimeSeriesRequest(); | 1306 CreateTimeSeriesRequest(); |
| 1302 | 1307 |
| 1303 CreateTimeSeriesRequest.fromJson(core.Map _json) { | 1308 CreateTimeSeriesRequest.fromJson(core.Map _json) { |
| 1304 if (_json.containsKey("timeSeries")) { | 1309 if (_json.containsKey("timeSeries")) { |
| 1305 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); | 1310 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); |
| 1306 } | 1311 } |
| 1307 } | 1312 } |
| 1308 | 1313 |
| 1309 core.Map toJson() { | 1314 core.Map toJson() { |
| 1310 var _json = new core.Map(); | 1315 var _json = new core.Map(); |
| 1311 if (timeSeries != null) { | 1316 if (timeSeries != null) { |
| 1312 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; | 1317 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; |
| 1313 } | 1318 } |
| 1314 return _json; | 1319 return _json; |
| 1315 } | 1320 } |
| 1316 } | 1321 } |
| 1317 | 1322 |
| 1318 /** | 1323 /** |
| 1319 * Distribution contains summary statistics for a population of values and, | 1324 * Distribution contains summary statistics for a population of values and, |
| 1320 * optionally, a histogram representing the distribution of those values across | 1325 * optionally, a histogram representing the distribution of those values across |
| 1321 * a specified set of histogram buckets. The summary statistics are the count, | 1326 * a specified set of histogram buckets.The summary statistics are the count, |
| 1322 * mean, sum of the squared deviation from the mean, the minimum, and the | 1327 * mean, sum of the squared deviation from the mean, the minimum, and the |
| 1323 * maximum of the set of population of values. The histogram is based on a | 1328 * maximum of the set of population of values.The histogram is based on a |
| 1324 * sequence of buckets and gives a count of values that fall into each bucket. | 1329 * sequence of buckets and gives a count of values that fall into each bucket. |
| 1325 * The boundaries of the buckets are given either explicitly or by specifying | 1330 * The boundaries of the buckets are given either explicitly or by specifying |
| 1326 * parameters for a method of computing them (buckets of fixed width or buckets | 1331 * parameters for a method of computing them (buckets of fixed width or buckets |
| 1327 * of exponentially increasing width). Although it is not forbidden, it is | 1332 * of exponentially increasing width).Although it is not forbidden, it is |
| 1328 * generally a bad idea to include non-finite values (infinities or NaNs) in the | 1333 * generally a bad idea to include non-finite values (infinities or NaNs) in the |
| 1329 * population of values, as this will render the `mean` and | 1334 * population of values, as this will render the mean and |
| 1330 * `sum_of_squared_deviation` fields meaningless. | 1335 * sum_of_squared_deviation fields meaningless. |
| 1331 */ | 1336 */ |
| 1332 class Distribution { | 1337 class Distribution { |
| 1333 /** | 1338 /** |
| 1334 * If `bucket_options` is given, then the sum of the values in `bucket_counts` | 1339 * If bucket_options is given, then the sum of the values in bucket_counts |
| 1335 * must equal the value in `count`. If `bucket_options` is not given, no | 1340 * must equal the value in count. If bucket_options is not given, no |
| 1336 * `bucket_counts` fields may be given. Bucket counts are given in order under | 1341 * bucket_counts fields may be given.Bucket counts are given in order under |
| 1337 * the numbering scheme described above (the underflow bucket has number 0; | 1342 * the numbering scheme described above (the underflow bucket has number 0; |
| 1338 * the finite buckets, if any, have numbers 1 through N-2; the overflow bucket | 1343 * the finite buckets, if any, have numbers 1 through N-2; the overflow bucket |
| 1339 * has number N-1). The size of `bucket_counts` must be no greater than N as | 1344 * has number N-1).The size of bucket_counts must be no greater than N as |
| 1340 * defined in `bucket_options`. Any suffix of trailing zero bucket_count | 1345 * defined in bucket_options.Any suffix of trailing zero bucket_count fields |
| 1341 * fields may be omitted. | 1346 * may be omitted. |
| 1342 */ | 1347 */ |
| 1343 core.List<core.String> bucketCounts; | 1348 core.List<core.String> bucketCounts; |
| 1344 /** Defines the histogram bucket boundaries. */ | 1349 /** Defines the histogram bucket boundaries. */ |
| 1345 BucketOptions bucketOptions; | 1350 BucketOptions bucketOptions; |
| 1346 /** The number of values in the population. Must be non-negative. */ | 1351 /** The number of values in the population. Must be non-negative. */ |
| 1347 core.String count; | 1352 core.String count; |
| 1348 /** | 1353 /** |
| 1349 * The arithmetic mean of the values in the population. If `count` is zero | 1354 * The arithmetic mean of the values in the population. If count is zero then |
| 1350 * then this field must be zero. | 1355 * this field must be zero. |
| 1351 */ | 1356 */ |
| 1352 core.double mean; | 1357 core.double mean; |
| 1353 /** | 1358 /** |
| 1354 * If specified, contains the range of the population values. The field must | 1359 * If specified, contains the range of the population values. The field must |
| 1355 * not be present if the `count` is zero. | 1360 * not be present if the count is zero. This field is presently ignored by the |
| 1361 * Stackdriver Monitoring API v3. |
| 1356 */ | 1362 */ |
| 1357 Range range; | 1363 Range range; |
| 1358 /** | 1364 /** |
| 1359 * The sum of squared deviations from the mean of the values in the | 1365 * The sum of squared deviations from the mean of the values in the |
| 1360 * population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The | 1366 * population. For values x_i this is: |
| 1361 * Art of Computer Programming", Vol. 2, page 323, 3rd edition describes | 1367 * Sum[i=1..n]((x_i - mean)^2) |
| 1362 * Welford's method for accumulating this sum in one pass. If `count` is zero | 1368 * Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition |
| 1363 * then this field must be zero. | 1369 * describes Welford's method for accumulating this sum in one pass.If count |
| 1370 * is zero then this field must be zero. |
| 1364 */ | 1371 */ |
| 1365 core.double sumOfSquaredDeviation; | 1372 core.double sumOfSquaredDeviation; |
| 1366 | 1373 |
| 1367 Distribution(); | 1374 Distribution(); |
| 1368 | 1375 |
| 1369 Distribution.fromJson(core.Map _json) { | 1376 Distribution.fromJson(core.Map _json) { |
| 1370 if (_json.containsKey("bucketCounts")) { | 1377 if (_json.containsKey("bucketCounts")) { |
| 1371 bucketCounts = _json["bucketCounts"]; | 1378 bucketCounts = _json["bucketCounts"]; |
| 1372 } | 1379 } |
| 1373 if (_json.containsKey("bucketOptions")) { | 1380 if (_json.containsKey("bucketOptions")) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 if (sumOfSquaredDeviation != null) { | 1414 if (sumOfSquaredDeviation != null) { |
| 1408 _json["sumOfSquaredDeviation"] = sumOfSquaredDeviation; | 1415 _json["sumOfSquaredDeviation"] = sumOfSquaredDeviation; |
| 1409 } | 1416 } |
| 1410 return _json; | 1417 return _json; |
| 1411 } | 1418 } |
| 1412 } | 1419 } |
| 1413 | 1420 |
| 1414 /** | 1421 /** |
| 1415 * A generic empty message that you can re-use to avoid defining duplicated | 1422 * A generic empty message that you can re-use to avoid defining duplicated |
| 1416 * empty messages in your APIs. A typical example is to use it as the request or | 1423 * empty messages in your APIs. A typical example is to use it as the request or |
| 1417 * the response type of an API method. For instance: service Foo { rpc | 1424 * the response type of an API method. For instance: |
| 1418 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON | 1425 * service Foo { |
| 1419 * representation for `Empty` is empty JSON object `{}`. | 1426 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 1427 * } |
| 1428 * The JSON representation for Empty is empty JSON object {}. |
| 1420 */ | 1429 */ |
| 1421 class Empty { | 1430 class Empty { |
| 1422 | 1431 |
| 1423 Empty(); | 1432 Empty(); |
| 1424 | 1433 |
| 1425 Empty.fromJson(core.Map _json) { | 1434 Empty.fromJson(core.Map _json) { |
| 1426 } | 1435 } |
| 1427 | 1436 |
| 1428 core.Map toJson() { | 1437 core.Map toJson() { |
| 1429 var _json = new core.Map(); | 1438 var _json = new core.Map(); |
| 1430 return _json; | 1439 return _json; |
| 1431 } | 1440 } |
| 1432 } | 1441 } |
| 1433 | 1442 |
| 1434 /** | 1443 /** |
| 1435 * A set of buckets with arbitrary widths. Defines `size(bounds) + 1` (= N) | 1444 * A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets |
| 1436 * buckets with these boundaries for bucket i: Upper bound (0 <= i < N-1): | 1445 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi |
| 1437 * bounds[i] Lower bound (1 <= i < N); bounds[i - 1] There must be at least one | 1446 * Lower bound (1 <= i < N); boundsi - 1There must be at least one element |
| 1438 * element in `bounds`. If `bounds` has only one element, there are no finite | 1447 * in bounds. If bounds has only one element, there are no finite buckets, and |
| 1439 * buckets, and that single element is the common boundary of the overflow and | 1448 * that single element is the common boundary of the overflow and underflow |
| 1440 * underflow buckets. | 1449 * buckets. |
| 1441 */ | 1450 */ |
| 1442 class Explicit { | 1451 class Explicit { |
| 1443 /** The values must be monotonically increasing. */ | 1452 /** The values must be monotonically increasing. */ |
| 1444 core.List<core.double> bounds; | 1453 core.List<core.double> bounds; |
| 1445 | 1454 |
| 1446 Explicit(); | 1455 Explicit(); |
| 1447 | 1456 |
| 1448 Explicit.fromJson(core.Map _json) { | 1457 Explicit.fromJson(core.Map _json) { |
| 1449 if (_json.containsKey("bounds")) { | 1458 if (_json.containsKey("bounds")) { |
| 1450 bounds = _json["bounds"]; | 1459 bounds = _json["bounds"]; |
| 1451 } | 1460 } |
| 1452 } | 1461 } |
| 1453 | 1462 |
| 1454 core.Map toJson() { | 1463 core.Map toJson() { |
| 1455 var _json = new core.Map(); | 1464 var _json = new core.Map(); |
| 1456 if (bounds != null) { | 1465 if (bounds != null) { |
| 1457 _json["bounds"] = bounds; | 1466 _json["bounds"] = bounds; |
| 1458 } | 1467 } |
| 1459 return _json; | 1468 return _json; |
| 1460 } | 1469 } |
| 1461 } | 1470 } |
| 1462 | 1471 |
| 1463 /** | 1472 /** |
| 1464 * Specify a sequence of buckets that have a width that is proportional to the | 1473 * Specify a sequence of buckets that have a width that is proportional to the |
| 1465 * value of the lower bound. Each bucket represents a constant relative | 1474 * value of the lower bound. Each bucket represents a constant relative |
| 1466 * uncertainty on a specific value in the bucket. Defines `num_finite_buckets + | 1475 * uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 |
| 1467 * 2` (= N) buckets with these boundaries for bucket i: Upper bound (0 <= i < | 1476 * (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < |
| 1468 * N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * | 1477 * N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * |
| 1469 * (growth_factor ^ (i - 1)). | 1478 * (growth_factor ^ (i - 1)). |
| 1470 */ | 1479 */ |
| 1471 class Exponential { | 1480 class Exponential { |
| 1472 /** Must be greater than 1 */ | 1481 /** Must be greater than 1. */ |
| 1473 core.double growthFactor; | 1482 core.double growthFactor; |
| 1474 /** must be greater than 0 */ | 1483 /** Must be greater than 0. */ |
| 1475 core.int numFiniteBuckets; | 1484 core.int numFiniteBuckets; |
| 1476 /** Must be greater than 0 */ | 1485 /** Must be greater than 0. */ |
| 1477 core.double scale; | 1486 core.double scale; |
| 1478 | 1487 |
| 1479 Exponential(); | 1488 Exponential(); |
| 1480 | 1489 |
| 1481 Exponential.fromJson(core.Map _json) { | 1490 Exponential.fromJson(core.Map _json) { |
| 1482 if (_json.containsKey("growthFactor")) { | 1491 if (_json.containsKey("growthFactor")) { |
| 1483 growthFactor = _json["growthFactor"]; | 1492 growthFactor = _json["growthFactor"]; |
| 1484 } | 1493 } |
| 1485 if (_json.containsKey("numFiniteBuckets")) { | 1494 if (_json.containsKey("numFiniteBuckets")) { |
| 1486 numFiniteBuckets = _json["numFiniteBuckets"]; | 1495 numFiniteBuckets = _json["numFiniteBuckets"]; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1503 } | 1512 } |
| 1504 return _json; | 1513 return _json; |
| 1505 } | 1514 } |
| 1506 } | 1515 } |
| 1507 | 1516 |
| 1508 /** A single field of a message type. */ | 1517 /** A single field of a message type. */ |
| 1509 class Field { | 1518 class Field { |
| 1510 /** | 1519 /** |
| 1511 * The field cardinality. | 1520 * The field cardinality. |
| 1512 * Possible string values are: | 1521 * Possible string values are: |
| 1513 * - "CARDINALITY_UNKNOWN" : A CARDINALITY_UNKNOWN. | 1522 * - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality. |
| 1514 * - "CARDINALITY_OPTIONAL" : A CARDINALITY_OPTIONAL. | 1523 * - "CARDINALITY_OPTIONAL" : For optional fields. |
| 1515 * - "CARDINALITY_REQUIRED" : A CARDINALITY_REQUIRED. | 1524 * - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only. |
| 1516 * - "CARDINALITY_REPEATED" : A CARDINALITY_REPEATED. | 1525 * - "CARDINALITY_REPEATED" : For repeated fields. |
| 1517 */ | 1526 */ |
| 1518 core.String cardinality; | 1527 core.String cardinality; |
| 1519 /** | 1528 /** |
| 1520 * The string value of the default value of this field. Proto2 syntax only. | 1529 * The string value of the default value of this field. Proto2 syntax only. |
| 1521 */ | 1530 */ |
| 1522 core.String defaultValue; | 1531 core.String defaultValue; |
| 1523 /** The field JSON name. */ | 1532 /** The field JSON name. */ |
| 1524 core.String jsonName; | 1533 core.String jsonName; |
| 1525 /** | 1534 /** |
| 1526 * The field type. | 1535 * The field type. |
| 1527 * Possible string values are: | 1536 * Possible string values are: |
| 1528 * - "TYPE_UNKNOWN" : A TYPE_UNKNOWN. | 1537 * - "TYPE_UNKNOWN" : Field type unknown. |
| 1529 * - "TYPE_DOUBLE" : A TYPE_DOUBLE. | 1538 * - "TYPE_DOUBLE" : Field type double. |
| 1530 * - "TYPE_FLOAT" : A TYPE_FLOAT. | 1539 * - "TYPE_FLOAT" : Field type float. |
| 1531 * - "TYPE_INT64" : A TYPE_INT64. | 1540 * - "TYPE_INT64" : Field type int64. |
| 1532 * - "TYPE_UINT64" : A TYPE_UINT64. | 1541 * - "TYPE_UINT64" : Field type uint64. |
| 1533 * - "TYPE_INT32" : A TYPE_INT32. | 1542 * - "TYPE_INT32" : Field type int32. |
| 1534 * - "TYPE_FIXED64" : A TYPE_FIXED64. | 1543 * - "TYPE_FIXED64" : Field type fixed64. |
| 1535 * - "TYPE_FIXED32" : A TYPE_FIXED32. | 1544 * - "TYPE_FIXED32" : Field type fixed32. |
| 1536 * - "TYPE_BOOL" : A TYPE_BOOL. | 1545 * - "TYPE_BOOL" : Field type bool. |
| 1537 * - "TYPE_STRING" : A TYPE_STRING. | 1546 * - "TYPE_STRING" : Field type string. |
| 1538 * - "TYPE_GROUP" : A TYPE_GROUP. | 1547 * - "TYPE_GROUP" : Field type group. Proto2 syntax only, and deprecated. |
| 1539 * - "TYPE_MESSAGE" : A TYPE_MESSAGE. | 1548 * - "TYPE_MESSAGE" : Field type message. |
| 1540 * - "TYPE_BYTES" : A TYPE_BYTES. | 1549 * - "TYPE_BYTES" : Field type bytes. |
| 1541 * - "TYPE_UINT32" : A TYPE_UINT32. | 1550 * - "TYPE_UINT32" : Field type uint32. |
| 1542 * - "TYPE_ENUM" : A TYPE_ENUM. | 1551 * - "TYPE_ENUM" : Field type enum. |
| 1543 * - "TYPE_SFIXED32" : A TYPE_SFIXED32. | 1552 * - "TYPE_SFIXED32" : Field type sfixed32. |
| 1544 * - "TYPE_SFIXED64" : A TYPE_SFIXED64. | 1553 * - "TYPE_SFIXED64" : Field type sfixed64. |
| 1545 * - "TYPE_SINT32" : A TYPE_SINT32. | 1554 * - "TYPE_SINT32" : Field type sint32. |
| 1546 * - "TYPE_SINT64" : A TYPE_SINT64. | 1555 * - "TYPE_SINT64" : Field type sint64. |
| 1547 */ | 1556 */ |
| 1548 core.String kind; | 1557 core.String kind; |
| 1549 /** The field name. */ | 1558 /** The field name. */ |
| 1550 core.String name; | 1559 core.String name; |
| 1551 /** The field number. */ | 1560 /** The field number. */ |
| 1552 core.int number; | 1561 core.int number; |
| 1553 /** | 1562 /** |
| 1554 * The index of the field type in `Type.oneofs`, for message or enumeration | 1563 * The index of the field type in Type.oneofs, for message or enumeration |
| 1555 * types. The first type has index 1; zero means the type is not in the list. | 1564 * types. The first type has index 1; zero means the type is not in the list. |
| 1556 */ | 1565 */ |
| 1557 core.int oneofIndex; | 1566 core.int oneofIndex; |
| 1558 /** The protocol buffer options. */ | 1567 /** The protocol buffer options. */ |
| 1559 core.List<Option> options; | 1568 core.List<Option> options; |
| 1560 /** Whether to use alternative packed wire representation. */ | 1569 /** Whether to use alternative packed wire representation. */ |
| 1561 core.bool packed; | 1570 core.bool packed; |
| 1562 /** | 1571 /** |
| 1563 * The field type URL, without the scheme, for message or enumeration types. | 1572 * The field type URL, without the scheme, for message or enumeration types. |
| 1564 * Example: `"type.googleapis.com/google.protobuf.Timestamp"`. | 1573 * Example: "type.googleapis.com/google.protobuf.Timestamp". |
| 1565 */ | 1574 */ |
| 1566 core.String typeUrl; | 1575 core.String typeUrl; |
| 1567 | 1576 |
| 1568 Field(); | 1577 Field(); |
| 1569 | 1578 |
| 1570 Field.fromJson(core.Map _json) { | 1579 Field.fromJson(core.Map _json) { |
| 1571 if (_json.containsKey("cardinality")) { | 1580 if (_json.containsKey("cardinality")) { |
| 1572 cardinality = _json["cardinality"]; | 1581 cardinality = _json["cardinality"]; |
| 1573 } | 1582 } |
| 1574 if (_json.containsKey("defaultValue")) { | 1583 if (_json.containsKey("defaultValue")) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1635 return _json; | 1644 return _json; |
| 1636 } | 1645 } |
| 1637 } | 1646 } |
| 1638 | 1647 |
| 1639 /** | 1648 /** |
| 1640 * The description of a dynamic collection of monitored resources. Each group | 1649 * The description of a dynamic collection of monitored resources. Each group |
| 1641 * has a filter that is matched against monitored resources and their associated | 1650 * has a filter that is matched against monitored resources and their associated |
| 1642 * metadata. If a group's filter matches an available monitored resource, then | 1651 * metadata. If a group's filter matches an available monitored resource, then |
| 1643 * that resource is a member of that group. Groups can contain any number of | 1652 * that resource is a member of that group. Groups can contain any number of |
| 1644 * monitored resources, and each monitored resource can be a member of any | 1653 * monitored resources, and each monitored resource can be a member of any |
| 1645 * number of groups. Groups can be nested in parent-child hierarchies. The | 1654 * number of groups.Groups can be nested in parent-child hierarchies. The |
| 1646 * `parentName` field identifies an optional parent for each group. If a group | 1655 * parentName field identifies an optional parent for each group. If a group has |
| 1647 * has a parent, then the only monitored resources available to be matched by | 1656 * a parent, then the only monitored resources available to be matched by the |
| 1648 * the group's filter are the resources contained in the parent group. In other | 1657 * group's filter are the resources contained in the parent group. In other |
| 1649 * words, a group contains the monitored resources that match its filter and the | 1658 * words, a group contains the monitored resources that match its filter and the |
| 1650 * filters of all the group's ancestors. A group without a parent can contain | 1659 * filters of all the group's ancestors. A group without a parent can contain |
| 1651 * any monitored resource. For example, consider an infrastructure running a set | 1660 * any monitored resource.For example, consider an infrastructure running a set |
| 1652 * of instances with two user-defined tags: `"environment"` and `"role"`. A | 1661 * of instances with two user-defined tags: "environment" and |
| 1653 * parent group has a filter, `environment="production"`. A child of that parent | 1662 * "role". A parent group has a filter, |
| 1654 * group has a filter, `role="transcoder"`. The parent group contains all | 1663 * environment="production". A child of that parent group has a |
| 1655 * instances in the production environment, regardless of their roles. The child | 1664 * filter, role="transcoder". The parent group contains all instances |
| 1656 * group contains instances that have the transcoder role *and* are in the | 1665 * in the production environment, regardless of their roles. The child group |
| 1657 * production environment. The monitored resources contained in a group can | 1666 * contains instances that have the transcoder role and are in the production |
| 1658 * change at any moment, depending on what resources exist and what filters are | 1667 * environment.The monitored resources contained in a group can change at any |
| 1659 * associated with the group and its ancestors. | 1668 * moment, depending on what resources exist and what filters are associated |
| 1669 * with the group and its ancestors. |
| 1660 */ | 1670 */ |
| 1661 class Group { | 1671 class Group { |
| 1662 /** A user-assigned name for this group, used only for display purposes. */ | 1672 /** A user-assigned name for this group, used only for display purposes. */ |
| 1663 core.String displayName; | 1673 core.String displayName; |
| 1664 /** | 1674 /** |
| 1665 * The filter used to determine which monitored resources belong to this | 1675 * The filter used to determine which monitored resources belong to this |
| 1666 * group. | 1676 * group. |
| 1667 */ | 1677 */ |
| 1668 core.String filter; | 1678 core.String filter; |
| 1669 /** | 1679 /** |
| 1670 * If true, the members of this group are considered to be a cluster. The | 1680 * If true, the members of this group are considered to be a cluster. The |
| 1671 * system can perform additional analysis on groups that are clusters. | 1681 * system can perform additional analysis on groups that are clusters. |
| 1672 */ | 1682 */ |
| 1673 core.bool isCluster; | 1683 core.bool isCluster; |
| 1674 /** | 1684 /** |
| 1675 * The name of this group. The format is | 1685 * Output only. The name of this group. The format is |
| 1676 * `"projects/{project_id_or_number}/groups/{group_id}"`. When creating a | 1686 * "projects/{project_id_or_number}/groups/{group_id}". When |
| 1677 * group, this field is ignored and a new name is created consisting of the | 1687 * creating a group, this field is ignored and a new name is created |
| 1678 * project specified in the call to `CreateGroup` and a unique `{group_id}` | 1688 * consisting of the project specified in the call to CreateGroup and a unique |
| 1679 * that is generated automatically. @OutputOnly | 1689 * {group_id} that is generated automatically. |
| 1680 */ | 1690 */ |
| 1681 core.String name; | 1691 core.String name; |
| 1682 /** | 1692 /** |
| 1683 * The name of the group's parent, if it has one. The format is | 1693 * The name of the group's parent, if it has one. The format is |
| 1684 * `"projects/{project_id_or_number}/groups/{group_id}"`. For groups with no | 1694 * "projects/{project_id_or_number}/groups/{group_id}". For groups |
| 1685 * parent, `parentName` is the empty string, `""`. | 1695 * with no parent, parentName is the empty string, "". |
| 1686 */ | 1696 */ |
| 1687 core.String parentName; | 1697 core.String parentName; |
| 1688 | 1698 |
| 1689 Group(); | 1699 Group(); |
| 1690 | 1700 |
| 1691 Group.fromJson(core.Map _json) { | 1701 Group.fromJson(core.Map _json) { |
| 1692 if (_json.containsKey("displayName")) { | 1702 if (_json.containsKey("displayName")) { |
| 1693 displayName = _json["displayName"]; | 1703 displayName = _json["displayName"]; |
| 1694 } | 1704 } |
| 1695 if (_json.containsKey("filter")) { | 1705 if (_json.containsKey("filter")) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 | 1739 |
| 1730 /** A description of a label. */ | 1740 /** A description of a label. */ |
| 1731 class LabelDescriptor { | 1741 class LabelDescriptor { |
| 1732 /** A human-readable description for the label. */ | 1742 /** A human-readable description for the label. */ |
| 1733 core.String description; | 1743 core.String description; |
| 1734 /** The label key. */ | 1744 /** The label key. */ |
| 1735 core.String key; | 1745 core.String key; |
| 1736 /** | 1746 /** |
| 1737 * The type of data that can be assigned to the label. | 1747 * The type of data that can be assigned to the label. |
| 1738 * Possible string values are: | 1748 * Possible string values are: |
| 1739 * - "STRING" : A STRING. | 1749 * - "STRING" : A variable-length string. This is the default. |
| 1740 * - "BOOL" : A BOOL. | 1750 * - "BOOL" : Boolean; true or false. |
| 1741 * - "INT64" : A INT64. | 1751 * - "INT64" : A 64-bit signed integer. |
| 1742 */ | 1752 */ |
| 1743 core.String valueType; | 1753 core.String valueType; |
| 1744 | 1754 |
| 1745 LabelDescriptor(); | 1755 LabelDescriptor(); |
| 1746 | 1756 |
| 1747 LabelDescriptor.fromJson(core.Map _json) { | 1757 LabelDescriptor.fromJson(core.Map _json) { |
| 1748 if (_json.containsKey("description")) { | 1758 if (_json.containsKey("description")) { |
| 1749 description = _json["description"]; | 1759 description = _json["description"]; |
| 1750 } | 1760 } |
| 1751 if (_json.containsKey("key")) { | 1761 if (_json.containsKey("key")) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1767 if (valueType != null) { | 1777 if (valueType != null) { |
| 1768 _json["valueType"] = valueType; | 1778 _json["valueType"] = valueType; |
| 1769 } | 1779 } |
| 1770 return _json; | 1780 return _json; |
| 1771 } | 1781 } |
| 1772 } | 1782 } |
| 1773 | 1783 |
| 1774 /** | 1784 /** |
| 1775 * Specify a sequence of buckets that all have the same width (except overflow | 1785 * Specify a sequence of buckets that all have the same width (except overflow |
| 1776 * and underflow). Each bucket represents a constant absolute uncertainty on the | 1786 * and underflow). Each bucket represents a constant absolute uncertainty on the |
| 1777 * specific value in the bucket. Defines `num_finite_buckets + 2` (= N) buckets | 1787 * specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets |
| 1778 * with these boundaries for bucket `i`: Upper bound (0 <= i < N-1): offset + | 1788 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + |
| 1779 * (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). | 1789 * (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). |
| 1780 */ | 1790 */ |
| 1781 class Linear { | 1791 class Linear { |
| 1782 /** Must be greater than 0. */ | 1792 /** Must be greater than 0. */ |
| 1783 core.int numFiniteBuckets; | 1793 core.int numFiniteBuckets; |
| 1784 /** Lower bound of the first bucket. */ | 1794 /** Lower bound of the first bucket. */ |
| 1785 core.double offset; | 1795 core.double offset; |
| 1786 /** Must be greater than 0. */ | 1796 /** Must be greater than 0. */ |
| 1787 core.double width; | 1797 core.double width; |
| 1788 | 1798 |
| 1789 Linear(); | 1799 Linear(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1808 if (offset != null) { | 1818 if (offset != null) { |
| 1809 _json["offset"] = offset; | 1819 _json["offset"] = offset; |
| 1810 } | 1820 } |
| 1811 if (width != null) { | 1821 if (width != null) { |
| 1812 _json["width"] = width; | 1822 _json["width"] = width; |
| 1813 } | 1823 } |
| 1814 return _json; | 1824 return _json; |
| 1815 } | 1825 } |
| 1816 } | 1826 } |
| 1817 | 1827 |
| 1818 /** The `ListGroupMembers` response. */ | 1828 /** The ListGroupMembers response. */ |
| 1819 class ListGroupMembersResponse { | 1829 class ListGroupMembersResponse { |
| 1820 /** A set of monitored resources in the group. */ | 1830 /** A set of monitored resources in the group. */ |
| 1821 core.List<MonitoredResource> members; | 1831 core.List<MonitoredResource> members; |
| 1822 /** | 1832 /** |
| 1823 * If there are more results than have been returned, then this field is set | 1833 * If there are more results than have been returned, then this field is set |
| 1824 * to a non-empty value. To see the additional results, use that value as | 1834 * to a non-empty value. To see the additional results, use that value as |
| 1825 * `pageToken` in the next call to this method. | 1835 * pageToken in the next call to this method. |
| 1826 */ | 1836 */ |
| 1827 core.String nextPageToken; | 1837 core.String nextPageToken; |
| 1828 /** The total number of elements matching this request. */ | 1838 /** The total number of elements matching this request. */ |
| 1829 core.int totalSize; | 1839 core.int totalSize; |
| 1830 | 1840 |
| 1831 ListGroupMembersResponse(); | 1841 ListGroupMembersResponse(); |
| 1832 | 1842 |
| 1833 ListGroupMembersResponse.fromJson(core.Map _json) { | 1843 ListGroupMembersResponse.fromJson(core.Map _json) { |
| 1834 if (_json.containsKey("members")) { | 1844 if (_json.containsKey("members")) { |
| 1835 members = _json["members"].map((value) => new MonitoredResource.fromJson(v
alue)).toList(); | 1845 members = _json["members"].map((value) => new MonitoredResource.fromJson(v
alue)).toList(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1850 if (nextPageToken != null) { | 1860 if (nextPageToken != null) { |
| 1851 _json["nextPageToken"] = nextPageToken; | 1861 _json["nextPageToken"] = nextPageToken; |
| 1852 } | 1862 } |
| 1853 if (totalSize != null) { | 1863 if (totalSize != null) { |
| 1854 _json["totalSize"] = totalSize; | 1864 _json["totalSize"] = totalSize; |
| 1855 } | 1865 } |
| 1856 return _json; | 1866 return _json; |
| 1857 } | 1867 } |
| 1858 } | 1868 } |
| 1859 | 1869 |
| 1860 /** The `ListGroups` response. */ | 1870 /** The ListGroups response. */ |
| 1861 class ListGroupsResponse { | 1871 class ListGroupsResponse { |
| 1862 /** The groups that match the specified filters. */ | 1872 /** The groups that match the specified filters. */ |
| 1863 core.List<Group> group; | 1873 core.List<Group> group; |
| 1864 /** | 1874 /** |
| 1865 * If there are more results than have been returned, then this field is set | 1875 * If there are more results than have been returned, then this field is set |
| 1866 * to a non-empty value. To see the additional results, use that value as | 1876 * to a non-empty value. To see the additional results, use that value as |
| 1867 * `pageToken` in the next call to this method. | 1877 * pageToken in the next call to this method. |
| 1868 */ | 1878 */ |
| 1869 core.String nextPageToken; | 1879 core.String nextPageToken; |
| 1870 | 1880 |
| 1871 ListGroupsResponse(); | 1881 ListGroupsResponse(); |
| 1872 | 1882 |
| 1873 ListGroupsResponse.fromJson(core.Map _json) { | 1883 ListGroupsResponse.fromJson(core.Map _json) { |
| 1874 if (_json.containsKey("group")) { | 1884 if (_json.containsKey("group")) { |
| 1875 group = _json["group"].map((value) => new Group.fromJson(value)).toList(); | 1885 group = _json["group"].map((value) => new Group.fromJson(value)).toList(); |
| 1876 } | 1886 } |
| 1877 if (_json.containsKey("nextPageToken")) { | 1887 if (_json.containsKey("nextPageToken")) { |
| 1878 nextPageToken = _json["nextPageToken"]; | 1888 nextPageToken = _json["nextPageToken"]; |
| 1879 } | 1889 } |
| 1880 } | 1890 } |
| 1881 | 1891 |
| 1882 core.Map toJson() { | 1892 core.Map toJson() { |
| 1883 var _json = new core.Map(); | 1893 var _json = new core.Map(); |
| 1884 if (group != null) { | 1894 if (group != null) { |
| 1885 _json["group"] = group.map((value) => (value).toJson()).toList(); | 1895 _json["group"] = group.map((value) => (value).toJson()).toList(); |
| 1886 } | 1896 } |
| 1887 if (nextPageToken != null) { | 1897 if (nextPageToken != null) { |
| 1888 _json["nextPageToken"] = nextPageToken; | 1898 _json["nextPageToken"] = nextPageToken; |
| 1889 } | 1899 } |
| 1890 return _json; | 1900 return _json; |
| 1891 } | 1901 } |
| 1892 } | 1902 } |
| 1893 | 1903 |
| 1894 /** The `ListMetricDescriptors` response. */ | 1904 /** The ListMetricDescriptors response. */ |
| 1895 class ListMetricDescriptorsResponse { | 1905 class ListMetricDescriptorsResponse { |
| 1896 /** | 1906 /** |
| 1897 * The metric descriptors that are available to the project and that match the | 1907 * The metric descriptors that are available to the project and that match the |
| 1898 * value of `filter`, if present. | 1908 * value of filter, if present. |
| 1899 */ | 1909 */ |
| 1900 core.List<MetricDescriptor> metricDescriptors; | 1910 core.List<MetricDescriptor> metricDescriptors; |
| 1901 /** | 1911 /** |
| 1902 * If there are more results than have been returned, then this field is set | 1912 * If there are more results than have been returned, then this field is set |
| 1903 * to a non-empty value. To see the additional results, use that value as | 1913 * to a non-empty value. To see the additional results, use that value as |
| 1904 * `pageToken` in the next call to this method. | 1914 * pageToken in the next call to this method. |
| 1905 */ | 1915 */ |
| 1906 core.String nextPageToken; | 1916 core.String nextPageToken; |
| 1907 | 1917 |
| 1908 ListMetricDescriptorsResponse(); | 1918 ListMetricDescriptorsResponse(); |
| 1909 | 1919 |
| 1910 ListMetricDescriptorsResponse.fromJson(core.Map _json) { | 1920 ListMetricDescriptorsResponse.fromJson(core.Map _json) { |
| 1911 if (_json.containsKey("metricDescriptors")) { | 1921 if (_json.containsKey("metricDescriptors")) { |
| 1912 metricDescriptors = _json["metricDescriptors"].map((value) => new MetricDe
scriptor.fromJson(value)).toList(); | 1922 metricDescriptors = _json["metricDescriptors"].map((value) => new MetricDe
scriptor.fromJson(value)).toList(); |
| 1913 } | 1923 } |
| 1914 if (_json.containsKey("nextPageToken")) { | 1924 if (_json.containsKey("nextPageToken")) { |
| 1915 nextPageToken = _json["nextPageToken"]; | 1925 nextPageToken = _json["nextPageToken"]; |
| 1916 } | 1926 } |
| 1917 } | 1927 } |
| 1918 | 1928 |
| 1919 core.Map toJson() { | 1929 core.Map toJson() { |
| 1920 var _json = new core.Map(); | 1930 var _json = new core.Map(); |
| 1921 if (metricDescriptors != null) { | 1931 if (metricDescriptors != null) { |
| 1922 _json["metricDescriptors"] = metricDescriptors.map((value) => (value).toJs
on()).toList(); | 1932 _json["metricDescriptors"] = metricDescriptors.map((value) => (value).toJs
on()).toList(); |
| 1923 } | 1933 } |
| 1924 if (nextPageToken != null) { | 1934 if (nextPageToken != null) { |
| 1925 _json["nextPageToken"] = nextPageToken; | 1935 _json["nextPageToken"] = nextPageToken; |
| 1926 } | 1936 } |
| 1927 return _json; | 1937 return _json; |
| 1928 } | 1938 } |
| 1929 } | 1939 } |
| 1930 | 1940 |
| 1931 /** The `ListMonitoredResourcDescriptors` response. */ | 1941 /** The ListMonitoredResourcDescriptors response. */ |
| 1932 class ListMonitoredResourceDescriptorsResponse { | 1942 class ListMonitoredResourceDescriptorsResponse { |
| 1933 /** | 1943 /** |
| 1934 * If there are more results than have been returned, then this field is set | 1944 * If there are more results than have been returned, then this field is set |
| 1935 * to a non-empty value. To see the additional results, use that value as | 1945 * to a non-empty value. To see the additional results, use that value as |
| 1936 * `pageToken` in the next call to this method. | 1946 * pageToken in the next call to this method. |
| 1937 */ | 1947 */ |
| 1938 core.String nextPageToken; | 1948 core.String nextPageToken; |
| 1939 /** | 1949 /** |
| 1940 * The monitored resource descriptors that are available to this project and | 1950 * The monitored resource descriptors that are available to this project and |
| 1941 * that match `filter`, if present. | 1951 * that match filter, if present. |
| 1942 */ | 1952 */ |
| 1943 core.List<MonitoredResourceDescriptor> resourceDescriptors; | 1953 core.List<MonitoredResourceDescriptor> resourceDescriptors; |
| 1944 | 1954 |
| 1945 ListMonitoredResourceDescriptorsResponse(); | 1955 ListMonitoredResourceDescriptorsResponse(); |
| 1946 | 1956 |
| 1947 ListMonitoredResourceDescriptorsResponse.fromJson(core.Map _json) { | 1957 ListMonitoredResourceDescriptorsResponse.fromJson(core.Map _json) { |
| 1948 if (_json.containsKey("nextPageToken")) { | 1958 if (_json.containsKey("nextPageToken")) { |
| 1949 nextPageToken = _json["nextPageToken"]; | 1959 nextPageToken = _json["nextPageToken"]; |
| 1950 } | 1960 } |
| 1951 if (_json.containsKey("resourceDescriptors")) { | 1961 if (_json.containsKey("resourceDescriptors")) { |
| 1952 resourceDescriptors = _json["resourceDescriptors"].map((value) => new Moni
toredResourceDescriptor.fromJson(value)).toList(); | 1962 resourceDescriptors = _json["resourceDescriptors"].map((value) => new Moni
toredResourceDescriptor.fromJson(value)).toList(); |
| 1953 } | 1963 } |
| 1954 } | 1964 } |
| 1955 | 1965 |
| 1956 core.Map toJson() { | 1966 core.Map toJson() { |
| 1957 var _json = new core.Map(); | 1967 var _json = new core.Map(); |
| 1958 if (nextPageToken != null) { | 1968 if (nextPageToken != null) { |
| 1959 _json["nextPageToken"] = nextPageToken; | 1969 _json["nextPageToken"] = nextPageToken; |
| 1960 } | 1970 } |
| 1961 if (resourceDescriptors != null) { | 1971 if (resourceDescriptors != null) { |
| 1962 _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).
toJson()).toList(); | 1972 _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).
toJson()).toList(); |
| 1963 } | 1973 } |
| 1964 return _json; | 1974 return _json; |
| 1965 } | 1975 } |
| 1966 } | 1976 } |
| 1967 | 1977 |
| 1968 /** The `ListTimeSeries` response. */ | 1978 /** The ListTimeSeries response. */ |
| 1969 class ListTimeSeriesResponse { | 1979 class ListTimeSeriesResponse { |
| 1970 /** | 1980 /** |
| 1971 * If there are more results than have been returned, then this field is set | 1981 * If there are more results than have been returned, then this field is set |
| 1972 * to a non-empty value. To see the additional results, use that value as | 1982 * to a non-empty value. To see the additional results, use that value as |
| 1973 * `pageToken` in the next call to this method. | 1983 * pageToken in the next call to this method. |
| 1974 */ | 1984 */ |
| 1975 core.String nextPageToken; | 1985 core.String nextPageToken; |
| 1976 /** One or more time series that match the filter included in the request. */ | 1986 /** One or more time series that match the filter included in the request. */ |
| 1977 core.List<TimeSeries> timeSeries; | 1987 core.List<TimeSeries> timeSeries; |
| 1978 | 1988 |
| 1979 ListTimeSeriesResponse(); | 1989 ListTimeSeriesResponse(); |
| 1980 | 1990 |
| 1981 ListTimeSeriesResponse.fromJson(core.Map _json) { | 1991 ListTimeSeriesResponse.fromJson(core.Map _json) { |
| 1982 if (_json.containsKey("nextPageToken")) { | 1992 if (_json.containsKey("nextPageToken")) { |
| 1983 nextPageToken = _json["nextPageToken"]; | 1993 nextPageToken = _json["nextPageToken"]; |
| 1984 } | 1994 } |
| 1985 if (_json.containsKey("timeSeries")) { | 1995 if (_json.containsKey("timeSeries")) { |
| 1986 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); | 1996 timeSeries = _json["timeSeries"].map((value) => new TimeSeries.fromJson(va
lue)).toList(); |
| 1987 } | 1997 } |
| 1988 } | 1998 } |
| 1989 | 1999 |
| 1990 core.Map toJson() { | 2000 core.Map toJson() { |
| 1991 var _json = new core.Map(); | 2001 var _json = new core.Map(); |
| 1992 if (nextPageToken != null) { | 2002 if (nextPageToken != null) { |
| 1993 _json["nextPageToken"] = nextPageToken; | 2003 _json["nextPageToken"] = nextPageToken; |
| 1994 } | 2004 } |
| 1995 if (timeSeries != null) { | 2005 if (timeSeries != null) { |
| 1996 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; | 2006 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; |
| 1997 } | 2007 } |
| 1998 return _json; | 2008 return _json; |
| 1999 } | 2009 } |
| 2000 } | 2010 } |
| 2001 | 2011 |
| 2002 /** | 2012 /** |
| 2003 * A specific metric identified by specifying values for all of the labels of a | 2013 * A specific metric, identified by specifying values for all of the labels of a |
| 2004 * `MetricDescriptor`. | 2014 * MetricDescriptor. |
| 2005 */ | 2015 */ |
| 2006 class Metric { | 2016 class Metric { |
| 2007 /** | 2017 /** |
| 2008 * The set of labels that uniquely identify a metric. To specify a metric, all | 2018 * The set of label values that uniquely identify this metric. All labels |
| 2009 * labels enumerated in the `MetricDescriptor` must be assigned values. | 2019 * listed in the MetricDescriptor must be assigned values. |
| 2010 */ | 2020 */ |
| 2011 core.Map<core.String, core.String> labels; | 2021 core.Map<core.String, core.String> labels; |
| 2012 /** | 2022 /** |
| 2013 * An existing metric type, see google.api.MetricDescriptor. For example, | 2023 * An existing metric type, see google.api.MetricDescriptor. For example, |
| 2014 * `compute.googleapis.com/instance/cpu/usage_time`. | 2024 * custom.googleapis.com/invoice/paid/amount. |
| 2015 */ | 2025 */ |
| 2016 core.String type; | 2026 core.String type; |
| 2017 | 2027 |
| 2018 Metric(); | 2028 Metric(); |
| 2019 | 2029 |
| 2020 Metric.fromJson(core.Map _json) { | 2030 Metric.fromJson(core.Map _json) { |
| 2021 if (_json.containsKey("labels")) { | 2031 if (_json.containsKey("labels")) { |
| 2022 labels = _json["labels"]; | 2032 labels = _json["labels"]; |
| 2023 } | 2033 } |
| 2024 if (_json.containsKey("type")) { | 2034 if (_json.containsKey("type")) { |
| 2025 type = _json["type"]; | 2035 type = _json["type"]; |
| 2026 } | 2036 } |
| 2027 } | 2037 } |
| 2028 | 2038 |
| 2029 core.Map toJson() { | 2039 core.Map toJson() { |
| 2030 var _json = new core.Map(); | 2040 var _json = new core.Map(); |
| 2031 if (labels != null) { | 2041 if (labels != null) { |
| 2032 _json["labels"] = labels; | 2042 _json["labels"] = labels; |
| 2033 } | 2043 } |
| 2034 if (type != null) { | 2044 if (type != null) { |
| 2035 _json["type"] = type; | 2045 _json["type"] = type; |
| 2036 } | 2046 } |
| 2037 return _json; | 2047 return _json; |
| 2038 } | 2048 } |
| 2039 } | 2049 } |
| 2040 | 2050 |
| 2041 /** Defines a metric type and its schema. */ | 2051 /** |
| 2052 * Defines a metric type and its schema. Once a metric descriptor is created, |
| 2053 * deleting or altering it stops data collection and makes the metric type's |
| 2054 * existing data unusable. |
| 2055 */ |
| 2042 class MetricDescriptor { | 2056 class MetricDescriptor { |
| 2043 /** | 2057 /** |
| 2044 * A detailed description of the metric, which can be used in documentation. | 2058 * A detailed description of the metric, which can be used in documentation. |
| 2045 */ | 2059 */ |
| 2046 core.String description; | 2060 core.String description; |
| 2047 /** | 2061 /** |
| 2048 * A concise name for the metric, which can be displayed in user interfaces. | 2062 * A concise name for the metric, which can be displayed in user interfaces. |
| 2049 * Use sentence case without an ending period, for example "Request count". | 2063 * Use sentence case without an ending period, for example "Request count". |
| 2050 */ | 2064 */ |
| 2051 core.String displayName; | 2065 core.String displayName; |
| 2052 /** | 2066 /** |
| 2053 * The set of labels that can be used to describe a specific instance of this | 2067 * The set of labels that can be used to describe a specific instance of this |
| 2054 * metric type. For example, the | 2068 * metric type. For example, the |
| 2055 * `compute.googleapis.com/instance/network/received_bytes_count` metric type | 2069 * appengine.googleapis.com/http/server/response_latencies metric type has a |
| 2056 * has a label, `loadbalanced`, that specifies whether the traffic was | 2070 * label for the HTTP response code, response_code, so you can look at |
| 2057 * received through a load balanced IP address. | 2071 * latencies for successful responses or just for responses that failed. |
| 2058 */ | 2072 */ |
| 2059 core.List<LabelDescriptor> labels; | 2073 core.List<LabelDescriptor> labels; |
| 2060 /** | 2074 /** |
| 2061 * Whether the metric records instantaneous values, changes to a value, etc. | 2075 * Whether the metric records instantaneous values, changes to a value, etc. |
| 2076 * Some combinations of metric_kind and value_type might not be supported. |
| 2062 * Possible string values are: | 2077 * Possible string values are: |
| 2063 * - "METRIC_KIND_UNSPECIFIED" : A METRIC_KIND_UNSPECIFIED. | 2078 * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value. |
| 2064 * - "GAUGE" : A GAUGE. | 2079 * - "GAUGE" : An instantaneous measurement of a value. |
| 2065 * - "DELTA" : A DELTA. | 2080 * - "DELTA" : The change in a value during a time interval. |
| 2066 * - "CUMULATIVE" : A CUMULATIVE. | 2081 * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative |
| 2082 * measurements in a time series should have the same start time and |
| 2083 * increasing end times, until an event resets the cumulative value to zero |
| 2084 * and sets a new start time for the following points. |
| 2067 */ | 2085 */ |
| 2068 core.String metricKind; | 2086 core.String metricKind; |
| 2069 /** | 2087 /** |
| 2070 * Resource name. The format of the name may vary between different | 2088 * The resource name of the metric descriptor. Depending on the |
| 2071 * implementations. For examples: | 2089 * implementation, the name typically includes: (1) the parent resource name |
| 2072 * projects/{project_id}/metricDescriptors/{type=**} | 2090 * that defines the scope of the metric type or of its data; and (2) the |
| 2073 * metricDescriptors/{type=**} | 2091 * metric's URL-encoded type, which also appears in the type field of this |
| 2092 * descriptor. For example, following is the resource name of a custom metric |
| 2093 * within the GCP project 123456789: |
| 2094 * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%
2Fpaid%2Famount" |
| 2074 */ | 2095 */ |
| 2075 core.String name; | 2096 core.String name; |
| 2076 /** | 2097 /** |
| 2077 * The metric type including a DNS name prefix, for example | 2098 * The metric type, including its DNS name prefix. The type is not |
| 2078 * `"compute.googleapis.com/instance/cpu/utilization"`. Metric types should | 2099 * URL-encoded. All user-defined metric types have the DNS name |
| 2079 * use a natural hierarchical grouping such as the following: | 2100 * custom.googleapis.com. Metric types should use a natural hierarchical |
| 2080 * compute.googleapis.com/instance/cpu/utilization | 2101 * grouping. For example: |
| 2081 * compute.googleapis.com/instance/disk/read_ops_count | 2102 * "custom.googleapis.com/invoice/paid/amount" |
| 2082 * compute.googleapis.com/instance/network/received_bytes_count Note that if | 2103 * "appengine.googleapis.com/http/server/response_latencies" |
| 2083 * the metric type changes, the monitoring data will be discontinued, and | |
| 2084 * anything depends on it will break, such as monitoring dashboards, alerting | |
| 2085 * rules and quota limits. Therefore, once a metric has been published, its | |
| 2086 * type should be immutable. | |
| 2087 */ | 2104 */ |
| 2088 core.String type; | 2105 core.String type; |
| 2089 /** | 2106 /** |
| 2090 * The unit in which the metric value is reported. It is only applicable if | 2107 * The unit in which the metric value is reported. It is only applicable if |
| 2091 * the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported | 2108 * the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a |
| 2092 * units are a subset of [The Unified Code for Units of | 2109 * subset of The Unified Code for Units of Measure |
| 2093 * Measure](http://unitsofmeasure.org/ucum.html) standard: **Basic units | 2110 * (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) |
| 2094 * (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * | 2111 * bit bit |
| 2095 * `d` day **Prefixes (PREFIX)** * `k` kilo (10**3) * `M` mega (10**6) * `G` | 2112 * By byte |
| 2096 * giga (10**9) * `T` tera (10**12) * `P` peta (10**15) * `E` exa (10**18) * | 2113 * s second |
| 2097 * `Z` zetta (10**21) * `Y` yotta (10**24) * `m` milli (10**-3) * `u` micro | 2114 * min minute |
| 2098 * (10**-6) * `n` nano (10**-9) * `p` pico (10**-12) * `f` femto (10**-15) * | 2115 * h hour |
| 2099 * `a` atto (10**-18) * `z` zepto (10**-21) * `y` yocto (10**-24) * `Ki` kibi | 2116 * d dayPrefixes (PREFIX) |
| 2100 * (2**10) * `Mi` mebi (2**20) * `Gi` gibi (2**30) * `Ti` tebi (2**40) | 2117 * k kilo (10**3) |
| 2101 * **Grammar** The grammar includes the dimensionless unit `1`, such as `1/s`. | 2118 * M mega (10**6) |
| 2102 * The grammar also includes these connectors: * `/` division (as an infix | 2119 * G giga (10**9) |
| 2103 * operator, e.g. `1/s`). * `.` multiplication (as an infix operator, e.g. | 2120 * T tera (10**12) |
| 2104 * `GBy.d`) The grammar for a unit is as follows: Expression = Component { "." | 2121 * P peta (10**15) |
| 2105 * Component } { "/" Component } ; Component = [ PREFIX ] UNIT [ Annotation ] | 2122 * E exa (10**18) |
| 2106 * | Annotation | "1" ; Annotation = "{" NAME "}" ; Notes: * `Annotation` is | 2123 * Z zetta (10**21) |
| 2107 * just a comment if it follows a `UNIT` and is equivalent to `1` if it is | 2124 * Y yotta (10**24) |
| 2108 * used alone. For examples, `{requests}/s == 1/s`, `By{transmitted}/s == | 2125 * m milli (10**-3) |
| 2109 * By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not | 2126 * u micro (10**-6) |
| 2110 * containing '{' or '}'. | 2127 * n nano (10**-9) |
| 2128 * p pico (10**-12) |
| 2129 * f femto (10**-15) |
| 2130 * a atto (10**-18) |
| 2131 * z zepto (10**-21) |
| 2132 * y yocto (10**-24) |
| 2133 * Ki kibi (2**10) |
| 2134 * Mi mebi (2**20) |
| 2135 * Gi gibi (2**30) |
| 2136 * Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such |
| 2137 * as 1/s.The grammar also includes these connectors: |
| 2138 * / division (as an infix operator, e.g. 1/s). |
| 2139 * . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit |
| 2140 * is as follows: |
| 2141 * Expression = Component { "." Component } { "/" |
| 2142 * Component } ; |
| 2143 * |
| 2144 * Component = [ PREFIX ] UNIT [ Annotation ] |
| 2145 * | Annotation |
| 2146 * | "1" |
| 2147 * ; |
| 2148 * |
| 2149 * Annotation = "{" NAME "}" ; |
| 2150 * Notes: |
| 2151 * Annotation is just a comment if it follows a UNIT and is equivalent to 1 |
| 2152 * if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s |
| 2153 * == By/s. |
| 2154 * NAME is a sequence of non-blank printable ASCII characters not containing |
| 2155 * '{' or '}'. |
| 2111 */ | 2156 */ |
| 2112 core.String unit; | 2157 core.String unit; |
| 2113 /** | 2158 /** |
| 2114 * Whether the measurement is an integer, a floating-point number, etc. | 2159 * Whether the measurement is an integer, a floating-point number, etc. Some |
| 2160 * combinations of metric_kind and value_type might not be supported. |
| 2115 * Possible string values are: | 2161 * Possible string values are: |
| 2116 * - "VALUE_TYPE_UNSPECIFIED" : A VALUE_TYPE_UNSPECIFIED. | 2162 * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value. |
| 2117 * - "BOOL" : A BOOL. | 2163 * - "BOOL" : The value is a boolean. This value type can be used only if the |
| 2118 * - "INT64" : A INT64. | 2164 * metric kind is GAUGE. |
| 2119 * - "DOUBLE" : A DOUBLE. | 2165 * - "INT64" : The value is a signed 64-bit integer. |
| 2120 * - "STRING" : A STRING. | 2166 * - "DOUBLE" : The value is a double precision floating point number. |
| 2121 * - "DISTRIBUTION" : A DISTRIBUTION. | 2167 * - "STRING" : The value is a text string. This value type can be used only |
| 2122 * - "MONEY" : A MONEY. | 2168 * if the metric kind is GAUGE. |
| 2169 * - "DISTRIBUTION" : The value is a Distribution. |
| 2170 * - "MONEY" : The value is money. |
| 2123 */ | 2171 */ |
| 2124 core.String valueType; | 2172 core.String valueType; |
| 2125 | 2173 |
| 2126 MetricDescriptor(); | 2174 MetricDescriptor(); |
| 2127 | 2175 |
| 2128 MetricDescriptor.fromJson(core.Map _json) { | 2176 MetricDescriptor.fromJson(core.Map _json) { |
| 2129 if (_json.containsKey("description")) { | 2177 if (_json.containsKey("description")) { |
| 2130 description = _json["description"]; | 2178 description = _json["description"]; |
| 2131 } | 2179 } |
| 2132 if (_json.containsKey("displayName")) { | 2180 if (_json.containsKey("displayName")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2178 if (valueType != null) { | 2226 if (valueType != null) { |
| 2179 _json["valueType"] = valueType; | 2227 _json["valueType"] = valueType; |
| 2180 } | 2228 } |
| 2181 return _json; | 2229 return _json; |
| 2182 } | 2230 } |
| 2183 } | 2231 } |
| 2184 | 2232 |
| 2185 /** | 2233 /** |
| 2186 * An object representing a resource that can be used for monitoring, logging, | 2234 * An object representing a resource that can be used for monitoring, logging, |
| 2187 * billing, or other purposes. Examples include virtual machine instances, | 2235 * billing, or other purposes. Examples include virtual machine instances, |
| 2188 * databases, and storage devices such as disks. The `type` field identifies a | 2236 * databases, and storage devices such as disks. The type field identifies a |
| 2189 * MonitoredResourceDescriptor object that describes the resource's schema. | 2237 * MonitoredResourceDescriptor object that describes the resource's schema. |
| 2190 * Information in the `labels` field identifies the actual resource and its | 2238 * Information in the labels field identifies the actual resource and its |
| 2191 * attributes according to the schema. For example, a particular Compute Engine | 2239 * attributes according to the schema. For example, a particular Compute Engine |
| 2192 * VM instance could be represented by the following object, because the | 2240 * VM instance could be represented by the following object, because the |
| 2193 * MonitoredResourceDescriptor for `"gce_instance"` has labels `"instance_id"` | 2241 * MonitoredResourceDescriptor for "gce_instance" has labels |
| 2194 * and `"zone"`: { "type": "gce_instance", "labels": { "instance_id": | 2242 * "instance_id" and "zone": |
| 2195 * "my-instance", "zone": "us-central1-a" }} | 2243 * { "type": "gce_instance", |
| 2244 * "labels": { "instance_id": "12345678901234", |
| 2245 * "zone": "us-central1-a" }} |
| 2196 */ | 2246 */ |
| 2197 class MonitoredResource { | 2247 class MonitoredResource { |
| 2198 /** | 2248 /** |
| 2199 * Required. Values for all of the labels listed in the associated monitored | 2249 * Required. Values for all of the labels listed in the associated monitored |
| 2200 * resource descriptor. For example, Cloud SQL databases use the labels | 2250 * resource descriptor. For example, Cloud SQL databases use the labels |
| 2201 * `"database_id"` and `"zone"`. | 2251 * "database_id" and "zone". |
| 2202 */ | 2252 */ |
| 2203 core.Map<core.String, core.String> labels; | 2253 core.Map<core.String, core.String> labels; |
| 2204 /** | 2254 /** |
| 2205 * Required. The monitored resource type. This field must match the `type` | 2255 * Required. The monitored resource type. This field must match the type field |
| 2206 * field of a MonitoredResourceDescriptor object. For example, the type of a | 2256 * of a MonitoredResourceDescriptor object. For example, the type of a Cloud |
| 2207 * Cloud SQL database is `"cloudsql_database"`. | 2257 * SQL database is "cloudsql_database". |
| 2208 */ | 2258 */ |
| 2209 core.String type; | 2259 core.String type; |
| 2210 | 2260 |
| 2211 MonitoredResource(); | 2261 MonitoredResource(); |
| 2212 | 2262 |
| 2213 MonitoredResource.fromJson(core.Map _json) { | 2263 MonitoredResource.fromJson(core.Map _json) { |
| 2214 if (_json.containsKey("labels")) { | 2264 if (_json.containsKey("labels")) { |
| 2215 labels = _json["labels"]; | 2265 labels = _json["labels"]; |
| 2216 } | 2266 } |
| 2217 if (_json.containsKey("type")) { | 2267 if (_json.containsKey("type")) { |
| 2218 type = _json["type"]; | 2268 type = _json["type"]; |
| 2219 } | 2269 } |
| 2220 } | 2270 } |
| 2221 | 2271 |
| 2222 core.Map toJson() { | 2272 core.Map toJson() { |
| 2223 var _json = new core.Map(); | 2273 var _json = new core.Map(); |
| 2224 if (labels != null) { | 2274 if (labels != null) { |
| 2225 _json["labels"] = labels; | 2275 _json["labels"] = labels; |
| 2226 } | 2276 } |
| 2227 if (type != null) { | 2277 if (type != null) { |
| 2228 _json["type"] = type; | 2278 _json["type"] = type; |
| 2229 } | 2279 } |
| 2230 return _json; | 2280 return _json; |
| 2231 } | 2281 } |
| 2232 } | 2282 } |
| 2233 | 2283 |
| 2234 /** | 2284 /** |
| 2235 * An object that describes the schema of a MonitoredResource object using a | 2285 * An object that describes the schema of a MonitoredResource object using a |
| 2236 * type name and a set of labels. For example, the monitored resource descriptor | 2286 * type name and a set of labels. For example, the monitored resource descriptor |
| 2237 * for Google Compute Engine VM instances has a type of `"gce_instance"` and | 2287 * for Google Compute Engine VM instances has a type of "gce_instance" |
| 2238 * specifies the use of the labels `"instance_id"` and `"zone"` to identify | 2288 * and specifies the use of the labels "instance_id" and |
| 2239 * particular VM instances. Different APIs can support different monitored | 2289 * "zone" to identify particular VM instances.Different APIs can |
| 2240 * resource types. APIs generally provide a `list` method that returns the | 2290 * support different monitored resource types. APIs generally provide a list |
| 2241 * monitored resource descriptors used by the API. | 2291 * method that returns the monitored resource descriptors used by the API. |
| 2242 */ | 2292 */ |
| 2243 class MonitoredResourceDescriptor { | 2293 class MonitoredResourceDescriptor { |
| 2244 /** | 2294 /** |
| 2245 * Optional. A detailed description of the monitored resource type that might | 2295 * Optional. A detailed description of the monitored resource type that might |
| 2246 * be used in documentation. | 2296 * be used in documentation. |
| 2247 */ | 2297 */ |
| 2248 core.String description; | 2298 core.String description; |
| 2249 /** | 2299 /** |
| 2250 * Optional. A concise name for the monitored resource type that might be | 2300 * Optional. A concise name for the monitored resource type that might be |
| 2251 * displayed in user interfaces. For example, `"Google Cloud SQL Database"`. | 2301 * displayed in user interfaces. It should be a Title Cased Noun Phrase, |
| 2302 * without any article or other determiners. For example, "Google Cloud |
| 2303 * SQL Database". |
| 2252 */ | 2304 */ |
| 2253 core.String displayName; | 2305 core.String displayName; |
| 2254 /** | 2306 /** |
| 2255 * Required. A set of labels used to describe instances of this monitored | 2307 * Required. A set of labels used to describe instances of this monitored |
| 2256 * resource type. For example, an individual Google Cloud SQL database is | 2308 * resource type. For example, an individual Google Cloud SQL database is |
| 2257 * identified by values for the labels `"database_id"` and `"zone"`. | 2309 * identified by values for the labels "database_id" and |
| 2310 * "zone". |
| 2258 */ | 2311 */ |
| 2259 core.List<LabelDescriptor> labels; | 2312 core.List<LabelDescriptor> labels; |
| 2260 /** | 2313 /** |
| 2261 * Optional. The resource name of the monitored resource descriptor: | 2314 * Optional. The resource name of the monitored resource descriptor: |
| 2262 * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type} | 2315 * "projects/{project_id}/monitoredResourceDescriptors/{type}" where |
| 2263 * is the value of the `type` field in this object and {project_id} is a | 2316 * {type} is the value of the type field in this object and {project_id} is a |
| 2264 * project ID that provides API-specific context for accessing the type. APIs | 2317 * project ID that provides API-specific context for accessing the type. APIs |
| 2265 * that do not use project information can use the resource name format | 2318 * that do not use project information can use the resource name format |
| 2266 * `"monitoredResourceDescriptors/{type}"`. | 2319 * "monitoredResourceDescriptors/{type}". |
| 2267 */ | 2320 */ |
| 2268 core.String name; | 2321 core.String name; |
| 2269 /** | 2322 /** |
| 2270 * Required. The monitored resource type. For example, the type | 2323 * Required. The monitored resource type. For example, the type |
| 2271 * `"cloudsql_database"` represents databases in Google Cloud SQL. | 2324 * "cloudsql_database" represents databases in Google Cloud SQL. The |
| 2325 * maximum length of this value is 256 characters. |
| 2272 */ | 2326 */ |
| 2273 core.String type; | 2327 core.String type; |
| 2274 | 2328 |
| 2275 MonitoredResourceDescriptor(); | 2329 MonitoredResourceDescriptor(); |
| 2276 | 2330 |
| 2277 MonitoredResourceDescriptor.fromJson(core.Map _json) { | 2331 MonitoredResourceDescriptor.fromJson(core.Map _json) { |
| 2278 if (_json.containsKey("description")) { | 2332 if (_json.containsKey("description")) { |
| 2279 description = _json["description"]; | 2333 description = _json["description"]; |
| 2280 } | 2334 } |
| 2281 if (_json.containsKey("displayName")) { | 2335 if (_json.containsKey("displayName")) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2311 } | 2365 } |
| 2312 return _json; | 2366 return _json; |
| 2313 } | 2367 } |
| 2314 } | 2368 } |
| 2315 | 2369 |
| 2316 /** | 2370 /** |
| 2317 * A protocol buffer option, which can be attached to a message, field, | 2371 * A protocol buffer option, which can be attached to a message, field, |
| 2318 * enumeration, etc. | 2372 * enumeration, etc. |
| 2319 */ | 2373 */ |
| 2320 class Option { | 2374 class Option { |
| 2321 /** The option's name. For example, `"java_package"`. */ | 2375 /** The option's name. For example, "java_package". */ |
| 2322 core.String name; | 2376 core.String name; |
| 2323 /** | 2377 /** |
| 2324 * The option's value. For example, `"com.google.protobuf"`. | 2378 * The option's value. For example, "com.google.protobuf". |
| 2325 * | 2379 * |
| 2326 * The values for Object must be JSON objects. It can consist of `num`, | 2380 * The values for Object must be JSON objects. It can consist of `num`, |
| 2327 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2381 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2328 */ | 2382 */ |
| 2329 core.Map<core.String, core.Object> value; | 2383 core.Map<core.String, core.Object> value; |
| 2330 | 2384 |
| 2331 Option(); | 2385 Option(); |
| 2332 | 2386 |
| 2333 Option.fromJson(core.Map _json) { | 2387 Option.fromJson(core.Map _json) { |
| 2334 if (_json.containsKey("name")) { | 2388 if (_json.containsKey("name")) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2346 } | 2400 } |
| 2347 if (value != null) { | 2401 if (value != null) { |
| 2348 _json["value"] = value; | 2402 _json["value"] = value; |
| 2349 } | 2403 } |
| 2350 return _json; | 2404 return _json; |
| 2351 } | 2405 } |
| 2352 } | 2406 } |
| 2353 | 2407 |
| 2354 /** A single data point in a time series. */ | 2408 /** A single data point in a time series. */ |
| 2355 class Point { | 2409 class Point { |
| 2356 /** The time interval to which the value applies. */ | 2410 /** |
| 2411 * The time interval to which the data point applies. For GAUGE metrics, only |
| 2412 * the end time of the interval is used. For DELTA metrics, the start and end |
| 2413 * time should specify a non-zero interval, with subsequent points specifying |
| 2414 * contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start |
| 2415 * and end time should specify a non-zero interval, with subsequent points |
| 2416 * specifying the same start time and increasing end times, until an event |
| 2417 * resets the cumulative value to zero and sets a new start time for the |
| 2418 * following points. |
| 2419 */ |
| 2357 TimeInterval interval; | 2420 TimeInterval interval; |
| 2358 /** The value of the data point. */ | 2421 /** The value of the data point. */ |
| 2359 TypedValue value; | 2422 TypedValue value; |
| 2360 | 2423 |
| 2361 Point(); | 2424 Point(); |
| 2362 | 2425 |
| 2363 Point.fromJson(core.Map _json) { | 2426 Point.fromJson(core.Map _json) { |
| 2364 if (_json.containsKey("interval")) { | 2427 if (_json.containsKey("interval")) { |
| 2365 interval = new TimeInterval.fromJson(_json["interval"]); | 2428 interval = new TimeInterval.fromJson(_json["interval"]); |
| 2366 } | 2429 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2405 _json["max"] = max; | 2468 _json["max"] = max; |
| 2406 } | 2469 } |
| 2407 if (min != null) { | 2470 if (min != null) { |
| 2408 _json["min"] = min; | 2471 _json["min"] = min; |
| 2409 } | 2472 } |
| 2410 return _json; | 2473 return _json; |
| 2411 } | 2474 } |
| 2412 } | 2475 } |
| 2413 | 2476 |
| 2414 /** | 2477 /** |
| 2415 * `SourceContext` represents information about the source of a protobuf | 2478 * SourceContext represents information about the source of a protobuf element, |
| 2416 * element, like the file in which it is defined. | 2479 * like the file in which it is defined. |
| 2417 */ | 2480 */ |
| 2418 class SourceContext { | 2481 class SourceContext { |
| 2419 /** | 2482 /** |
| 2420 * The path-qualified name of the .proto file that contained the associated | 2483 * The path-qualified name of the .proto file that contained the associated |
| 2421 * protobuf element. For example: `"google/protobuf/source.proto"`. | 2484 * protobuf element. For example: |
| 2485 * "google/protobuf/source_context.proto". |
| 2422 */ | 2486 */ |
| 2423 core.String fileName; | 2487 core.String fileName; |
| 2424 | 2488 |
| 2425 SourceContext(); | 2489 SourceContext(); |
| 2426 | 2490 |
| 2427 SourceContext.fromJson(core.Map _json) { | 2491 SourceContext.fromJson(core.Map _json) { |
| 2428 if (_json.containsKey("fileName")) { | 2492 if (_json.containsKey("fileName")) { |
| 2429 fileName = _json["fileName"]; | 2493 fileName = _json["fileName"]; |
| 2430 } | 2494 } |
| 2431 } | 2495 } |
| 2432 | 2496 |
| 2433 core.Map toJson() { | 2497 core.Map toJson() { |
| 2434 var _json = new core.Map(); | 2498 var _json = new core.Map(); |
| 2435 if (fileName != null) { | 2499 if (fileName != null) { |
| 2436 _json["fileName"] = fileName; | 2500 _json["fileName"] = fileName; |
| 2437 } | 2501 } |
| 2438 return _json; | 2502 return _json; |
| 2439 } | 2503 } |
| 2440 } | 2504 } |
| 2441 | 2505 |
| 2442 /** | 2506 /** |
| 2443 * A time interval extending from after `startTime` through `endTime`. If | 2507 * A time interval extending just after a start time through an end time. If the |
| 2444 * `startTime` is omitted, the interval is the single point in time, `endTime`. | 2508 * start time is the same as the end time, then the interval represents a single |
| 2509 * point in time. |
| 2445 */ | 2510 */ |
| 2446 class TimeInterval { | 2511 class TimeInterval { |
| 2447 /** Required. The end of the interval. The interval includes this time. */ | 2512 /** Required. The end of the time interval. */ |
| 2448 core.String endTime; | 2513 core.String endTime; |
| 2449 /** | 2514 /** |
| 2450 * If this value is omitted, the interval is a point in time, `endTime`. If | 2515 * Optional. The beginning of the time interval. The default value for the |
| 2451 * `startTime` is present, it must be earlier than (less than) `endTime`. The | 2516 * start time is the end time. The start time must not be later than the end |
| 2452 * interval begins after `startTime`—it does not include `startTime`. | 2517 * time. |
| 2453 */ | 2518 */ |
| 2454 core.String startTime; | 2519 core.String startTime; |
| 2455 | 2520 |
| 2456 TimeInterval(); | 2521 TimeInterval(); |
| 2457 | 2522 |
| 2458 TimeInterval.fromJson(core.Map _json) { | 2523 TimeInterval.fromJson(core.Map _json) { |
| 2459 if (_json.containsKey("endTime")) { | 2524 if (_json.containsKey("endTime")) { |
| 2460 endTime = _json["endTime"]; | 2525 endTime = _json["endTime"]; |
| 2461 } | 2526 } |
| 2462 if (_json.containsKey("startTime")) { | 2527 if (_json.containsKey("startTime")) { |
| 2463 startTime = _json["startTime"]; | 2528 startTime = _json["startTime"]; |
| 2464 } | 2529 } |
| 2465 } | 2530 } |
| 2466 | 2531 |
| 2467 core.Map toJson() { | 2532 core.Map toJson() { |
| 2468 var _json = new core.Map(); | 2533 var _json = new core.Map(); |
| 2469 if (endTime != null) { | 2534 if (endTime != null) { |
| 2470 _json["endTime"] = endTime; | 2535 _json["endTime"] = endTime; |
| 2471 } | 2536 } |
| 2472 if (startTime != null) { | 2537 if (startTime != null) { |
| 2473 _json["startTime"] = startTime; | 2538 _json["startTime"] = startTime; |
| 2474 } | 2539 } |
| 2475 return _json; | 2540 return _json; |
| 2476 } | 2541 } |
| 2477 } | 2542 } |
| 2478 | 2543 |
| 2479 /** | 2544 /** |
| 2480 * A collection of data points that describes the time-varying nature of a | 2545 * A collection of data points that describes the time-varying values of a |
| 2481 * metric. A time series is identified by a combination of a fully-specified | 2546 * metric. A time series is identified by a combination of a fully-specified |
| 2482 * monitored resource and a fully-specified metric. | 2547 * monitored resource and a fully-specified metric. This type is used for both |
| 2548 * listing and creating time series. |
| 2483 */ | 2549 */ |
| 2484 class TimeSeries { | 2550 class TimeSeries { |
| 2485 /** The fully-specified metric used to identify the time series. */ | 2551 /** |
| 2552 * The associated metric. A fully-specified metric used to identify the time |
| 2553 * series. |
| 2554 */ |
| 2486 Metric metric; | 2555 Metric metric; |
| 2487 /** | 2556 /** |
| 2488 * The metric kind of the time series. This can be different than the metric | 2557 * The metric kind of the time series. When listing time series, this metric |
| 2489 * kind specified in [google.api.MetricDescriptor] because of alignment and | 2558 * kind might be different from the metric kind of the associated metric if |
| 2490 * reduction operations on the data. This field is ignored when writing data; | 2559 * this time series is an alignment or reduction of other time series.When |
| 2491 * the value specified in the descriptor is used instead. @OutputOnly | 2560 * creating a time series, this field is optional. If present, it must be the |
| 2561 * same as the metric kind of the associated metric. If the associated |
| 2562 * metric's descriptor must be auto-created, then this field specifies the |
| 2563 * metric kind of the new descriptor and must be either GAUGE (the default) or |
| 2564 * CUMULATIVE. |
| 2492 * Possible string values are: | 2565 * Possible string values are: |
| 2493 * - "METRIC_KIND_UNSPECIFIED" : A METRIC_KIND_UNSPECIFIED. | 2566 * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value. |
| 2494 * - "GAUGE" : A GAUGE. | 2567 * - "GAUGE" : An instantaneous measurement of a value. |
| 2495 * - "DELTA" : A DELTA. | 2568 * - "DELTA" : The change in a value during a time interval. |
| 2496 * - "CUMULATIVE" : A CUMULATIVE. | 2569 * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative |
| 2570 * measurements in a time series should have the same start time and |
| 2571 * increasing end times, until an event resets the cumulative value to zero |
| 2572 * and sets a new start time for the following points. |
| 2497 */ | 2573 */ |
| 2498 core.String metricKind; | 2574 core.String metricKind; |
| 2499 /** | 2575 /** |
| 2500 * The data points of this time series. When used as output, points will be | 2576 * The data points of this time series. When listing time series, the order of |
| 2501 * sorted by decreasing time order. When used as input, points could be | 2577 * the points is specified by the list method.When creating a time series, |
| 2502 * written in any orders. | 2578 * this field must contain exactly one point and the point's type must be the |
| 2579 * same as the value type of the associated metric. If the associated metric's |
| 2580 * descriptor must be auto-created, then the value type of the descriptor is |
| 2581 * determined by the point's type, which must be BOOL, INT64, DOUBLE, or |
| 2582 * DISTRIBUTION. |
| 2503 */ | 2583 */ |
| 2504 core.List<Point> points; | 2584 core.List<Point> points; |
| 2505 /** | 2585 /** |
| 2506 * The fully-specified monitored resource used to identify the time series. | 2586 * The associated resource. A fully-specified monitored resource used to |
| 2587 * identify the time series. |
| 2507 */ | 2588 */ |
| 2508 MonitoredResource resource; | 2589 MonitoredResource resource; |
| 2509 /** | 2590 /** |
| 2510 * The value type of the time series. This can be different than the value | 2591 * The value type of the time series. When listing time series, this value |
| 2511 * type specified in [google.api.MetricDescriptor] because of alignment and | 2592 * type might be different from the value type of the associated metric if |
| 2512 * reduction operations on the data. This field is ignored when writing data; | 2593 * this time series is an alignment or reduction of other time series.When |
| 2513 * the value specified in the descriptor is used instead. @OutputOnly | 2594 * creating a time series, this field is optional. If present, it must be the |
| 2595 * same as the type of the data in the points field. |
| 2514 * Possible string values are: | 2596 * Possible string values are: |
| 2515 * - "VALUE_TYPE_UNSPECIFIED" : A VALUE_TYPE_UNSPECIFIED. | 2597 * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value. |
| 2516 * - "BOOL" : A BOOL. | 2598 * - "BOOL" : The value is a boolean. This value type can be used only if the |
| 2517 * - "INT64" : A INT64. | 2599 * metric kind is GAUGE. |
| 2518 * - "DOUBLE" : A DOUBLE. | 2600 * - "INT64" : The value is a signed 64-bit integer. |
| 2519 * - "STRING" : A STRING. | 2601 * - "DOUBLE" : The value is a double precision floating point number. |
| 2520 * - "DISTRIBUTION" : A DISTRIBUTION. | 2602 * - "STRING" : The value is a text string. This value type can be used only |
| 2521 * - "MONEY" : A MONEY. | 2603 * if the metric kind is GAUGE. |
| 2604 * - "DISTRIBUTION" : The value is a Distribution. |
| 2605 * - "MONEY" : The value is money. |
| 2522 */ | 2606 */ |
| 2523 core.String valueType; | 2607 core.String valueType; |
| 2524 | 2608 |
| 2525 TimeSeries(); | 2609 TimeSeries(); |
| 2526 | 2610 |
| 2527 TimeSeries.fromJson(core.Map _json) { | 2611 TimeSeries.fromJson(core.Map _json) { |
| 2528 if (_json.containsKey("metric")) { | 2612 if (_json.containsKey("metric")) { |
| 2529 metric = new Metric.fromJson(_json["metric"]); | 2613 metric = new Metric.fromJson(_json["metric"]); |
| 2530 } | 2614 } |
| 2531 if (_json.containsKey("metricKind")) { | 2615 if (_json.containsKey("metricKind")) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2562 return _json; | 2646 return _json; |
| 2563 } | 2647 } |
| 2564 } | 2648 } |
| 2565 | 2649 |
| 2566 /** A protocol buffer message type. */ | 2650 /** A protocol buffer message type. */ |
| 2567 class Type { | 2651 class Type { |
| 2568 /** The list of fields. */ | 2652 /** The list of fields. */ |
| 2569 core.List<Field> fields; | 2653 core.List<Field> fields; |
| 2570 /** The fully qualified message name. */ | 2654 /** The fully qualified message name. */ |
| 2571 core.String name; | 2655 core.String name; |
| 2572 /** The list of types appearing in `oneof` definitions in this type. */ | 2656 /** The list of types appearing in oneof definitions in this type. */ |
| 2573 core.List<core.String> oneofs; | 2657 core.List<core.String> oneofs; |
| 2574 /** The protocol buffer options. */ | 2658 /** The protocol buffer options. */ |
| 2575 core.List<Option> options; | 2659 core.List<Option> options; |
| 2576 /** The source context. */ | 2660 /** The source context. */ |
| 2577 SourceContext sourceContext; | 2661 SourceContext sourceContext; |
| 2578 /** | 2662 /** |
| 2579 * The source syntax. | 2663 * The source syntax. |
| 2580 * Possible string values are: | 2664 * Possible string values are: |
| 2581 * - "SYNTAX_PROTO2" : A SYNTAX_PROTO2. | 2665 * - "SYNTAX_PROTO2" : Syntax proto2. |
| 2582 * - "SYNTAX_PROTO3" : A SYNTAX_PROTO3. | 2666 * - "SYNTAX_PROTO3" : Syntax proto3. |
| 2583 */ | 2667 */ |
| 2584 core.String syntax; | 2668 core.String syntax; |
| 2585 | 2669 |
| 2586 Type(); | 2670 Type(); |
| 2587 | 2671 |
| 2588 Type.fromJson(core.Map _json) { | 2672 Type.fromJson(core.Map _json) { |
| 2589 if (_json.containsKey("fields")) { | 2673 if (_json.containsKey("fields")) { |
| 2590 fields = _json["fields"].map((value) => new Field.fromJson(value)).toList(
); | 2674 fields = _json["fields"].map((value) => new Field.fromJson(value)).toList(
); |
| 2591 } | 2675 } |
| 2592 if (_json.containsKey("name")) { | 2676 if (_json.containsKey("name")) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2625 } | 2709 } |
| 2626 if (syntax != null) { | 2710 if (syntax != null) { |
| 2627 _json["syntax"] = syntax; | 2711 _json["syntax"] = syntax; |
| 2628 } | 2712 } |
| 2629 return _json; | 2713 return _json; |
| 2630 } | 2714 } |
| 2631 } | 2715 } |
| 2632 | 2716 |
| 2633 /** A single strongly-typed value. */ | 2717 /** A single strongly-typed value. */ |
| 2634 class TypedValue { | 2718 class TypedValue { |
| 2635 /** A Boolean value: `true` or `false`. */ | 2719 /** A Boolean value: true or false. */ |
| 2636 core.bool boolValue; | 2720 core.bool boolValue; |
| 2637 /** A distribution value. */ | 2721 /** A distribution value. */ |
| 2638 Distribution distributionValue; | 2722 Distribution distributionValue; |
| 2639 /** | 2723 /** |
| 2640 * A 64-bit double-precision floating-point number. Its magnitude is | 2724 * A 64-bit double-precision floating-point number. Its magnitude is |
| 2641 * approximately ±10±300 and it has 16 significant digits of precision. | 2725 * approximately ±10<sup>±300</sup> and it has 16 significant |
| 2726 * digits of precision. |
| 2642 */ | 2727 */ |
| 2643 core.double doubleValue; | 2728 core.double doubleValue; |
| 2644 /** A 64-bit integer. Its range is approximately ±9.2x1018. */ | 2729 /** |
| 2730 * A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>. |
| 2731 */ |
| 2645 core.String int64Value; | 2732 core.String int64Value; |
| 2646 /** A variable-length string value. */ | 2733 /** A variable-length string value. */ |
| 2647 core.String stringValue; | 2734 core.String stringValue; |
| 2648 | 2735 |
| 2649 TypedValue(); | 2736 TypedValue(); |
| 2650 | 2737 |
| 2651 TypedValue.fromJson(core.Map _json) { | 2738 TypedValue.fromJson(core.Map _json) { |
| 2652 if (_json.containsKey("boolValue")) { | 2739 if (_json.containsKey("boolValue")) { |
| 2653 boolValue = _json["boolValue"]; | 2740 boolValue = _json["boolValue"]; |
| 2654 } | 2741 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2679 } | 2766 } |
| 2680 if (int64Value != null) { | 2767 if (int64Value != null) { |
| 2681 _json["int64Value"] = int64Value; | 2768 _json["int64Value"] = int64Value; |
| 2682 } | 2769 } |
| 2683 if (stringValue != null) { | 2770 if (stringValue != null) { |
| 2684 _json["stringValue"] = stringValue; | 2771 _json["stringValue"] = stringValue; |
| 2685 } | 2772 } |
| 2686 return _json; | 2773 return _json; |
| 2687 } | 2774 } |
| 2688 } | 2775 } |
| OLD | NEW |