Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: generated/googleapis/lib/monitoring/v3.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/ml/v1.dart ('k') | generated/googleapis/lib/partners/v2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 *
272 * [descendantsOfGroup] - A group name: 277 * [descendantsOfGroup] - A group name:
273 * "projects/{project_id_or_number}/groups/{group_id}". Returns the 278 * "projects/{project_id_or_number}/groups/{group_id}". Returns the
274 * descendants of the specified group. This is a superset of the results 279 * descendants of the specified group. This is a superset of the results
275 * returned by the childrenOfGroup filter, and includes children-of-children, 280 * returned by the childrenOfGroup filter, and includes children-of-children,
276 * and so forth. 281 * and so forth.
277 * 282 *
278 * [pageToken] - If this field is not empty then it must contain the 283 * [pageToken] - If this field is not empty then it must contain the
279 * nextPageToken value returned by a previous call to this method. Using this 284 * nextPageToken value returned by a previous call to this method. Using this
280 * field causes the method to return additional results from the previous 285 * field causes the method to return additional results from the previous
281 * method call. 286 * method call.
282 * 287 *
283 * [pageSize] - A positive number that is the maximum number of results to 288 * [pageSize] - A positive number that is the maximum number of results to
284 * return. 289 * return.
285 * 290 *
286 * [ancestorsOfGroup] - A group name: 291 * [ancestorsOfGroup] - A group name:
287 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that 292 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that
288 * are ancestors of the specified group. The groups are returned in order, 293 * are ancestors of the specified group. The groups are returned in order,
289 * starting with the immediate parent and ending with the most distant 294 * starting with the immediate parent and ending with the most distant
290 * ancestor. If the specified group has no immediate parent, the results are 295 * ancestor. If the specified group has no immediate parent, the results are
291 * empty. 296 * empty.
292 * 297 *
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 descendan tsOfGroup, core.String pageToken, core.int pageSize, core.String ancestorsOfGrou p, core.String childrenOfGroup}) { 306 async.Future<ListGroupsResponse> list(core.String name, {core.String childrenO fGroup, core.String descendantsOfGroup, core.String pageToken, core.int pageSize , core.String ancestorsOfGroup}) {
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 }
317 if (descendantsOfGroup != null) { 320 if (descendantsOfGroup != null) {
318 _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; 321 _queryParams["descendantsOfGroup"] = [descendantsOfGroup];
319 } 322 }
320 if (pageToken != null) { 323 if (pageToken != null) {
321 _queryParams["pageToken"] = [pageToken]; 324 _queryParams["pageToken"] = [pageToken];
322 } 325 }
323 if (pageSize != null) { 326 if (pageSize != null) {
324 _queryParams["pageSize"] = ["${pageSize}"]; 327 _queryParams["pageSize"] = ["${pageSize}"];
325 } 328 }
326 if (ancestorsOfGroup != null) { 329 if (ancestorsOfGroup != null) {
327 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; 330 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup];
328 } 331 }
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
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 *
431 * [interval_startTime] - Optional. The beginning of the time interval. The 434 * [interval_startTime] - Optional. The beginning of the time interval. The
432 * default value for the start time is the end time. The start time must not 435 * default value for the start time is the end time. The start time must not
433 * be later than the end time. 436 * be later than the end time.
434 * 437 *
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.String interval_s tartTime, core.int pageSize}) { 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 (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 (pageSize != null) {
467 _queryParams["pageSize"] = ["${pageSize}"];
468 }
466 if (interval_startTime != null) { 469 if (interval_startTime != null) {
467 _queryParams["interval.startTime"] = [interval_startTime]; 470 _queryParams["interval.startTime"] = [interval_startTime];
468 } 471 }
469 if (pageSize != null) {
470 _queryParams["pageSize"] = ["${pageSize}"];
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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 *
756 * [pageToken] - If this field is not empty then it must contain the 762 * [pageToken] - If this field is not empty then it must contain the
757 * nextPageToken value returned by a previous call to this method. Using this 763 * nextPageToken value returned by a previous call to this method. Using this
758 * field causes the method to return additional results from the previous 764 * field causes the method to return additional results from the previous
759 * method call. 765 * method call.
760 * 766 *
761 * [pageSize] - A positive number that is the maximum number of results to 767 * [pageSize] - A positive number that is the maximum number of results to
762 * return. 768 * return.
763 * 769 *
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 pageToken, core.int pageSize, core.String filter}) { 778 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) {
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 }
789 if (pageToken != null) { 792 if (pageToken != null) {
790 _queryParams["pageToken"] = [pageToken]; 793 _queryParams["pageToken"] = [pageToken];
791 } 794 }
792 if (pageSize != null) { 795 if (pageSize != null) {
793 _queryParams["pageSize"] = ["${pageSize}"]; 796 _queryParams["pageSize"] = ["${pageSize}"];
794 } 797 }
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
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 * [orderBy] - Specifies the order in which the points of the time series
880 * should be returned. By default, results are not ordered. Currently, this
881 * field must be left blank.
882 *
883 * [aggregation_crossSeriesReducer] - The approach to be used to combine time
884 * series. Not all reducer functions may be applied to all time series,
885 * depending on the metric type and the value type of the original time
886 * series. Reduction may change the metric type of value type of the time
887 * series.Time series data must be aligned in order to perform cross-time
888 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
889 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
890 * specified; otherwise, an error is returned.
891 * Possible string values are:
892 * - "REDUCE_NONE" : A REDUCE_NONE.
893 * - "REDUCE_MEAN" : A REDUCE_MEAN.
894 * - "REDUCE_MIN" : A REDUCE_MIN.
895 * - "REDUCE_MAX" : A REDUCE_MAX.
896 * - "REDUCE_SUM" : A REDUCE_SUM.
897 * - "REDUCE_STDDEV" : A REDUCE_STDDEV.
898 * - "REDUCE_COUNT" : A REDUCE_COUNT.
899 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE.
900 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE.
901 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99.
902 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95.
903 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50.
904 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05.
905 * - "REDUCE_FRACTION_LESS_THAN" : A REDUCE_FRACTION_LESS_THAN.
906 *
907 * [filter] - A monitoring filter that specifies which time series should be
908 * returned. The filter must specify a single metric type, and can
909 * additionally specify metric labels and other information. For example:
910 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
911 * metric.label.instance_name = "my-instance-name"
912 *
913 * [pageToken] - If this field is not empty then it must contain the 879 * [pageToken] - If this field is not empty then it must contain the
914 * nextPageToken value returned by a previous call to this method. Using this 880 * nextPageToken value returned by a previous call to this method. Using this
915 * field causes the method to return additional results from the previous 881 * field causes the method to return additional results from the previous
916 * method call. 882 * method call.
917 * 883 *
918 * [aggregation_perSeriesAligner] - The approach to be used to align 884 * [aggregation_perSeriesAligner] - The approach to be used to align
919 * individual time series. Not all alignment functions may be applied to all 885 * individual time series. Not all alignment functions may be applied to all
920 * time series, depending on the metric type and value type of the original 886 * time series, depending on the metric type and value type of the original
921 * time series. Alignment may change the metric type or the value type of the 887 * time series. Alignment may change the metric type or the value type of the
922 * time series.Time series data must be aligned in order to perform cross-time 888 * time series.Time series data must be aligned in order to perform cross-time
(...skipping 11 matching lines...) Expand all
934 * - "ALIGN_MEAN" : A ALIGN_MEAN. 900 * - "ALIGN_MEAN" : A ALIGN_MEAN.
935 * - "ALIGN_COUNT" : A ALIGN_COUNT. 901 * - "ALIGN_COUNT" : A ALIGN_COUNT.
936 * - "ALIGN_SUM" : A ALIGN_SUM. 902 * - "ALIGN_SUM" : A ALIGN_SUM.
937 * - "ALIGN_STDDEV" : A ALIGN_STDDEV. 903 * - "ALIGN_STDDEV" : A ALIGN_STDDEV.
938 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. 904 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE.
939 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. 905 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE.
940 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99. 906 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99.
941 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. 907 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95.
942 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. 908 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50.
943 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. 909 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05.
944 * - "ALIGN_MAKE_DISTRIBUTION" : A ALIGN_MAKE_DISTRIBUTION.
945 * 910 *
946 * [interval_startTime] - Optional. The beginning of the time interval. The 911 * [interval_startTime] - Optional. The beginning of the time interval. The
947 * default value for the start time is the end time. The start time must not 912 * default value for the start time is the end time. The start time must not
948 * be later than the end time. 913 * be later than the end time.
949 * 914 *
950 * [view] - Specifies which information is returned about the time series. 915 * [view] - Specifies which information is returned about the time series.
951 * Possible string values are: 916 * Possible string values are:
952 * - "FULL" : A FULL. 917 * - "FULL" : A FULL.
953 * - "HEADERS" : A HEADERS. 918 * - "HEADERS" : A HEADERS.
954 * 919 *
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 920 * [aggregation_groupByFields] - The set of fields to preserve when
959 * crossSeriesReducer is specified. The groupByFields determine how the time 921 * crossSeriesReducer is specified. The groupByFields determine how the time
960 * series are partitioned into subsets prior to applying the aggregation 922 * series are partitioned into subsets prior to applying the aggregation
961 * function. Each subset contains time series that have the same value for 923 * 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 924 * 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 925 * exactly one subset. The crossSeriesReducer is applied to each subset of
964 * time series. It is not possible to reduce across different resource types, 926 * time series. It is not possible to reduce across different resource types,
965 * so this field implicitly contains resource.type. Fields not specified in 927 * so this field implicitly contains resource.type. Fields not specified in
966 * groupByFields are aggregated away. If groupByFields is not specified and 928 * 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 929 * 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 930 * aggregated into a single output time series. If crossSeriesReducer is not
969 * defined, this field is ignored. 931 * defined, this field is ignored.
970 * 932 *
971 * [interval_endTime] - Required. The end of the time interval. 933 * [interval_endTime] - Required. The end of the time interval.
972 * 934 *
973 * [aggregation_alignmentPeriod] - The alignment period for per-time series 935 * [aggregation_alignmentPeriod] - The alignment period for per-time series
974 * alignment. If present, alignmentPeriod must be at least 60 seconds. After 936 * alignment. If present, alignmentPeriod must be at least 60 seconds. After
975 * per-time series alignment, each time series will contain data points only 937 * per-time series alignment, each time series will contain data points only
976 * on the period boundaries. If perSeriesAligner is not specified or equals 938 * on the period boundaries. If perSeriesAligner is not specified or equals
977 * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified 939 * 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 940 * and does not equal ALIGN_NONE, then this field must be defined; otherwise
979 * an error is returned. 941 * an error is returned.
980 * 942 *
981 * [pageSize] - A positive number that is the maximum number of results to 943 * [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 944 * 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 945 * will return; if view field is HEADERS, it limits the number of TimeSeries
984 * server will return. 946 * server will return.
985 * 947 *
986 * [outputPeriod] - If outputPeriod is specified, the data in the response 948 * [orderBy] - Specifies the order in which the points of the time series
987 * will have the given period. Must be equal to or longer than 949 * should be returned. By default, results are not ordered. Currently, this
988 * alignmentPeriod. Must not be used when view is HEADERS. Only used when 950 * field must be left blank.
989 * interval describes an interval longer than a single point. 951 *
952 * [aggregation_crossSeriesReducer] - The approach to be used to combine time
953 * series. Not all reducer functions may be applied to all time series,
954 * depending on the metric type and the value type of the original time
955 * series. Reduction may change the metric type of value type of the time
956 * series.Time series data must be aligned in order to perform cross-time
957 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
958 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
959 * specified; otherwise, an error is returned.
960 * Possible string values are:
961 * - "REDUCE_NONE" : A REDUCE_NONE.
962 * - "REDUCE_MEAN" : A REDUCE_MEAN.
963 * - "REDUCE_MIN" : A REDUCE_MIN.
964 * - "REDUCE_MAX" : A REDUCE_MAX.
965 * - "REDUCE_SUM" : A REDUCE_SUM.
966 * - "REDUCE_STDDEV" : A REDUCE_STDDEV.
967 * - "REDUCE_COUNT" : A REDUCE_COUNT.
968 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE.
969 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE.
970 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99.
971 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95.
972 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50.
973 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05.
974 *
975 * [filter] - A monitoring filter that specifies which time series should be
976 * returned. The filter must specify a single metric type, and can
977 * additionally specify metric labels and other information. For example:
978 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
979 * metric.label.instance_name = "my-instance-name"
990 * 980 *
991 * Completes with a [ListTimeSeriesResponse]. 981 * Completes with a [ListTimeSeriesResponse].
992 * 982 *
993 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
994 * error. 984 * error.
995 * 985 *
996 * 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,
997 * this method will complete with the same error. 987 * this method will complete with the same error.
998 */ 988 */
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}) { 989 async.Future<ListTimeSeriesResponse> list(core.String name, {core.String pageT oken, core.String aggregation_perSeriesAligner, core.String interval_startTime, core.String view, core.List<core.String> aggregation_groupByFields, core.String interval_endTime, core.String aggregation_alignmentPeriod, core.int pageSize, co re.String orderBy, core.String aggregation_crossSeriesReducer, core.String filte r}) {
1000 var _url = null; 990 var _url = null;
1001 var _queryParams = new core.Map(); 991 var _queryParams = new core.Map();
1002 var _uploadMedia = null; 992 var _uploadMedia = null;
1003 var _uploadOptions = null; 993 var _uploadOptions = null;
1004 var _downloadOptions = commons.DownloadOptions.Metadata; 994 var _downloadOptions = commons.DownloadOptions.Metadata;
1005 var _body = null; 995 var _body = null;
1006 996
1007 if (name == null) { 997 if (name == null) {
1008 throw new core.ArgumentError("Parameter name is required."); 998 throw new core.ArgumentError("Parameter name is required.");
1009 } 999 }
1010 if (orderBy != null) {
1011 _queryParams["orderBy"] = [orderBy];
1012 }
1013 if (aggregation_crossSeriesReducer != null) {
1014 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR educer];
1015 }
1016 if (filter != null) {
1017 _queryParams["filter"] = [filter];
1018 }
1019 if (pageToken != null) { 1000 if (pageToken != null) {
1020 _queryParams["pageToken"] = [pageToken]; 1001 _queryParams["pageToken"] = [pageToken];
1021 } 1002 }
1022 if (aggregation_perSeriesAligner != null) { 1003 if (aggregation_perSeriesAligner != null) {
1023 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign er]; 1004 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign er];
1024 } 1005 }
1025 if (interval_startTime != null) { 1006 if (interval_startTime != null) {
1026 _queryParams["interval.startTime"] = [interval_startTime]; 1007 _queryParams["interval.startTime"] = [interval_startTime];
1027 } 1008 }
1028 if (view != null) { 1009 if (view != null) {
1029 _queryParams["view"] = [view]; 1010 _queryParams["view"] = [view];
1030 } 1011 }
1031 if (aggregation_reduceFractionLessThanParams_threshold != null) {
1032 _queryParams["aggregation.reduceFractionLessThanParams.threshold"] = ["${a ggregation_reduceFractionLessThanParams_threshold}"];
1033 }
1034 if (aggregation_groupByFields != null) { 1012 if (aggregation_groupByFields != null) {
1035 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; 1013 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields;
1036 } 1014 }
1037 if (interval_endTime != null) { 1015 if (interval_endTime != null) {
1038 _queryParams["interval.endTime"] = [interval_endTime]; 1016 _queryParams["interval.endTime"] = [interval_endTime];
1039 } 1017 }
1040 if (aggregation_alignmentPeriod != null) { 1018 if (aggregation_alignmentPeriod != null) {
1041 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod ]; 1019 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod ];
1042 } 1020 }
1043 if (pageSize != null) { 1021 if (pageSize != null) {
1044 _queryParams["pageSize"] = ["${pageSize}"]; 1022 _queryParams["pageSize"] = ["${pageSize}"];
1045 } 1023 }
1046 if (outputPeriod != null) { 1024 if (orderBy != null) {
1047 _queryParams["outputPeriod"] = [outputPeriod]; 1025 _queryParams["orderBy"] = [orderBy];
1026 }
1027 if (aggregation_crossSeriesReducer != null) {
1028 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR educer];
1029 }
1030 if (filter != null) {
1031 _queryParams["filter"] = [filter];
1048 } 1032 }
1049 1033
1050 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries '; 1034 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries ';
1051 1035
1052 var _response = _requester.request(_url, 1036 var _response = _requester.request(_url,
1053 "GET", 1037 "GET",
1054 body: _body, 1038 body: _body,
1055 queryParams: _queryParams, 1039 queryParams: _queryParams,
1056 uploadOptions: _uploadOptions, 1040 uploadOptions: _uploadOptions,
1057 uploadMedia: _uploadMedia, 1041 uploadMedia: _uploadMedia,
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 } 2767 }
2784 if (int64Value != null) { 2768 if (int64Value != null) {
2785 _json["int64Value"] = int64Value; 2769 _json["int64Value"] = int64Value;
2786 } 2770 }
2787 if (stringValue != null) { 2771 if (stringValue != null) {
2788 _json["stringValue"] = stringValue; 2772 _json["stringValue"] = stringValue;
2789 } 2773 }
2790 return _json; 2774 return _json;
2791 } 2775 }
2792 } 2776 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/ml/v1.dart ('k') | generated/googleapis/lib/partners/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698