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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 408 |
409 /** | 409 /** |
410 * Lists the monitored resources that are members of a group. | 410 * Lists the monitored resources that are members of a group. |
411 * | 411 * |
412 * Request parameters: | 412 * Request parameters: |
413 * | 413 * |
414 * [name] - The group whose members are listed. The format is | 414 * [name] - The group whose members are listed. The format is |
415 * "projects/{project_id_or_number}/groups/{group_id}". | 415 * "projects/{project_id_or_number}/groups/{group_id}". |
416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
417 * | 417 * |
418 * [pageSize] - A positive number that is the maximum number of results to | |
419 * return. | |
420 * | |
421 * [interval_startTime] - Optional. The beginning of the time interval. The | |
422 * default value for the start time is the end time. The start time must not | |
423 * be later than the end time. | |
424 * | |
425 * [interval_endTime] - Required. The end of the time interval. | 418 * [interval_endTime] - Required. The end of the time interval. |
426 * | 419 * |
427 * [filter] - An optional list filter describing the members to be returned. | 420 * [filter] - An optional list filter describing the members to be returned. |
428 * The filter may reference the type, labels, and metadata of monitored | 421 * The filter may reference the type, labels, and metadata of monitored |
429 * resources that comprise the group. For example, to return only resources | 422 * resources that comprise the group. For example, to return only resources |
430 * representing Compute Engine VM instances, use this filter: | 423 * representing Compute Engine VM instances, use this filter: |
431 * resource.type = "gce_instance" | 424 * resource.type = "gce_instance" |
432 * | 425 * |
433 * [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 |
434 * 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 |
435 * field causes the method to return additional results from the previous | 428 * field causes the method to return additional results from the previous |
436 * method call. | 429 * method call. |
437 * | 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 |
| 435 * default value for the start time is the end time. The start time must not |
| 436 * be later than the end time. |
| 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.int pageSi
ze, core.String interval_startTime, core.String interval_endTime, core.String fi
lter, core.String pageToken}) { | 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}) { |
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 (pageSize != null) { | |
458 _queryParams["pageSize"] = ["${pageSize}"]; | |
459 } | |
460 if (interval_startTime != null) { | |
461 _queryParams["interval.startTime"] = [interval_startTime]; | |
462 } | |
463 if (interval_endTime != null) { | 457 if (interval_endTime != null) { |
464 _queryParams["interval.endTime"] = [interval_endTime]; | 458 _queryParams["interval.endTime"] = [interval_endTime]; |
465 } | 459 } |
466 if (filter != null) { | 460 if (filter != null) { |
467 _queryParams["filter"] = [filter]; | 461 _queryParams["filter"] = [filter]; |
468 } | 462 } |
469 if (pageToken != null) { | 463 if (pageToken != null) { |
470 _queryParams["pageToken"] = [pageToken]; | 464 _queryParams["pageToken"] = [pageToken]; |
471 } | 465 } |
| 466 if (pageSize != null) { |
| 467 _queryParams["pageSize"] = ["${pageSize}"]; |
| 468 } |
| 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 * | |
644 * [pageToken] - If this field is not empty then it must contain the | 638 * [pageToken] - If this field is not empty then it must contain the |
645 * nextPageToken value returned by a previous call to this method. Using this | 639 * nextPageToken value returned by a previous call to this method. Using this |
646 * field causes the method to return additional results from the previous | 640 * field causes the method to return additional results from the previous |
647 * method call. | 641 * method call. |
648 * | 642 * |
649 * [pageSize] - A positive number that is the maximum number of results to | 643 * [pageSize] - A positive number that is the maximum number of results to |
650 * return. | 644 * return. |
651 * | 645 * |
| 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 filter, core.String pageToken, core.int pageSize}) { | 660 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.Strin
g pageToken, core.int pageSize, core.String filter}) { |
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 } | |
674 if (pageToken != null) { | 671 if (pageToken != null) { |
675 _queryParams["pageToken"] = [pageToken]; | 672 _queryParams["pageToken"] = [pageToken]; |
676 } | 673 } |
677 if (pageSize != null) { | 674 if (pageSize != null) { |
678 _queryParams["pageSize"] = ["${pageSize}"]; | 675 _queryParams["pageSize"] = ["${pageSize}"]; |
679 } | 676 } |
| 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 179 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 * |
879 * [pageSize] - A positive number that is the maximum number of results to | 902 * [pageSize] - A positive number that is the maximum number of results to |
880 * return. When view field sets to FULL, it limits the number of Points server | 903 * return. When view field sets to FULL, it limits the number of Points server |
881 * will return; if view field is HEADERS, it limits the number of TimeSeries | 904 * will return; if view field is HEADERS, it limits the number of TimeSeries |
882 * server will return. | 905 * server will return. |
883 * | 906 * |
884 * [orderBy] - Specifies the order in which the points of the time series | 907 * [orderBy] - Specifies the order in which the points of the time series |
885 * should be returned. By default, results are not ordered. Currently, this | 908 * should be returned. By default, results are not ordered. Currently, this |
886 * field must be left blank. | 909 * field must be left blank. |
887 * | 910 * |
888 * [aggregation_crossSeriesReducer] - The approach to be used to combine time | 911 * [aggregation_crossSeriesReducer] - The approach to be used to combine time |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 * | 971 * |
949 * [interval_startTime] - Optional. The beginning of the time interval. The | 972 * [interval_startTime] - Optional. The beginning of the time interval. The |
950 * default value for the start time is the end time. The start time must not | 973 * default value for the start time is the end time. The start time must not |
951 * be later than the end time. | 974 * be later than the end time. |
952 * | 975 * |
953 * [view] - Specifies which information is returned about the time series. | 976 * [view] - Specifies which information is returned about the time series. |
954 * Possible string values are: | 977 * Possible string values are: |
955 * - "FULL" : A FULL. | 978 * - "FULL" : A FULL. |
956 * - "HEADERS" : A HEADERS. | 979 * - "HEADERS" : A HEADERS. |
957 * | 980 * |
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 * Completes with a [ListTimeSeriesResponse]. | 981 * Completes with a [ListTimeSeriesResponse]. |
982 * | 982 * |
983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
984 * error. | 984 * error. |
985 * | 985 * |
986 * If the used [http.Client] completes with an error when making a REST call, | 986 * If the used [http.Client] completes with an error when making a REST call, |
987 * this method will complete with the same error. | 987 * this method will complete with the same error. |
988 */ | 988 */ |
989 async.Future<ListTimeSeriesResponse> list(core.String name, {core.int pageSize
, core.String orderBy, core.String aggregation_crossSeriesReducer, core.String f
ilter, core.String pageToken, core.String aggregation_perSeriesAligner, core.Str
ing interval_startTime, core.String view, core.List<core.String> aggregation_gro
upByFields, core.String interval_endTime, core.String aggregation_alignmentPerio
d}) { | 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}) { |
990 var _url = null; | 990 var _url = null; |
991 var _queryParams = new core.Map(); | 991 var _queryParams = new core.Map(); |
992 var _uploadMedia = null; | 992 var _uploadMedia = null; |
993 var _uploadOptions = null; | 993 var _uploadOptions = null; |
994 var _downloadOptions = commons.DownloadOptions.Metadata; | 994 var _downloadOptions = commons.DownloadOptions.Metadata; |
995 var _body = null; | 995 var _body = null; |
996 | 996 |
997 if (name == null) { | 997 if (name == null) { |
998 throw new core.ArgumentError("Parameter name is required."); | 998 throw new core.ArgumentError("Parameter name is required."); |
999 } | 999 } |
| 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 } |
1000 if (pageSize != null) { | 1009 if (pageSize != null) { |
1001 _queryParams["pageSize"] = ["${pageSize}"]; | 1010 _queryParams["pageSize"] = ["${pageSize}"]; |
1002 } | 1011 } |
1003 if (orderBy != null) { | 1012 if (orderBy != null) { |
1004 _queryParams["orderBy"] = [orderBy]; | 1013 _queryParams["orderBy"] = [orderBy]; |
1005 } | 1014 } |
1006 if (aggregation_crossSeriesReducer != null) { | 1015 if (aggregation_crossSeriesReducer != null) { |
1007 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; | 1016 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; |
1008 } | 1017 } |
1009 if (filter != null) { | 1018 if (filter != null) { |
1010 _queryParams["filter"] = [filter]; | 1019 _queryParams["filter"] = [filter]; |
1011 } | 1020 } |
1012 if (pageToken != null) { | 1021 if (pageToken != null) { |
1013 _queryParams["pageToken"] = [pageToken]; | 1022 _queryParams["pageToken"] = [pageToken]; |
1014 } | 1023 } |
1015 if (aggregation_perSeriesAligner != null) { | 1024 if (aggregation_perSeriesAligner != null) { |
1016 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; | 1025 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; |
1017 } | 1026 } |
1018 if (interval_startTime != null) { | 1027 if (interval_startTime != null) { |
1019 _queryParams["interval.startTime"] = [interval_startTime]; | 1028 _queryParams["interval.startTime"] = [interval_startTime]; |
1020 } | 1029 } |
1021 if (view != null) { | 1030 if (view != null) { |
1022 _queryParams["view"] = [view]; | 1031 _queryParams["view"] = [view]; |
1023 } | 1032 } |
1024 if (aggregation_groupByFields != null) { | |
1025 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; | |
1026 } | |
1027 if (interval_endTime != null) { | |
1028 _queryParams["interval.endTime"] = [interval_endTime]; | |
1029 } | |
1030 if (aggregation_alignmentPeriod != null) { | |
1031 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod
]; | |
1032 } | |
1033 | 1033 |
1034 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries
'; | 1034 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries
'; |
1035 | 1035 |
1036 var _response = _requester.request(_url, | 1036 var _response = _requester.request(_url, |
1037 "GET", | 1037 "GET", |
1038 body: _body, | 1038 body: _body, |
1039 queryParams: _queryParams, | 1039 queryParams: _queryParams, |
1040 uploadOptions: _uploadOptions, | 1040 uploadOptions: _uploadOptions, |
1041 uploadMedia: _uploadMedia, | 1041 uploadMedia: _uploadMedia, |
1042 downloadOptions: _downloadOptions); | 1042 downloadOptions: _downloadOptions); |
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2767 } | 2767 } |
2768 if (int64Value != null) { | 2768 if (int64Value != null) { |
2769 _json["int64Value"] = int64Value; | 2769 _json["int64Value"] = int64Value; |
2770 } | 2770 } |
2771 if (stringValue != null) { | 2771 if (stringValue != null) { |
2772 _json["stringValue"] = stringValue; | 2772 _json["stringValue"] = stringValue; |
2773 } | 2773 } |
2774 return _json; | 2774 return _json; |
2775 } | 2775 } |
2776 } | 2776 } |
OLD | NEW |