| 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 617 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 * [filter] - A monitoring filter that specifies which time series should be | |
| 880 * returned. The filter must specify a single metric type, and can | |
| 881 * additionally specify metric labels and other information. For example: | |
| 882 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND | |
| 883 * metric.label.instance_name = "my-instance-name" | |
| 884 * | |
| 885 * [pageToken] - If this field is not empty then it must contain the | |
| 886 * nextPageToken value returned by a previous call to this method. Using this | |
| 887 * field causes the method to return additional results from the previous | |
| 888 * method call. | |
| 889 * | |
| 890 * [aggregation_perSeriesAligner] - The approach to be used to align | |
| 891 * individual time series. Not all alignment functions may be applied to all | |
| 892 * time series, depending on the metric type and value type of the original | |
| 893 * time series. Alignment may change the metric type or the value type of the | |
| 894 * time series.Time series data must be aligned in order to perform cross-time | |
| 895 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner | |
| 896 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be | |
| 897 * specified; otherwise, an error is returned. | |
| 898 * Possible string values are: | |
| 899 * - "ALIGN_NONE" : A ALIGN_NONE. | |
| 900 * - "ALIGN_DELTA" : A ALIGN_DELTA. | |
| 901 * - "ALIGN_RATE" : A ALIGN_RATE. | |
| 902 * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE. | |
| 903 * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER. | |
| 904 * - "ALIGN_MIN" : A ALIGN_MIN. | |
| 905 * - "ALIGN_MAX" : A ALIGN_MAX. | |
| 906 * - "ALIGN_MEAN" : A ALIGN_MEAN. | |
| 907 * - "ALIGN_COUNT" : A ALIGN_COUNT. | |
| 908 * - "ALIGN_SUM" : A ALIGN_SUM. | |
| 909 * - "ALIGN_STDDEV" : A ALIGN_STDDEV. | |
| 910 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. | |
| 911 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. | |
| 912 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99. | |
| 913 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. | |
| 914 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. | |
| 915 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. | |
| 916 * | |
| 917 * [interval_startTime] - Optional. The beginning of the time interval. The | |
| 918 * default value for the start time is the end time. The start time must not | |
| 919 * be later than the end time. | |
| 920 * | |
| 921 * [view] - Specifies which information is returned about the time series. | |
| 922 * Possible string values are: | |
| 923 * - "FULL" : A FULL. | |
| 924 * - "HEADERS" : A HEADERS. | |
| 925 * | |
| 926 * [aggregation_groupByFields] - The set of fields to preserve when | 879 * [aggregation_groupByFields] - The set of fields to preserve when |
| 927 * crossSeriesReducer is specified. The groupByFields determine how the time | 880 * crossSeriesReducer is specified. The groupByFields determine how the time |
| 928 * series are partitioned into subsets prior to applying the aggregation | 881 * series are partitioned into subsets prior to applying the aggregation |
| 929 * function. Each subset contains time series that have the same value for | 882 * function. Each subset contains time series that have the same value for |
| 930 * each of the grouping fields. Each individual time series is a member of | 883 * each of the grouping fields. Each individual time series is a member of |
| 931 * exactly one subset. The crossSeriesReducer is applied to each subset of | 884 * exactly one subset. The crossSeriesReducer is applied to each subset of |
| 932 * time series. It is not possible to reduce across different resource types, | 885 * time series. It is not possible to reduce across different resource types, |
| 933 * so this field implicitly contains resource.type. Fields not specified in | 886 * so this field implicitly contains resource.type. Fields not specified in |
| 934 * groupByFields are aggregated away. If groupByFields is not specified and | 887 * groupByFields are aggregated away. If groupByFields is not specified and |
| 935 * all the time series have the same resource type, then the time series are | 888 * all the time series have the same resource type, then the time series are |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 * - "REDUCE_SUM" : A REDUCE_SUM. | 924 * - "REDUCE_SUM" : A REDUCE_SUM. |
| 972 * - "REDUCE_STDDEV" : A REDUCE_STDDEV. | 925 * - "REDUCE_STDDEV" : A REDUCE_STDDEV. |
| 973 * - "REDUCE_COUNT" : A REDUCE_COUNT. | 926 * - "REDUCE_COUNT" : A REDUCE_COUNT. |
| 974 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE. | 927 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE. |
| 975 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE. | 928 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE. |
| 976 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99. | 929 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99. |
| 977 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. | 930 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. |
| 978 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. | 931 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. |
| 979 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. | 932 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. |
| 980 * | 933 * |
| 934 * [filter] - A monitoring filter that specifies which time series should be |
| 935 * returned. The filter must specify a single metric type, and can |
| 936 * additionally specify metric labels and other information. For example: |
| 937 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND |
| 938 * metric.label.instance_name = "my-instance-name" |
| 939 * |
| 940 * [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 |
| 942 * field causes the method to return additional results from the previous |
| 943 * method call. |
| 944 * |
| 945 * [aggregation_perSeriesAligner] - The approach to be used to align |
| 946 * individual time series. Not all alignment functions may be applied to all |
| 947 * time series, depending on the metric type and value type of the original |
| 948 * time series. Alignment may change the metric type or the value type of the |
| 949 * time series.Time series data must be aligned in order to perform cross-time |
| 950 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner |
| 951 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be |
| 952 * specified; otherwise, an error is returned. |
| 953 * Possible string values are: |
| 954 * - "ALIGN_NONE" : A ALIGN_NONE. |
| 955 * - "ALIGN_DELTA" : A ALIGN_DELTA. |
| 956 * - "ALIGN_RATE" : A ALIGN_RATE. |
| 957 * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE. |
| 958 * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER. |
| 959 * - "ALIGN_MIN" : A ALIGN_MIN. |
| 960 * - "ALIGN_MAX" : A ALIGN_MAX. |
| 961 * - "ALIGN_MEAN" : A ALIGN_MEAN. |
| 962 * - "ALIGN_COUNT" : A ALIGN_COUNT. |
| 963 * - "ALIGN_SUM" : A ALIGN_SUM. |
| 964 * - "ALIGN_STDDEV" : A ALIGN_STDDEV. |
| 965 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. |
| 966 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. |
| 967 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99. |
| 968 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. |
| 969 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. |
| 970 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. |
| 971 * |
| 972 * [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 |
| 974 * be later than the end time. |
| 975 * |
| 976 * [view] - Specifies which information is returned about the time series. |
| 977 * Possible string values are: |
| 978 * - "FULL" : A FULL. |
| 979 * - "HEADERS" : A HEADERS. |
| 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.String filte
r, core.String pageToken, core.String aggregation_perSeriesAligner, core.String
interval_startTime, core.String view, core.List<core.String> aggregation_groupBy
Fields, core.String interval_endTime, core.String aggregation_alignmentPeriod, c
ore.int pageSize, core.String orderBy, core.String aggregation_crossSeriesReduce
r}) { | 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 (filter != null) { | |
| 1001 _queryParams["filter"] = [filter]; | |
| 1002 } | |
| 1003 if (pageToken != null) { | |
| 1004 _queryParams["pageToken"] = [pageToken]; | |
| 1005 } | |
| 1006 if (aggregation_perSeriesAligner != null) { | |
| 1007 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; | |
| 1008 } | |
| 1009 if (interval_startTime != null) { | |
| 1010 _queryParams["interval.startTime"] = [interval_startTime]; | |
| 1011 } | |
| 1012 if (view != null) { | |
| 1013 _queryParams["view"] = [view]; | |
| 1014 } | |
| 1015 if (aggregation_groupByFields != null) { | 1000 if (aggregation_groupByFields != null) { |
| 1016 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; | 1001 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; |
| 1017 } | 1002 } |
| 1018 if (interval_endTime != null) { | 1003 if (interval_endTime != null) { |
| 1019 _queryParams["interval.endTime"] = [interval_endTime]; | 1004 _queryParams["interval.endTime"] = [interval_endTime]; |
| 1020 } | 1005 } |
| 1021 if (aggregation_alignmentPeriod != null) { | 1006 if (aggregation_alignmentPeriod != null) { |
| 1022 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod
]; | 1007 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod
]; |
| 1023 } | 1008 } |
| 1024 if (pageSize != null) { | 1009 if (pageSize != null) { |
| 1025 _queryParams["pageSize"] = ["${pageSize}"]; | 1010 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1026 } | 1011 } |
| 1027 if (orderBy != null) { | 1012 if (orderBy != null) { |
| 1028 _queryParams["orderBy"] = [orderBy]; | 1013 _queryParams["orderBy"] = [orderBy]; |
| 1029 } | 1014 } |
| 1030 if (aggregation_crossSeriesReducer != null) { | 1015 if (aggregation_crossSeriesReducer != null) { |
| 1031 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; | 1016 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR
educer]; |
| 1032 } | 1017 } |
| 1018 if (filter != null) { |
| 1019 _queryParams["filter"] = [filter]; |
| 1020 } |
| 1021 if (pageToken != null) { |
| 1022 _queryParams["pageToken"] = [pageToken]; |
| 1023 } |
| 1024 if (aggregation_perSeriesAligner != null) { |
| 1025 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign
er]; |
| 1026 } |
| 1027 if (interval_startTime != null) { |
| 1028 _queryParams["interval.startTime"] = [interval_startTime]; |
| 1029 } |
| 1030 if (view != null) { |
| 1031 _queryParams["view"] = [view]; |
| 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); |
| 1043 return _response.then((data) => new ListTimeSeriesResponse.fromJson(data)); | 1043 return _response.then((data) => new ListTimeSeriesResponse.fromJson(data)); |
| 1044 } | 1044 } |
| 1045 | 1045 |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 | 1048 |
| 1049 | 1049 |
| 1050 /** | 1050 /** |
| 1051 * A Distribution may optionally contain a histogram of the values in the | 1051 * BucketOptions describes the bucket boundaries used to create a histogram for |
| 1052 * population. The histogram is given in bucket_counts as counts of values that | 1052 * the distribution. The buckets can be in a linear sequence, an exponential |
| 1053 * fall into one of a sequence of non-overlapping buckets. The sequence of | 1053 * sequence, or each bucket can be specified explicitly. BucketOptions does not |
| 1054 * buckets is described by bucket_options.A bucket specifies an inclusive lower | 1054 * include the number of values in each bucket.A bucket has an inclusive lower |
| 1055 * bound and exclusive upper bound for the values that are counted for that | 1055 * bound and exclusive upper bound for the values that are counted for that |
| 1056 * bucket. The upper bound of a bucket is strictly greater than the lower | 1056 * bucket. The upper bound of a bucket must be strictly greater than the lower |
| 1057 * bound.The sequence of N buckets for a Distribution consists of an underflow | 1057 * bound. The sequence of N buckets for a distribution consists of an underflow |
| 1058 * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and | 1058 * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and |
| 1059 * an overflow bucket (number N - 1). The buckets are contiguous: the lower | 1059 * an overflow bucket (number N - 1). The buckets are contiguous: the lower |
| 1060 * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The | 1060 * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The |
| 1061 * buckets span the whole range of finite values: lower bound of the underflow | 1061 * buckets span the whole range of finite values: lower bound of the underflow |
| 1062 * bucket is -infinity and the upper bound of the overflow bucket is +infinity. | 1062 * bucket is -infinity and the upper bound of the overflow bucket is +infinity. |
| 1063 * The finite buckets are so-called because both bounds are finite.BucketOptions | 1063 * The finite buckets are so-called because both bounds are finite. |
| 1064 * describes bucket boundaries in one of three ways. Two describe the boundaries | |
| 1065 * by giving parameters for a formula to generate boundaries and one gives the | |
| 1066 * bucket boundaries explicitly.If bucket_options is not given, then no | |
| 1067 * bucket_counts may be given. | |
| 1068 */ | 1064 */ |
| 1069 class BucketOptions { | 1065 class BucketOptions { |
| 1070 /** The explicit buckets. */ | 1066 /** The explicit buckets. */ |
| 1071 Explicit explicitBuckets; | 1067 Explicit explicitBuckets; |
| 1072 /** The exponential buckets. */ | 1068 /** The exponential buckets. */ |
| 1073 Exponential exponentialBuckets; | 1069 Exponential exponentialBuckets; |
| 1074 /** The linear bucket. */ | 1070 /** The linear bucket. */ |
| 1075 Linear linearBuckets; | 1071 Linear linearBuckets; |
| 1076 | 1072 |
| 1077 BucketOptions(); | 1073 BucketOptions(); |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 core.Map toJson() { | 1304 core.Map toJson() { |
| 1309 var _json = new core.Map(); | 1305 var _json = new core.Map(); |
| 1310 if (timeSeries != null) { | 1306 if (timeSeries != null) { |
| 1311 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; | 1307 _json["timeSeries"] = timeSeries.map((value) => (value).toJson()).toList()
; |
| 1312 } | 1308 } |
| 1313 return _json; | 1309 return _json; |
| 1314 } | 1310 } |
| 1315 } | 1311 } |
| 1316 | 1312 |
| 1317 /** | 1313 /** |
| 1318 * Distribution contains summary statistics for a population of values and, | 1314 * Distribution contains summary statistics for a population of values. It |
| 1319 * optionally, a histogram representing the distribution of those values across | 1315 * optionally contains a histogram representing the distribution of those values |
| 1320 * a specified set of histogram buckets.The summary statistics are the count, | 1316 * across a set of buckets.The summary statistics are the count, mean, sum of |
| 1321 * mean, sum of the squared deviation from the mean, the minimum, and the | 1317 * the squared deviation from the mean, the minimum, and the maximum of the set |
| 1322 * maximum of the set of population of values.The histogram is based on a | 1318 * of population of values. The histogram is based on a sequence of buckets and |
| 1323 * sequence of buckets and gives a count of values that fall into each bucket. | 1319 * gives a count of values that fall into each bucket. The boundaries of the |
| 1324 * The boundaries of the buckets are given either explicitly or by specifying | 1320 * buckets are given either explicitly or by formulas for buckets of fixed or |
| 1325 * parameters for a method of computing them (buckets of fixed width or buckets | 1321 * exponentially increasing widths.Although it is not forbidden, it is generally |
| 1326 * of exponentially increasing width).Although it is not forbidden, it is | 1322 * a bad idea to include non-finite values (infinities or NaNs) in the |
| 1327 * generally a bad idea to include non-finite values (infinities or NaNs) in the | |
| 1328 * population of values, as this will render the mean and | 1323 * population of values, as this will render the mean and |
| 1329 * sum_of_squared_deviation fields meaningless. | 1324 * sum_of_squared_deviation fields meaningless. |
| 1330 */ | 1325 */ |
| 1331 class Distribution { | 1326 class Distribution { |
| 1332 /** | 1327 /** |
| 1333 * If bucket_options is given, then the sum of the values in bucket_counts | 1328 * Required in the Stackdriver Monitoring API v3. The values for each bucket |
| 1334 * must equal the value in count. If bucket_options is not given, no | 1329 * specified in bucket_options. The sum of the values in bucketCounts must |
| 1335 * bucket_counts fields may be given.Bucket counts are given in order under | 1330 * equal the value in the count field of the Distribution object. The order of |
| 1336 * the numbering scheme described above (the underflow bucket has number 0; | 1331 * the bucket counts follows the numbering schemes described for the three |
| 1337 * the finite buckets, if any, have numbers 1 through N-2; the overflow bucket | 1332 * bucket types. The underflow bucket has number 0; the finite buckets, if |
| 1338 * has number N-1).The size of bucket_counts must be no greater than N as | 1333 * any, have numbers 1 through N-2; and the overflow bucket has number N-1. |
| 1339 * defined in bucket_options.Any suffix of trailing zero bucket_count fields | 1334 * The size of bucket_counts must not be greater than N. If the size is less |
| 1340 * may be omitted. | 1335 * than N, then the remaining buckets are assigned values of zero. |
| 1341 */ | 1336 */ |
| 1342 core.List<core.String> bucketCounts; | 1337 core.List<core.String> bucketCounts; |
| 1343 /** Defines the histogram bucket boundaries. */ | 1338 /** |
| 1339 * Required in the Stackdriver Monitoring API v3. Defines the histogram bucket |
| 1340 * boundaries. |
| 1341 */ |
| 1344 BucketOptions bucketOptions; | 1342 BucketOptions bucketOptions; |
| 1345 /** The number of values in the population. Must be non-negative. */ | 1343 /** |
| 1344 * The number of values in the population. Must be non-negative. This value |
| 1345 * must equal the sum of the values in bucket_counts if a histogram is |
| 1346 * provided. |
| 1347 */ |
| 1346 core.String count; | 1348 core.String count; |
| 1347 /** | 1349 /** |
| 1348 * The arithmetic mean of the values in the population. If count is zero then | 1350 * The arithmetic mean of the values in the population. If count is zero then |
| 1349 * this field must be zero. | 1351 * this field must be zero. |
| 1350 */ | 1352 */ |
| 1351 core.double mean; | 1353 core.double mean; |
| 1352 /** | 1354 /** |
| 1353 * If specified, contains the range of the population values. The field must | 1355 * If specified, contains the range of the population values. The field must |
| 1354 * not be present if the count is zero. This field is presently ignored by the | 1356 * not be present if the count is zero. This field is presently ignored by the |
| 1355 * Stackdriver Monitoring API v3. | 1357 * Stackdriver Monitoring API v3. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 Empty.fromJson(core.Map _json) { | 1430 Empty.fromJson(core.Map _json) { |
| 1429 } | 1431 } |
| 1430 | 1432 |
| 1431 core.Map toJson() { | 1433 core.Map toJson() { |
| 1432 var _json = new core.Map(); | 1434 var _json = new core.Map(); |
| 1433 return _json; | 1435 return _json; |
| 1434 } | 1436 } |
| 1435 } | 1437 } |
| 1436 | 1438 |
| 1437 /** | 1439 /** |
| 1438 * A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets | 1440 * Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 |
| 1439 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower | 1441 * (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < |
| 1440 * bound (1 <= i < N); boundsi - 1There must be at least one element in bounds. | 1442 * N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must |
| 1441 * If bounds has only one element, there are no finite buckets, and that single | 1443 * contain at least one element. If bounds has only one element, then there are |
| 1442 * element is the common boundary of the overflow and underflow buckets. | 1444 * no finite buckets, and that single element is the common boundary of the |
| 1445 * overflow and underflow buckets. |
| 1443 */ | 1446 */ |
| 1444 class Explicit { | 1447 class Explicit { |
| 1445 /** The values must be monotonically increasing. */ | 1448 /** The values must be monotonically increasing. */ |
| 1446 core.List<core.double> bounds; | 1449 core.List<core.double> bounds; |
| 1447 | 1450 |
| 1448 Explicit(); | 1451 Explicit(); |
| 1449 | 1452 |
| 1450 Explicit.fromJson(core.Map _json) { | 1453 Explicit.fromJson(core.Map _json) { |
| 1451 if (_json.containsKey("bounds")) { | 1454 if (_json.containsKey("bounds")) { |
| 1452 bounds = _json["bounds"]; | 1455 bounds = _json["bounds"]; |
| 1453 } | 1456 } |
| 1454 } | 1457 } |
| 1455 | 1458 |
| 1456 core.Map toJson() { | 1459 core.Map toJson() { |
| 1457 var _json = new core.Map(); | 1460 var _json = new core.Map(); |
| 1458 if (bounds != null) { | 1461 if (bounds != null) { |
| 1459 _json["bounds"] = bounds; | 1462 _json["bounds"] = bounds; |
| 1460 } | 1463 } |
| 1461 return _json; | 1464 return _json; |
| 1462 } | 1465 } |
| 1463 } | 1466 } |
| 1464 | 1467 |
| 1465 /** | 1468 /** |
| 1466 * Specify a sequence of buckets that have a width that is proportional to the | 1469 * Specifies an exponential sequence of buckets that have a width that is |
| 1467 * value of the lower bound. Each bucket represents a constant relative | 1470 * proportional to the value of the lower bound. Each bucket represents a |
| 1468 * uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 | 1471 * constant relative uncertainty on a specific value in the bucket.There are |
| 1469 * (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): | 1472 * num_finite_buckets + 2 (= N) buckets. Bucket i has the following |
| 1470 * scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * | 1473 * boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower |
| 1471 * (growth_factor ^ (i - 1)). | 1474 * bound (1 <= i < N): scale * (growth_factor ^ (i - 1)). |
| 1472 */ | 1475 */ |
| 1473 class Exponential { | 1476 class Exponential { |
| 1474 /** Must be greater than 1. */ | 1477 /** Must be greater than 1. */ |
| 1475 core.double growthFactor; | 1478 core.double growthFactor; |
| 1476 /** Must be greater than 0. */ | 1479 /** Must be greater than 0. */ |
| 1477 core.int numFiniteBuckets; | 1480 core.int numFiniteBuckets; |
| 1478 /** Must be greater than 0. */ | 1481 /** Must be greater than 0. */ |
| 1479 core.double scale; | 1482 core.double scale; |
| 1480 | 1483 |
| 1481 Exponential(); | 1484 Exponential(); |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1767 _json["key"] = key; | 1770 _json["key"] = key; |
| 1768 } | 1771 } |
| 1769 if (valueType != null) { | 1772 if (valueType != null) { |
| 1770 _json["valueType"] = valueType; | 1773 _json["valueType"] = valueType; |
| 1771 } | 1774 } |
| 1772 return _json; | 1775 return _json; |
| 1773 } | 1776 } |
| 1774 } | 1777 } |
| 1775 | 1778 |
| 1776 /** | 1779 /** |
| 1777 * Specify a sequence of buckets that all have the same width (except overflow | 1780 * Specifies a linear sequence of buckets that all have the same width (except |
| 1778 * and underflow). Each bucket represents a constant absolute uncertainty on the | 1781 * overflow and underflow). Each bucket represents a constant absolute |
| 1779 * specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets | 1782 * uncertainty on the specific value in the bucket.There are num_finite_buckets |
| 1780 * with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + | 1783 * + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i |
| 1781 * (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). | 1784 * < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i |
| 1785 * - 1)). |
| 1782 */ | 1786 */ |
| 1783 class Linear { | 1787 class Linear { |
| 1784 /** Must be greater than 0. */ | 1788 /** Must be greater than 0. */ |
| 1785 core.int numFiniteBuckets; | 1789 core.int numFiniteBuckets; |
| 1786 /** Lower bound of the first bucket. */ | 1790 /** Lower bound of the first bucket. */ |
| 1787 core.double offset; | 1791 core.double offset; |
| 1788 /** Must be greater than 0. */ | 1792 /** Must be greater than 0. */ |
| 1789 core.double width; | 1793 core.double width; |
| 1790 | 1794 |
| 1791 Linear(); | 1795 Linear(); |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2763 } | 2767 } |
| 2764 if (int64Value != null) { | 2768 if (int64Value != null) { |
| 2765 _json["int64Value"] = int64Value; | 2769 _json["int64Value"] = int64Value; |
| 2766 } | 2770 } |
| 2767 if (stringValue != null) { | 2771 if (stringValue != null) { |
| 2768 _json["stringValue"] = stringValue; | 2772 _json["stringValue"] = stringValue; |
| 2769 } | 2773 } |
| 2770 return _json; | 2774 return _json; |
| 2771 } | 2775 } |
| 2772 } | 2776 } |
| OLD | NEW |