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; |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 /** | 263 /** |
264 * Lists the existing groups. | 264 * Lists the existing groups. |
265 * | 265 * |
266 * Request parameters: | 266 * Request parameters: |
267 * | 267 * |
268 * [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 |
269 * "projects/{project_id_or_number}". | 269 * "projects/{project_id_or_number}". |
270 * Value must have pattern "^projects/[^/]+$". | 270 * Value must have pattern "^projects/[^/]+$". |
271 * | 271 * |
272 * [childrenOfGroup] - A group name: | |
273 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose | |
274 * parentName field contains the group name. If no groups have this parent, | |
275 * the results are empty. | |
276 * | |
277 * [descendantsOfGroup] - A group name: | 272 * [descendantsOfGroup] - A group name: |
278 * "projects/{project_id_or_number}/groups/{group_id}". Returns the | 273 * "projects/{project_id_or_number}/groups/{group_id}". Returns the |
279 * 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 |
280 * returned by the childrenOfGroup filter, and includes children-of-children, | 275 * returned by the childrenOfGroup filter, and includes children-of-children, |
281 * and so forth. | 276 * and so forth. |
282 * | 277 * |
283 * [pageToken] - If this field is not empty then it must contain the | 278 * [pageToken] - If this field is not empty then it must contain the |
284 * nextPageToken value returned by a previous call to this method. Using this | 279 * nextPageToken value returned by a previous call to this method. Using this |
285 * field causes the method to return additional results from the previous | 280 * field causes the method to return additional results from the previous |
286 * method call. | 281 * method call. |
287 * | 282 * |
288 * [pageSize] - A positive number that is the maximum number of results to | 283 * [pageSize] - A positive number that is the maximum number of results to |
289 * return. | 284 * return. |
290 * | 285 * |
291 * [ancestorsOfGroup] - A group name: | 286 * [ancestorsOfGroup] - A group name: |
292 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that | 287 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that |
293 * are ancestors of the specified group. The groups are returned in order, | 288 * are ancestors of the specified group. The groups are returned in order, |
294 * starting with the immediate parent and ending with the most distant | 289 * starting with the immediate parent and ending with the most distant |
295 * ancestor. If the specified group has no immediate parent, the results are | 290 * ancestor. If the specified group has no immediate parent, the results are |
296 * empty. | 291 * empty. |
297 * | 292 * |
| 293 * [childrenOfGroup] - A group name: |
| 294 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose |
| 295 * parentName field contains the group name. If no groups have this parent, |
| 296 * the results are empty. |
| 297 * |
298 * Completes with a [ListGroupsResponse]. | 298 * Completes with a [ListGroupsResponse]. |
299 * | 299 * |
300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
301 * error. | 301 * error. |
302 * | 302 * |
303 * 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, |
304 * this method will complete with the same error. | 304 * this method will complete with the same error. |
305 */ | 305 */ |
306 async.Future<ListGroupsResponse> list(core.String name, {core.String childrenO
fGroup, core.String descendantsOfGroup, core.String pageToken, core.int pageSize
, core.String ancestorsOfGroup}) { | 306 async.Future<ListGroupsResponse> list(core.String name, {core.String descendan
tsOfGroup, core.String pageToken, core.int pageSize, core.String ancestorsOfGrou
p, core.String childrenOfGroup}) { |
307 var _url = null; | 307 var _url = null; |
308 var _queryParams = new core.Map(); | 308 var _queryParams = new core.Map(); |
309 var _uploadMedia = null; | 309 var _uploadMedia = null; |
310 var _uploadOptions = null; | 310 var _uploadOptions = null; |
311 var _downloadOptions = commons.DownloadOptions.Metadata; | 311 var _downloadOptions = commons.DownloadOptions.Metadata; |
312 var _body = null; | 312 var _body = null; |
313 | 313 |
314 if (name == null) { | 314 if (name == null) { |
315 throw new core.ArgumentError("Parameter name is required."); | 315 throw new core.ArgumentError("Parameter name is required."); |
316 } | 316 } |
317 if (childrenOfGroup != null) { | |
318 _queryParams["childrenOfGroup"] = [childrenOfGroup]; | |
319 } | |
320 if (descendantsOfGroup != null) { | 317 if (descendantsOfGroup != null) { |
321 _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; | 318 _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; |
322 } | 319 } |
323 if (pageToken != null) { | 320 if (pageToken != null) { |
324 _queryParams["pageToken"] = [pageToken]; | 321 _queryParams["pageToken"] = [pageToken]; |
325 } | 322 } |
326 if (pageSize != null) { | 323 if (pageSize != null) { |
327 _queryParams["pageSize"] = ["${pageSize}"]; | 324 _queryParams["pageSize"] = ["${pageSize}"]; |
328 } | 325 } |
329 if (ancestorsOfGroup != null) { | 326 if (ancestorsOfGroup != null) { |
330 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; | 327 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; |
331 } | 328 } |
| 329 if (childrenOfGroup != null) { |
| 330 _queryParams["childrenOfGroup"] = [childrenOfGroup]; |
| 331 } |
332 | 332 |
333 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups'; | 333 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups'; |
334 | 334 |
335 var _response = _requester.request(_url, | 335 var _response = _requester.request(_url, |
336 "GET", | 336 "GET", |
337 body: _body, | 337 body: _body, |
338 queryParams: _queryParams, | 338 queryParams: _queryParams, |
339 uploadOptions: _uploadOptions, | 339 uploadOptions: _uploadOptions, |
340 uploadMedia: _uploadMedia, | 340 uploadMedia: _uploadMedia, |
341 downloadOptions: _downloadOptions); | 341 downloadOptions: _downloadOptions); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 * The filter may reference the type, labels, and metadata of monitored | 421 * The filter may reference the type, labels, and metadata of monitored |
422 * resources that comprise the group. For example, to return only resources | 422 * resources that comprise the group. For example, to return only resources |
423 * representing Compute Engine VM instances, use this filter: | 423 * representing Compute Engine VM instances, use this filter: |
424 * resource.type = "gce_instance" | 424 * resource.type = "gce_instance" |
425 * | 425 * |
426 * [pageToken] - If this field is not empty then it must contain the | 426 * [pageToken] - If this field is not empty then it must contain the |
427 * nextPageToken value returned by a previous call to this method. Using this | 427 * nextPageToken value returned by a previous call to this method. Using this |
428 * field causes the method to return additional results from the previous | 428 * field causes the method to return additional results from the previous |
429 * method call. | 429 * method call. |
430 * | 430 * |
431 * [pageSize] - A positive number that is the maximum number of results to | |
432 * return. | |
433 * | |
434 * [interval_startTime] - Optional. The beginning of the time interval. The | 431 * [interval_startTime] - Optional. The beginning of the time interval. The |
435 * default value for the start time is the end time. The start time must not | 432 * default value for the start time is the end time. The start time must not |
436 * be later than the end time. | 433 * be later than the end time. |
437 * | 434 * |
| 435 * [pageSize] - A positive number that is the maximum number of results to |
| 436 * return. |
| 437 * |
438 * Completes with a [ListGroupMembersResponse]. | 438 * Completes with a [ListGroupMembersResponse]. |
439 * | 439 * |
440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
441 * error. | 441 * error. |
442 * | 442 * |
443 * If the used [http.Client] completes with an error when making a REST call, | 443 * If the used [http.Client] completes with an error when making a REST call, |
444 * this method will complete with the same error. | 444 * this method will complete with the same error. |
445 */ | 445 */ |
446 async.Future<ListGroupMembersResponse> list(core.String name, {core.String int
erval_endTime, core.String filter, core.String pageToken, core.int pageSize, cor
e.String interval_startTime}) { | 446 async.Future<ListGroupMembersResponse> list(core.String name, {core.String int
erval_endTime, core.String filter, core.String pageToken, core.String interval_s
tartTime, core.int pageSize}) { |
447 var _url = null; | 447 var _url = null; |
448 var _queryParams = new core.Map(); | 448 var _queryParams = new core.Map(); |
449 var _uploadMedia = null; | 449 var _uploadMedia = null; |
450 var _uploadOptions = null; | 450 var _uploadOptions = null; |
451 var _downloadOptions = commons.DownloadOptions.Metadata; | 451 var _downloadOptions = commons.DownloadOptions.Metadata; |
452 var _body = null; | 452 var _body = null; |
453 | 453 |
454 if (name == null) { | 454 if (name == null) { |
455 throw new core.ArgumentError("Parameter name is required."); | 455 throw new core.ArgumentError("Parameter name is required."); |
456 } | 456 } |
457 if (interval_endTime != null) { | 457 if (interval_endTime != null) { |
458 _queryParams["interval.endTime"] = [interval_endTime]; | 458 _queryParams["interval.endTime"] = [interval_endTime]; |
459 } | 459 } |
460 if (filter != null) { | 460 if (filter != null) { |
461 _queryParams["filter"] = [filter]; | 461 _queryParams["filter"] = [filter]; |
462 } | 462 } |
463 if (pageToken != null) { | 463 if (pageToken != null) { |
464 _queryParams["pageToken"] = [pageToken]; | 464 _queryParams["pageToken"] = [pageToken]; |
465 } | 465 } |
| 466 if (interval_startTime != null) { |
| 467 _queryParams["interval.startTime"] = [interval_startTime]; |
| 468 } |
466 if (pageSize != null) { | 469 if (pageSize != null) { |
467 _queryParams["pageSize"] = ["${pageSize}"]; | 470 _queryParams["pageSize"] = ["${pageSize}"]; |
468 } | 471 } |
469 if (interval_startTime != null) { | |
470 _queryParams["interval.startTime"] = [interval_startTime]; | |
471 } | |
472 | 472 |
473 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; | 473 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; |
474 | 474 |
475 var _response = _requester.request(_url, | 475 var _response = _requester.request(_url, |
476 "GET", | 476 "GET", |
477 body: _body, | 477 body: _body, |
478 queryParams: _queryParams, | 478 queryParams: _queryParams, |
479 uploadOptions: _uploadOptions, | 479 uploadOptions: _uploadOptions, |
480 uploadMedia: _uploadMedia, | 480 uploadMedia: _uploadMedia, |
481 downloadOptions: _downloadOptions); | 481 downloadOptions: _downloadOptions); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 /** | 628 /** |
629 * Lists metric descriptors that match a filter. This method does not require | 629 * Lists metric descriptors that match a filter. This method does not require |
630 * a Stackdriver account. | 630 * a Stackdriver account. |
631 * | 631 * |
632 * Request parameters: | 632 * Request parameters: |
633 * | 633 * |
634 * [name] - The project on which to execute the request. The format is | 634 * [name] - The project on which to execute the request. The format is |
635 * "projects/{project_id_or_number}". | 635 * "projects/{project_id_or_number}". |
636 * Value must have pattern "^projects/[^/]+$". | 636 * Value must have pattern "^projects/[^/]+$". |
637 * | 637 * |
| 638 * [filter] - If this field is empty, all custom and system-defined metric |
| 639 * descriptors are returned. Otherwise, the filter specifies which metric |
| 640 * descriptors are to be returned. For example, the following filter matches |
| 641 * all custom metrics: |
| 642 * metric.type = starts_with("custom.googleapis.com/") |
| 643 * |
638 * [pageToken] - If this field is not empty then it must contain the | 644 * [pageToken] - If this field is not empty then it must contain the |
639 * nextPageToken value returned by a previous call to this method. Using this | 645 * nextPageToken value returned by a previous call to this method. Using this |
640 * field causes the method to return additional results from the previous | 646 * field causes the method to return additional results from the previous |
641 * method call. | 647 * method call. |
642 * | 648 * |
643 * [pageSize] - A positive number that is the maximum number of results to | 649 * [pageSize] - A positive number that is the maximum number of results to |
644 * return. | 650 * return. |
645 * | 651 * |
646 * [filter] - If this field is empty, all custom and system-defined metric | |
647 * descriptors are returned. Otherwise, the filter specifies which metric | |
648 * descriptors are to be returned. For example, the following filter matches | |
649 * all custom metrics: | |
650 * metric.type = starts_with("custom.googleapis.com/") | |
651 * | |
652 * Completes with a [ListMetricDescriptorsResponse]. | 652 * Completes with a [ListMetricDescriptorsResponse]. |
653 * | 653 * |
654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
655 * error. | 655 * error. |
656 * | 656 * |
657 * If the used [http.Client] completes with an error when making a REST call, | 657 * If the used [http.Client] completes with an error when making a REST call, |
658 * this method will complete with the same error. | 658 * this method will complete with the same error. |
659 */ | 659 */ |
660 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.Strin
g pageToken, core.int pageSize, core.String filter}) { | 660 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.Strin
g filter, core.String pageToken, core.int pageSize}) { |
661 var _url = null; | 661 var _url = null; |
662 var _queryParams = new core.Map(); | 662 var _queryParams = new core.Map(); |
663 var _uploadMedia = null; | 663 var _uploadMedia = null; |
664 var _uploadOptions = null; | 664 var _uploadOptions = null; |
665 var _downloadOptions = commons.DownloadOptions.Metadata; | 665 var _downloadOptions = commons.DownloadOptions.Metadata; |
666 var _body = null; | 666 var _body = null; |
667 | 667 |
668 if (name == null) { | 668 if (name == null) { |
669 throw new core.ArgumentError("Parameter name is required."); | 669 throw new core.ArgumentError("Parameter name is required."); |
670 } | 670 } |
| 671 if (filter != null) { |
| 672 _queryParams["filter"] = [filter]; |
| 673 } |
671 if (pageToken != null) { | 674 if (pageToken != null) { |
672 _queryParams["pageToken"] = [pageToken]; | 675 _queryParams["pageToken"] = [pageToken]; |
673 } | 676 } |
674 if (pageSize != null) { | 677 if (pageSize != null) { |
675 _queryParams["pageSize"] = ["${pageSize}"]; | 678 _queryParams["pageSize"] = ["${pageSize}"]; |
676 } | 679 } |
677 if (filter != null) { | |
678 _queryParams["filter"] = [filter]; | |
679 } | |
680 | 680 |
681 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc
riptors'; | 681 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc
riptors'; |
682 | 682 |
683 var _response = _requester.request(_url, | 683 var _response = _requester.request(_url, |
684 "GET", | 684 "GET", |
685 body: _body, | 685 body: _body, |
686 queryParams: _queryParams, | 686 queryParams: _queryParams, |
687 uploadOptions: _uploadOptions, | 687 uploadOptions: _uploadOptions, |
688 uploadMedia: _uploadMedia, | 688 uploadMedia: _uploadMedia, |
689 downloadOptions: _downloadOptions); | 689 downloadOptions: _downloadOptions); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 /** | 746 /** |
747 * Lists monitored resource descriptors that match a filter. This method does | 747 * Lists monitored resource descriptors that match a filter. This method does |
748 * not require a Stackdriver account. | 748 * not require a Stackdriver account. |
749 * | 749 * |
750 * Request parameters: | 750 * Request parameters: |
751 * | 751 * |
752 * [name] - The project on which to execute the request. The format is | 752 * [name] - The project on which to execute the request. The format is |
753 * "projects/{project_id_or_number}". | 753 * "projects/{project_id_or_number}". |
754 * Value must have pattern "^projects/[^/]+$". | 754 * Value must have pattern "^projects/[^/]+$". |
755 * | 755 * |
756 * [filter] - An optional filter describing the descriptors to be returned. | |
757 * The filter can reference the descriptor's type and labels. For example, the | |
758 * following filter returns only Google Compute Engine descriptors that have | |
759 * an id label: | |
760 * resource.type = starts_with("gce_") AND resource.label:id | |
761 * | |
762 * [pageToken] - If this field is not empty then it must contain the | 756 * [pageToken] - If this field is not empty then it must contain the |
763 * nextPageToken value returned by a previous call to this method. Using this | 757 * nextPageToken value returned by a previous call to this method. Using this |
764 * field causes the method to return additional results from the previous | 758 * field causes the method to return additional results from the previous |
765 * method call. | 759 * method call. |
766 * | 760 * |
767 * [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 |
768 * return. | 762 * return. |
769 * | 763 * |
| 764 * [filter] - An optional filter describing the descriptors to be returned. |
| 765 * The filter can reference the descriptor's type and labels. For example, the |
| 766 * following filter returns only Google Compute Engine descriptors that have |
| 767 * an id label: |
| 768 * resource.type = starts_with("gce_") AND resource.label:id |
| 769 * |
770 * Completes with a [ListMonitoredResourceDescriptorsResponse]. | 770 * Completes with a [ListMonitoredResourceDescriptorsResponse]. |
771 * | 771 * |
772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
773 * error. | 773 * error. |
774 * | 774 * |
775 * If the used [http.Client] completes with an error when making a REST call, | 775 * If the used [http.Client] completes with an error when making a REST call, |
776 * this method will complete with the same error. | 776 * this method will complete with the same error. |
777 */ | 777 */ |
778 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name,
{core.String filter, core.String pageToken, core.int pageSize}) { | 778 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name,
{core.String pageToken, core.int pageSize, core.String filter}) { |
779 var _url = null; | 779 var _url = null; |
780 var _queryParams = new core.Map(); | 780 var _queryParams = new core.Map(); |
781 var _uploadMedia = null; | 781 var _uploadMedia = null; |
782 var _uploadOptions = null; | 782 var _uploadOptions = null; |
783 var _downloadOptions = commons.DownloadOptions.Metadata; | 783 var _downloadOptions = commons.DownloadOptions.Metadata; |
784 var _body = null; | 784 var _body = null; |
785 | 785 |
786 if (name == null) { | 786 if (name == null) { |
787 throw new core.ArgumentError("Parameter name is required."); | 787 throw new core.ArgumentError("Parameter name is required."); |
788 } | 788 } |
789 if (filter != null) { | |
790 _queryParams["filter"] = [filter]; | |
791 } | |
792 if (pageToken != null) { | 789 if (pageToken != null) { |
793 _queryParams["pageToken"] = [pageToken]; | 790 _queryParams["pageToken"] = [pageToken]; |
794 } | 791 } |
795 if (pageSize != null) { | 792 if (pageSize != null) { |
796 _queryParams["pageSize"] = ["${pageSize}"]; | 793 _queryParams["pageSize"] = ["${pageSize}"]; |
797 } | 794 } |
| 795 if (filter != null) { |
| 796 _queryParams["filter"] = [filter]; |
| 797 } |
798 | 798 |
799 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR
esourceDescriptors'; | 799 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR
esourceDescriptors'; |
800 | 800 |
801 var _response = _requester.request(_url, | 801 var _response = _requester.request(_url, |
802 "GET", | 802 "GET", |
803 body: _body, | 803 body: _body, |
804 queryParams: _queryParams, | 804 queryParams: _queryParams, |
805 uploadOptions: _uploadOptions, | 805 uploadOptions: _uploadOptions, |
806 uploadMedia: _uploadMedia, | 806 uploadMedia: _uploadMedia, |
807 downloadOptions: _downloadOptions); | 807 downloadOptions: _downloadOptions); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 /** | 869 /** |
870 * Lists time series that match a filter. This method does not require a | 870 * Lists time series that match a filter. This method does not require a |
871 * Stackdriver account. | 871 * Stackdriver account. |
872 * | 872 * |
873 * Request parameters: | 873 * Request parameters: |
874 * | 874 * |
875 * [name] - The project on which to execute the request. The format is | 875 * [name] - The project on which to execute the request. The format is |
876 * "projects/{project_id_or_number}". | 876 * "projects/{project_id_or_number}". |
877 * Value must have pattern "^projects/[^/]+$". | 877 * Value must have pattern "^projects/[^/]+$". |
878 * | 878 * |
879 * [aggregation_groupByFields] - The set of fields to preserve when | |
880 * crossSeriesReducer is specified. The groupByFields determine how the time | |
881 * series are partitioned into subsets prior to applying the aggregation | |
882 * function. Each subset contains time series that have the same value for | |
883 * each of the grouping fields. Each individual time series is a member of | |
884 * exactly one subset. The crossSeriesReducer is applied to each subset of | |
885 * time series. It is not possible to reduce across different resource types, | |
886 * so this field implicitly contains resource.type. Fields not specified in | |
887 * groupByFields are aggregated away. If groupByFields is not specified and | |
888 * all the time series have the same resource type, then the time series are | |
889 * aggregated into a single output time series. If crossSeriesReducer is not | |
890 * defined, this field is ignored. | |
891 * | |
892 * [interval_endTime] - Required. The end of the time interval. | |
893 * | |
894 * [aggregation_alignmentPeriod] - The alignment period for per-time series | |
895 * alignment. If present, alignmentPeriod must be at least 60 seconds. After | |
896 * per-time series alignment, each time series will contain data points only | |
897 * on the period boundaries. If perSeriesAligner is not specified or equals | |
898 * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified | |
899 * and does not equal ALIGN_NONE, then this field must be defined; otherwise | |
900 * an error is returned. | |
901 * | |
902 * [pageSize] - A positive number that is the maximum number of results to | |
903 * return. When view field sets to FULL, it limits the number of Points server | |
904 * will return; if view field is HEADERS, it limits the number of TimeSeries | |
905 * server will return. | |
906 * | |
907 * [orderBy] - Specifies the order in which the points of the time series | 879 * [orderBy] - Specifies the order in which the points of the time series |
908 * should be returned. By default, results are not ordered. Currently, this | 880 * should be returned. By default, results are not ordered. Currently, this |
909 * field must be left blank. | 881 * field must be left blank. |
910 * | 882 * |
911 * [aggregation_crossSeriesReducer] - The approach to be used to combine time | 883 * [aggregation_crossSeriesReducer] - The approach to be used to combine time |
912 * series. Not all reducer functions may be applied to all time series, | 884 * series. Not all reducer functions may be applied to all time series, |
913 * depending on the metric type and the value type of the original time | 885 * depending on the metric type and the value type of the original time |
914 * series. Reduction may change the metric type of value type of the time | 886 * series. Reduction may change the metric type of value type of the time |
915 * series.Time series data must be aligned in order to perform cross-time | 887 * series.Time series data must be aligned in order to perform cross-time |
916 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner | 888 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner |
917 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be | 889 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be |
918 * specified; otherwise, an error is returned. | 890 * specified; otherwise, an error is returned. |
919 * Possible string values are: | 891 * Possible string values are: |
920 * - "REDUCE_NONE" : A REDUCE_NONE. | 892 * - "REDUCE_NONE" : A REDUCE_NONE. |
921 * - "REDUCE_MEAN" : A REDUCE_MEAN. | 893 * - "REDUCE_MEAN" : A REDUCE_MEAN. |
922 * - "REDUCE_MIN" : A REDUCE_MIN. | 894 * - "REDUCE_MIN" : A REDUCE_MIN. |
923 * - "REDUCE_MAX" : A REDUCE_MAX. | 895 * - "REDUCE_MAX" : A REDUCE_MAX. |
924 * - "REDUCE_SUM" : A REDUCE_SUM. | 896 * - "REDUCE_SUM" : A REDUCE_SUM. |
925 * - "REDUCE_STDDEV" : A REDUCE_STDDEV. | 897 * - "REDUCE_STDDEV" : A REDUCE_STDDEV. |
926 * - "REDUCE_COUNT" : A REDUCE_COUNT. | 898 * - "REDUCE_COUNT" : A REDUCE_COUNT. |
927 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE. | 899 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE. |
928 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE. | 900 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE. |
929 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99. | 901 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99. |
930 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. | 902 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. |
931 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. | 903 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. |
932 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. | 904 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. |
| 905 * - "REDUCE_FRACTION_LESS_THAN" : A REDUCE_FRACTION_LESS_THAN. |
933 * | 906 * |
934 * [filter] - A monitoring filter that specifies which time series should be | 907 * [filter] - A monitoring filter that specifies which time series should be |
935 * returned. The filter must specify a single metric type, and can | 908 * returned. The filter must specify a single metric type, and can |
936 * additionally specify metric labels and other information. For example: | 909 * additionally specify metric labels and other information. For example: |
937 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND | 910 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND |
938 * metric.label.instance_name = "my-instance-name" | 911 * metric.label.instance_name = "my-instance-name" |
939 * | 912 * |
940 * [pageToken] - If this field is not empty then it must contain the | 913 * [pageToken] - If this field is not empty then it must contain the |
941 * nextPageToken value returned by a previous call to this method. Using this | 914 * nextPageToken value returned by a previous call to this method. Using this |
942 * field causes the method to return additional results from the previous | 915 * field causes the method to return additional results from the previous |
(...skipping 18 matching lines...) Expand all Loading... |
961 * - "ALIGN_MEAN" : A ALIGN_MEAN. | 934 * - "ALIGN_MEAN" : A ALIGN_MEAN. |
962 * - "ALIGN_COUNT" : A ALIGN_COUNT. | 935 * - "ALIGN_COUNT" : A ALIGN_COUNT. |
963 * - "ALIGN_SUM" : A ALIGN_SUM. | 936 * - "ALIGN_SUM" : A ALIGN_SUM. |
964 * - "ALIGN_STDDEV" : A ALIGN_STDDEV. | 937 * - "ALIGN_STDDEV" : A ALIGN_STDDEV. |
965 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. | 938 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. |
966 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. | 939 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. |
967 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99. | 940 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99. |
968 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. | 941 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. |
969 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. | 942 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. |
970 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. | 943 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. |
| 944 * - "ALIGN_MAKE_DISTRIBUTION" : A ALIGN_MAKE_DISTRIBUTION. |
971 * | 945 * |
972 * [interval_startTime] - Optional. The beginning of the time interval. The | 946 * [interval_startTime] - Optional. The beginning of the time interval. The |
973 * default value for the start time is the end time. The start time must not | 947 * default value for the start time is the end time. The start time must not |
974 * be later than the end time. | 948 * be later than the end time. |
975 * | 949 * |
976 * [view] - Specifies which information is returned about the time series. | 950 * [view] - Specifies which information is returned about the time series. |
977 * Possible string values are: | 951 * Possible string values are: |
978 * - "FULL" : A FULL. | 952 * - "FULL" : A FULL. |
979 * - "HEADERS" : A HEADERS. | 953 * - "HEADERS" : A HEADERS. |
980 * | 954 * |
| 955 * [aggregation_reduceFractionLessThanParams_threshold] - The threshold used |
| 956 * by the REDUCE_FRACTION_LESS_THAN cross-series reducer. |
| 957 * |
| 958 * [aggregation_groupByFields] - The set of fields to preserve when |
| 959 * crossSeriesReducer is specified. The groupByFields determine how the time |
| 960 * series are partitioned into subsets prior to applying the aggregation |
| 961 * function. Each subset contains time series that have the same value for |
| 962 * each of the grouping fields. Each individual time series is a member of |
| 963 * exactly one subset. The crossSeriesReducer is applied to each subset of |
| 964 * time series. It is not possible to reduce across different resource types, |
| 965 * so this field implicitly contains resource.type. Fields not specified in |
| 966 * groupByFields are aggregated away. If groupByFields is not specified and |
| 967 * all the time series have the same resource type, then the time series are |
| 968 * aggregated into a single output time series. If crossSeriesReducer is not |
| 969 * defined, this field is ignored. |
| 970 * |
| 971 * [interval_endTime] - Required. The end of the time interval. |
| 972 * |
| 973 * [aggregation_alignmentPeriod] - The alignment period for per-time series |
| 974 * alignment. If present, alignmentPeriod must be at least 60 seconds. After |
| 975 * per-time series alignment, each time series will contain data points only |
| 976 * on the period boundaries. If perSeriesAligner is not specified or equals |
| 977 * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified |
| 978 * and does not equal ALIGN_NONE, then this field must be defined; otherwise |
| 979 * an error is returned. |
| 980 * |
| 981 * [pageSize] - A positive number that is the maximum number of results to |
| 982 * return. When view field sets to FULL, it limits the number of Points server |
| 983 * will return; if view field is HEADERS, it limits the number of TimeSeries |
| 984 * server will return. |
| 985 * |
| 986 * [outputPeriod] - If outputPeriod is specified, the data in the response |
| 987 * will have the given period. Must be equal to or longer than |
| 988 * alignmentPeriod. Must not be used when view is HEADERS. Only used when |
| 989 * interval describes an interval longer than a single point. |
| 990 * |
981 * Completes with a [ListTimeSeriesResponse]. | 991 * Completes with a [ListTimeSeriesResponse]. |
982 * | 992 * |
983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 993 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
984 * error. | 994 * error. |
985 * | 995 * |
986 * If the used [http.Client] completes with an error when making a REST call, | 996 * If the used [http.Client] completes with an error when making a REST call, |
987 * this method will complete with the same error. | 997 * this method will complete with the same error. |
988 */ | 998 */ |
989 async.Future<ListTimeSeriesResponse> list(core.String name, {core.List<core.St
ring> aggregation_groupByFields, core.String interval_endTime, core.String aggre
gation_alignmentPeriod, core.int pageSize, core.String orderBy, core.String aggr
egation_crossSeriesReducer, core.String filter, core.String pageToken, core.Stri
ng aggregation_perSeriesAligner, core.String interval_startTime, core.String vie
w}) { | 999 async.Future<ListTimeSeriesResponse> list(core.String name, {core.String order
By, core.String aggregation_crossSeriesReducer, core.String filter, core.String
pageToken, core.String aggregation_perSeriesAligner, core.String interval_startT
ime, core.String view, core.double aggregation_reduceFractionLessThanParams_thre
shold, core.List<core.String> aggregation_groupByFields, core.String interval_en
dTime, core.String aggregation_alignmentPeriod, core.int pageSize, core.String o
utputPeriod}) { |
990 var _url = null; | 1000 var _url = null; |
991 var _queryParams = new core.Map(); | 1001 var _queryParams = new core.Map(); |
992 var _uploadMedia = null; | 1002 var _uploadMedia = null; |
993 var _uploadOptions = null; | 1003 var _uploadOptions = null; |
994 var _downloadOptions = commons.DownloadOptions.Metadata; | 1004 var _downloadOptions = commons.DownloadOptions.Metadata; |
995 var _body = null; | 1005 var _body = null; |
996 | 1006 |
997 if (name == null) { | 1007 if (name == null) { |
998 throw new core.ArgumentError("Parameter name is required."); | 1008 throw new core.ArgumentError("Parameter name is required."); |
999 } | 1009 } |
1000 if (aggregation_groupByFields != null) { | |
1001 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; | |
1002 } | |
1003 if (interval_endTime != null) { | |
1004 _queryParams["interval.endTime"] = [interval_endTime]; | |
1005 } | |
1006 if (aggregation_alignmentPeriod != null) { | |
1007 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod
]; | |
1008 } | |
1009 if (pageSize != null) { | |
1010 _queryParams["pageSize"] = ["${pageSize}"]; | |
1011 } | |
1012 if (orderBy != null) { | 1010 if (orderBy != null) { |
1013 _queryParams["orderBy"] = [orderBy]; | 1011 _queryParams["orderBy"] = [orderBy]; |
1014 } | 1012 } |
1015 if (aggregation_crossSeriesReducer != null) { | 1013 if (aggregation_crossSeriesReducer != null) { |
1016 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; | 1014 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; |
1017 } | 1015 } |
1018 if (filter != null) { | 1016 if (filter != null) { |
1019 _queryParams["filter"] = [filter]; | 1017 _queryParams["filter"] = [filter]; |
1020 } | 1018 } |
1021 if (pageToken != null) { | 1019 if (pageToken != null) { |
1022 _queryParams["pageToken"] = [pageToken]; | 1020 _queryParams["pageToken"] = [pageToken]; |
1023 } | 1021 } |
1024 if (aggregation_perSeriesAligner != null) { | 1022 if (aggregation_perSeriesAligner != null) { |
1025 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; | 1023 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; |
1026 } | 1024 } |
1027 if (interval_startTime != null) { | 1025 if (interval_startTime != null) { |
1028 _queryParams["interval.startTime"] = [interval_startTime]; | 1026 _queryParams["interval.startTime"] = [interval_startTime]; |
1029 } | 1027 } |
1030 if (view != null) { | 1028 if (view != null) { |
1031 _queryParams["view"] = [view]; | 1029 _queryParams["view"] = [view]; |
1032 } | 1030 } |
| 1031 if (aggregation_reduceFractionLessThanParams_threshold != null) { |
| 1032 _queryParams["aggregation.reduceFractionLessThanParams.threshold"] = ["${a
ggregation_reduceFractionLessThanParams_threshold}"]; |
| 1033 } |
| 1034 if (aggregation_groupByFields != null) { |
| 1035 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; |
| 1036 } |
| 1037 if (interval_endTime != null) { |
| 1038 _queryParams["interval.endTime"] = [interval_endTime]; |
| 1039 } |
| 1040 if (aggregation_alignmentPeriod != null) { |
| 1041 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod
]; |
| 1042 } |
| 1043 if (pageSize != null) { |
| 1044 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1045 } |
| 1046 if (outputPeriod != null) { |
| 1047 _queryParams["outputPeriod"] = [outputPeriod]; |
| 1048 } |
1033 | 1049 |
1034 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries
'; | 1050 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries
'; |
1035 | 1051 |
1036 var _response = _requester.request(_url, | 1052 var _response = _requester.request(_url, |
1037 "GET", | 1053 "GET", |
1038 body: _body, | 1054 body: _body, |
1039 queryParams: _queryParams, | 1055 queryParams: _queryParams, |
1040 uploadOptions: _uploadOptions, | 1056 uploadOptions: _uploadOptions, |
1041 uploadMedia: _uploadMedia, | 1057 uploadMedia: _uploadMedia, |
1042 downloadOptions: _downloadOptions); | 1058 downloadOptions: _downloadOptions); |
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2767 } | 2783 } |
2768 if (int64Value != null) { | 2784 if (int64Value != null) { |
2769 _json["int64Value"] = int64Value; | 2785 _json["int64Value"] = int64Value; |
2770 } | 2786 } |
2771 if (stringValue != null) { | 2787 if (stringValue != null) { |
2772 _json["stringValue"] = stringValue; | 2788 _json["stringValue"] = stringValue; |
2773 } | 2789 } |
2774 return _json; | 2790 return _json; |
2775 } | 2791 } |
2776 } | 2792 } |
OLD | NEW |