Chromium Code Reviews

Unified Diff: generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart
diff --git a/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart b/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart
index 67796c9e9383e5f38916c384ab0a0108902da828..a06f5b48d32d00b8c9d245197a9967aab1c93099 100644
--- a/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart
+++ b/generated/googleapis_beta/lib/cloudmonitoring/v2beta2.dart
@@ -9,59 +9,60 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show ApiRequestError, DetailedApiRequestError;
const core.String USER_AGENT = 'dart-api-client cloudmonitoring/v2beta2';
-/** Accesses Google Cloud Monitoring data. */
+/// Accesses Google Cloud Monitoring data.
class CloudmonitoringApi {
- /** View and manage your data across Google Cloud Platform services */
- static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
+ /// View and manage your data across Google Cloud Platform services
+ static const CloudPlatformScope =
+ "https://www.googleapis.com/auth/cloud-platform";
- /**
- * View and write monitoring data for all of your Google and third-party Cloud
- * and API projects
- */
+ /// View and write monitoring data for all of your Google and third-party
+ /// Cloud and API projects
static const MonitoringScope = "https://www.googleapis.com/auth/monitoring";
-
final commons.ApiRequester _requester;
- MetricDescriptorsResourceApi get metricDescriptors => new MetricDescriptorsResourceApi(_requester);
+ MetricDescriptorsResourceApi get metricDescriptors =>
+ new MetricDescriptorsResourceApi(_requester);
TimeseriesResourceApi get timeseries => new TimeseriesResourceApi(_requester);
- TimeseriesDescriptorsResourceApi get timeseriesDescriptors => new TimeseriesDescriptorsResourceApi(_requester);
-
- CloudmonitoringApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "cloudmonitoring/v2beta2/projects/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ TimeseriesDescriptorsResourceApi get timeseriesDescriptors =>
+ new TimeseriesDescriptorsResourceApi(_requester);
+
+ CloudmonitoringApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "cloudmonitoring/v2beta2/projects/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class MetricDescriptorsResourceApi {
final commons.ApiRequester _requester;
- MetricDescriptorsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Create a new metric.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - The project id. The value can be the numeric project ID or
- * string-based project name.
- *
- * Completes with a [MetricDescriptor].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<MetricDescriptor> create(MetricDescriptor request, core.String project) {
+ MetricDescriptorsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Create a new metric.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project id. The value can be the numeric project ID or
+ /// string-based project name.
+ ///
+ /// Completes with a [MetricDescriptor].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<MetricDescriptor> create(
+ MetricDescriptor request, core.String project) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -78,34 +79,32 @@ class MetricDescriptorsResourceApi {
_url = commons.Escaper.ecapeVariable('$project') + '/metricDescriptors';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new MetricDescriptor.fromJson(data));
}
- /**
- * Delete an existing metric.
- *
- * Request parameters:
- *
- * [project] - The project ID to which the metric belongs.
- *
- * [metric] - Name of the metric.
- *
- * Completes with a [DeleteMetricDescriptorResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<DeleteMetricDescriptorResponse> delete(core.String project, core.String metric) {
+ /// Delete an existing metric.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project ID to which the metric belongs.
+ ///
+ /// [metric] - Name of the metric.
+ ///
+ /// Completes with a [DeleteMetricDescriptorResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<DeleteMetricDescriptorResponse> delete(
+ core.String project, core.String metric) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -120,55 +119,57 @@ class MetricDescriptorsResourceApi {
throw new core.ArgumentError("Parameter metric is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/metricDescriptors/' + commons.Escaper.ecapeVariable('$metric');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/metricDescriptors/' +
+ commons.Escaper.ecapeVariable('$metric');
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new DeleteMetricDescriptorResponse.fromJson(data));
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new DeleteMetricDescriptorResponse.fromJson(data));
}
- /**
- * List metric descriptors that match the query. If the query is not set, then
- * all of the metric descriptors will be returned. Large responses will be
- * paginated, use the nextPageToken returned in the response to request
- * subsequent pages of results by setting the pageToken query parameter to the
- * value of the nextPageToken.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - The project id. The value can be the numeric project ID or
- * string-based project name.
- *
- * [count] - Maximum number of metric descriptors per page. Used for
- * pagination. If not specified, count = 100.
- * Value must be between "1" and "1000".
- *
- * [pageToken] - The pagination token, which is used to page through large
- * result sets. Set this value to the value of the nextPageToken to retrieve
- * the next page of results.
- *
- * [query] - The query used to search against existing metrics. Separate
- * keywords with a space; the service joins all keywords with AND, meaning
- * that all keywords must match for a metric to be returned. If this field is
- * omitted, all metrics are returned. If an empty string is passed with this
- * field, no metrics are returned.
- *
- * Completes with a [ListMetricDescriptorsResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListMetricDescriptorsResponse> list(ListMetricDescriptorsRequest request, core.String project, {core.int count, core.String pageToken, core.String query}) {
+ /// List metric descriptors that match the query. If the query is not set,
+ /// then all of the metric descriptors will be returned. Large responses will
+ /// be paginated, use the nextPageToken returned in the response to request
+ /// subsequent pages of results by setting the pageToken query parameter to
+ /// the value of the nextPageToken.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project id. The value can be the numeric project ID or
+ /// string-based project name.
+ ///
+ /// [count] - Maximum number of metric descriptors per page. Used for
+ /// pagination. If not specified, count = 100.
+ /// Value must be between "1" and "1000".
+ ///
+ /// [pageToken] - The pagination token, which is used to page through large
+ /// result sets. Set this value to the value of the nextPageToken to retrieve
+ /// the next page of results.
+ ///
+ /// [query] - The query used to search against existing metrics. Separate
+ /// keywords with a space; the service joins all keywords with AND, meaning
+ /// that all keywords must match for a metric to be returned. If this field
+ /// is omitted, all metrics are returned. If an empty string is passed with
+ /// this field, no metrics are returned.
+ ///
+ /// Completes with a [ListMetricDescriptorsResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListMetricDescriptorsResponse> list(
+ ListMetricDescriptorsRequest request, core.String project,
+ {core.int count, core.String pageToken, core.String query}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -194,111 +195,114 @@ class MetricDescriptorsResourceApi {
_url = commons.Escaper.ecapeVariable('$project') + '/metricDescriptors';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ListMetricDescriptorsResponse.fromJson(data));
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ListMetricDescriptorsResponse.fromJson(data));
}
-
}
-
class TimeseriesResourceApi {
final commons.ApiRequester _requester;
- TimeseriesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List the data points of the time series that match the metric and labels
- * values and that have data points in the interval. Large responses are
- * paginated; use the nextPageToken returned in the response to request
- * subsequent pages of results by setting the pageToken query parameter to the
- * value of the nextPageToken.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - The project ID to which this time series belongs. The value can
- * be the numeric project ID or string-based project name.
- *
- * [metric] - Metric names are protocol-free URLs as listed in the Supported
- * Metrics page. For example,
- * compute.googleapis.com/instance/disk/read_ops_count.
- *
- * [youngest] - End of the time interval (inclusive), which is expressed as an
- * RFC 3339 timestamp.
- *
- * [aggregator] - The aggregation function that will reduce the data points in
- * each window to a single point. This parameter is only valid for
- * non-cumulative metrics with a value type of INT64 or DOUBLE.
- * Possible string values are:
- * - "max"
- * - "mean"
- * - "min"
- * - "sum"
- *
- * [count] - Maximum number of data points per page, which is used for
- * pagination of results.
- * Value must be between "1" and "12000".
- *
- * [labels] - A collection of labels for the matching time series, which are
- * represented as:
- * - key==value: key equals the value
- * - key=~value: key regex matches the value
- * - key!=value: key does not equal the value
- * - key!~value: key regex does not match the value For example, to list all
- * of the time series descriptors for the region us-central1, you could
- * specify:
- * label=cloud.googleapis.com%2Flocation=~us-central1.*
- * Value must have pattern "(.+?)(==|=~|!=|!~)(.+)".
- *
- * [oldest] - Start of the time interval (exclusive), which is expressed as an
- * RFC 3339 timestamp. If neither oldest nor timespan is specified, the
- * default time interval will be (youngest - 4 hours, youngest]
- *
- * [pageToken] - The pagination token, which is used to page through large
- * result sets. Set this value to the value of the nextPageToken to retrieve
- * the next page of results.
- *
- * [timespan] - Length of the time interval to query, which is an alternative
- * way to declare the interval: (youngest - timespan, youngest]. The timespan
- * and oldest parameters should not be used together. Units:
- * - s: second
- * - m: minute
- * - h: hour
- * - d: day
- * - w: week Examples: 2s, 3m, 4w. Only one unit is allowed, for example:
- * 2w3d is not allowed; you should use 17d instead.
- *
- * If neither oldest nor timespan is specified, the default time interval will
- * be (youngest - 4 hours, youngest].
- * Value must have pattern "[0-9]+[smhdw]?".
- *
- * [window] - The sampling window. At most one data point will be returned for
- * each window in the requested time interval. This parameter is only valid
- * for non-cumulative metric types. Units:
- * - m: minute
- * - h: hour
- * - d: day
- * - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is
- * not allowed; you should use 17d instead.
- * Value must have pattern "[0-9]+[mhdw]?".
- *
- * Completes with a [ListTimeseriesResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListTimeseriesResponse> list(ListTimeseriesRequest request, core.String project, core.String metric, core.String youngest, {core.String aggregator, core.int count, core.List<core.String> labels, core.String oldest, core.String pageToken, core.String timespan, core.String window}) {
+ TimeseriesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// List the data points of the time series that match the metric and labels
+ /// values and that have data points in the interval. Large responses are
+ /// paginated; use the nextPageToken returned in the response to request
+ /// subsequent pages of results by setting the pageToken query parameter to
+ /// the value of the nextPageToken.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project ID to which this time series belongs. The value
+ /// can be the numeric project ID or string-based project name.
+ ///
+ /// [metric] - Metric names are protocol-free URLs as listed in the Supported
+ /// Metrics page. For example,
+ /// compute.googleapis.com/instance/disk/read_ops_count.
+ ///
+ /// [youngest] - End of the time interval (inclusive), which is expressed as
+ /// an RFC 3339 timestamp.
+ ///
+ /// [aggregator] - The aggregation function that will reduce the data points
+ /// in each window to a single point. This parameter is only valid for
+ /// non-cumulative metrics with a value type of INT64 or DOUBLE.
+ /// Possible string values are:
+ /// - "max"
+ /// - "mean"
+ /// - "min"
+ /// - "sum"
+ ///
+ /// [count] - Maximum number of data points per page, which is used for
+ /// pagination of results.
+ /// Value must be between "1" and "12000".
+ ///
+ /// [labels] - A collection of labels for the matching time series, which are
+ /// represented as:
+ /// - key==value: key equals the value
+ /// - key=~value: key regex matches the value
+ /// - key!=value: key does not equal the value
+ /// - key!~value: key regex does not match the value For example, to list
+ /// all of the time series descriptors for the region us-central1, you could
+ /// specify:
+ /// label=cloud.googleapis.com%2Flocation=~us-central1.*
+ /// Value must have pattern "(.+?)(==|=~|!=|!~)(.+)".
+ ///
+ /// [oldest] - Start of the time interval (exclusive), which is expressed as
+ /// an RFC 3339 timestamp. If neither oldest nor timespan is specified, the
+ /// default time interval will be (youngest - 4 hours, youngest]
+ ///
+ /// [pageToken] - The pagination token, which is used to page through large
+ /// result sets. Set this value to the value of the nextPageToken to retrieve
+ /// the next page of results.
+ ///
+ /// [timespan] - Length of the time interval to query, which is an
+ /// alternative way to declare the interval: (youngest - timespan, youngest].
+ /// The timespan and oldest parameters should not be used together. Units:
+ /// - s: second
+ /// - m: minute
+ /// - h: hour
+ /// - d: day
+ /// - w: week Examples: 2s, 3m, 4w. Only one unit is allowed, for example:
+ /// 2w3d is not allowed; you should use 17d instead.
+ ///
+ /// If neither oldest nor timespan is specified, the default time interval
+ /// will be (youngest - 4 hours, youngest].
+ /// Value must have pattern "[0-9]+[smhdw]?".
+ ///
+ /// [window] - The sampling window. At most one data point will be returned
+ /// for each window in the requested time interval. This parameter is only
+ /// valid for non-cumulative metric types. Units:
+ /// - m: minute
+ /// - h: hour
+ /// - d: day
+ /// - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d
+ /// is not allowed; you should use 17d instead.
+ /// Value must have pattern "[0-9]+[mhdw]?".
+ ///
+ /// Completes with a [ListTimeseriesResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListTimeseriesResponse> list(ListTimeseriesRequest request,
+ core.String project, core.String metric, core.String youngest,
+ {core.String aggregator,
+ core.int count,
+ core.List<core.String> labels,
+ core.String oldest,
+ core.String pageToken,
+ core.String timespan,
+ core.String window}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -341,43 +345,43 @@ class TimeseriesResourceApi {
_queryParams["window"] = [window];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/timeseries/' + commons.Escaper.ecapeVariable('$metric');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/timeseries/' +
+ commons.Escaper.ecapeVariable('$metric');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ListTimeseriesResponse.fromJson(data));
}
- /**
- * Put data points to one or more time series for one or more metrics. If a
- * time series does not exist, a new time series will be created. It is not
- * allowed to write a time series point that is older than the existing
- * youngest point of that time series. Points that are older than the existing
- * youngest point of that time series will be discarded silently. Therefore,
- * users should make sure that points of a time series are written
- * sequentially in the order of their end time.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - The project ID. The value can be the numeric project ID or
- * string-based project name.
- *
- * Completes with a [WriteTimeseriesResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<WriteTimeseriesResponse> write(WriteTimeseriesRequest request, core.String project) {
+ /// Put data points to one or more time series for one or more metrics. If a
+ /// time series does not exist, a new time series will be created. It is not
+ /// allowed to write a time series point that is older than the existing
+ /// youngest point of that time series. Points that are older than the
+ /// existing youngest point of that time series will be discarded silently.
+ /// Therefore, users should make sure that points of a time series are
+ /// written sequentially in the order of their end time.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project ID. The value can be the numeric project ID or
+ /// string-based project name.
+ ///
+ /// Completes with a [WriteTimeseriesResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<WriteTimeseriesResponse> write(
+ WriteTimeseriesRequest request, core.String project) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -394,111 +398,117 @@ class TimeseriesResourceApi {
_url = commons.Escaper.ecapeVariable('$project') + '/timeseries:write';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new WriteTimeseriesResponse.fromJson(data));
}
-
}
-
class TimeseriesDescriptorsResourceApi {
final commons.ApiRequester _requester;
- TimeseriesDescriptorsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * List the descriptors of the time series that match the metric and labels
- * values and that have data points in the interval. Large responses are
- * paginated; use the nextPageToken returned in the response to request
- * subsequent pages of results by setting the pageToken query parameter to the
- * value of the nextPageToken.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - The project ID to which this time series belongs. The value can
- * be the numeric project ID or string-based project name.
- *
- * [metric] - Metric names are protocol-free URLs as listed in the Supported
- * Metrics page. For example,
- * compute.googleapis.com/instance/disk/read_ops_count.
- *
- * [youngest] - End of the time interval (inclusive), which is expressed as an
- * RFC 3339 timestamp.
- *
- * [aggregator] - The aggregation function that will reduce the data points in
- * each window to a single point. This parameter is only valid for
- * non-cumulative metrics with a value type of INT64 or DOUBLE.
- * Possible string values are:
- * - "max"
- * - "mean"
- * - "min"
- * - "sum"
- *
- * [count] - Maximum number of time series descriptors per page. Used for
- * pagination. If not specified, count = 100.
- * Value must be between "1" and "1000".
- *
- * [labels] - A collection of labels for the matching time series, which are
- * represented as:
- * - key==value: key equals the value
- * - key=~value: key regex matches the value
- * - key!=value: key does not equal the value
- * - key!~value: key regex does not match the value For example, to list all
- * of the time series descriptors for the region us-central1, you could
- * specify:
- * label=cloud.googleapis.com%2Flocation=~us-central1.*
- * Value must have pattern "(.+?)(==|=~|!=|!~)(.+)".
- *
- * [oldest] - Start of the time interval (exclusive), which is expressed as an
- * RFC 3339 timestamp. If neither oldest nor timespan is specified, the
- * default time interval will be (youngest - 4 hours, youngest]
- *
- * [pageToken] - The pagination token, which is used to page through large
- * result sets. Set this value to the value of the nextPageToken to retrieve
- * the next page of results.
- *
- * [timespan] - Length of the time interval to query, which is an alternative
- * way to declare the interval: (youngest - timespan, youngest]. The timespan
- * and oldest parameters should not be used together. Units:
- * - s: second
- * - m: minute
- * - h: hour
- * - d: day
- * - w: week Examples: 2s, 3m, 4w. Only one unit is allowed, for example:
- * 2w3d is not allowed; you should use 17d instead.
- *
- * If neither oldest nor timespan is specified, the default time interval will
- * be (youngest - 4 hours, youngest].
- * Value must have pattern "[0-9]+[smhdw]?".
- *
- * [window] - The sampling window. At most one data point will be returned for
- * each window in the requested time interval. This parameter is only valid
- * for non-cumulative metric types. Units:
- * - m: minute
- * - h: hour
- * - d: day
- * - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d is
- * not allowed; you should use 17d instead.
- * Value must have pattern "[0-9]+[mhdw]?".
- *
- * Completes with a [ListTimeseriesDescriptorsResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ListTimeseriesDescriptorsResponse> list(ListTimeseriesDescriptorsRequest request, core.String project, core.String metric, core.String youngest, {core.String aggregator, core.int count, core.List<core.String> labels, core.String oldest, core.String pageToken, core.String timespan, core.String window}) {
+ TimeseriesDescriptorsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// List the descriptors of the time series that match the metric and labels
+ /// values and that have data points in the interval. Large responses are
+ /// paginated; use the nextPageToken returned in the response to request
+ /// subsequent pages of results by setting the pageToken query parameter to
+ /// the value of the nextPageToken.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - The project ID to which this time series belongs. The value
+ /// can be the numeric project ID or string-based project name.
+ ///
+ /// [metric] - Metric names are protocol-free URLs as listed in the Supported
+ /// Metrics page. For example,
+ /// compute.googleapis.com/instance/disk/read_ops_count.
+ ///
+ /// [youngest] - End of the time interval (inclusive), which is expressed as
+ /// an RFC 3339 timestamp.
+ ///
+ /// [aggregator] - The aggregation function that will reduce the data points
+ /// in each window to a single point. This parameter is only valid for
+ /// non-cumulative metrics with a value type of INT64 or DOUBLE.
+ /// Possible string values are:
+ /// - "max"
+ /// - "mean"
+ /// - "min"
+ /// - "sum"
+ ///
+ /// [count] - Maximum number of time series descriptors per page. Used for
+ /// pagination. If not specified, count = 100.
+ /// Value must be between "1" and "1000".
+ ///
+ /// [labels] - A collection of labels for the matching time series, which are
+ /// represented as:
+ /// - key==value: key equals the value
+ /// - key=~value: key regex matches the value
+ /// - key!=value: key does not equal the value
+ /// - key!~value: key regex does not match the value For example, to list
+ /// all of the time series descriptors for the region us-central1, you could
+ /// specify:
+ /// label=cloud.googleapis.com%2Flocation=~us-central1.*
+ /// Value must have pattern "(.+?)(==|=~|!=|!~)(.+)".
+ ///
+ /// [oldest] - Start of the time interval (exclusive), which is expressed as
+ /// an RFC 3339 timestamp. If neither oldest nor timespan is specified, the
+ /// default time interval will be (youngest - 4 hours, youngest]
+ ///
+ /// [pageToken] - The pagination token, which is used to page through large
+ /// result sets. Set this value to the value of the nextPageToken to retrieve
+ /// the next page of results.
+ ///
+ /// [timespan] - Length of the time interval to query, which is an
+ /// alternative way to declare the interval: (youngest - timespan, youngest].
+ /// The timespan and oldest parameters should not be used together. Units:
+ /// - s: second
+ /// - m: minute
+ /// - h: hour
+ /// - d: day
+ /// - w: week Examples: 2s, 3m, 4w. Only one unit is allowed, for example:
+ /// 2w3d is not allowed; you should use 17d instead.
+ ///
+ /// If neither oldest nor timespan is specified, the default time interval
+ /// will be (youngest - 4 hours, youngest].
+ /// Value must have pattern "[0-9]+[smhdw]?".
+ ///
+ /// [window] - The sampling window. At most one data point will be returned
+ /// for each window in the requested time interval. This parameter is only
+ /// valid for non-cumulative metric types. Units:
+ /// - m: minute
+ /// - h: hour
+ /// - d: day
+ /// - w: week Examples: 3m, 4w. Only one unit is allowed, for example: 2w3d
+ /// is not allowed; you should use 17d instead.
+ /// Value must have pattern "[0-9]+[mhdw]?".
+ ///
+ /// Completes with a [ListTimeseriesDescriptorsResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ListTimeseriesDescriptorsResponse> list(
+ ListTimeseriesDescriptorsRequest request,
+ core.String project,
+ core.String metric,
+ core.String youngest,
+ {core.String aggregator,
+ core.int count,
+ core.List<core.String> labels,
+ core.String oldest,
+ core.String pageToken,
+ core.String timespan,
+ core.String window}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -541,28 +551,25 @@ class TimeseriesDescriptorsResourceApi {
_queryParams["window"] = [window];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/timeseriesDescriptors/' + commons.Escaper.ecapeVariable('$metric');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/timeseriesDescriptors/' +
+ commons.Escaper.ecapeVariable('$metric');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ListTimeseriesDescriptorsResponse.fromJson(data));
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ListTimeseriesDescriptorsResponse.fromJson(data));
}
-
}
-
-
-/** The response of cloudmonitoring.metricDescriptors.delete. */
+/// The response of cloudmonitoring.metricDescriptors.delete.
class DeleteMetricDescriptorResponse {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#deleteMetricDescriptorResponse".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#deleteMetricDescriptorResponse".
core.String kind;
DeleteMetricDescriptorResponse();
@@ -574,7 +581,8 @@ class DeleteMetricDescriptorResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -582,12 +590,10 @@ class DeleteMetricDescriptorResponse {
}
}
-/** The request of cloudmonitoring.metricDescriptors.list. */
+/// The request of cloudmonitoring.metricDescriptors.list.
class ListMetricDescriptorsRequest {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#listMetricDescriptorsRequest".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#listMetricDescriptorsRequest".
core.String kind;
ListMetricDescriptorsRequest();
@@ -599,7 +605,8 @@ class ListMetricDescriptorsRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -607,20 +614,18 @@ class ListMetricDescriptorsRequest {
}
}
-/** The response of cloudmonitoring.metricDescriptors.list. */
+/// The response of cloudmonitoring.metricDescriptors.list.
class ListMetricDescriptorsResponse {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#listMetricDescriptorsResponse".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#listMetricDescriptorsResponse".
core.String kind;
- /** The returned metric descriptors. */
+
+ /// The returned metric descriptors.
core.List<MetricDescriptor> metrics;
- /**
- * Pagination token. If present, indicates that additional results are
- * available for retrieval. To access the results past the pagination limit,
- * pass this value to the pageToken query parameter.
- */
+
+ /// Pagination token. If present, indicates that additional results are
+ /// available for retrieval. To access the results past the pagination limit,
+ /// pass this value to the pageToken query parameter.
core.String nextPageToken;
ListMetricDescriptorsResponse();
@@ -630,7 +635,9 @@ class ListMetricDescriptorsResponse {
kind = _json["kind"];
}
if (_json.containsKey("metrics")) {
- metrics = _json["metrics"].map((value) => new MetricDescriptor.fromJson(value)).toList();
+ metrics = _json["metrics"]
+ .map((value) => new MetricDescriptor.fromJson(value))
+ .toList();
}
if (_json.containsKey("nextPageToken")) {
nextPageToken = _json["nextPageToken"];
@@ -638,7 +645,8 @@ class ListMetricDescriptorsResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -652,12 +660,10 @@ class ListMetricDescriptorsResponse {
}
}
-/** The request of cloudmonitoring.timeseriesDescriptors.list */
+/// The request of cloudmonitoring.timeseriesDescriptors.list
class ListTimeseriesDescriptorsRequest {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#listTimeseriesDescriptorsRequest".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#listTimeseriesDescriptorsRequest".
core.String kind;
ListTimeseriesDescriptorsRequest();
@@ -669,7 +675,8 @@ class ListTimeseriesDescriptorsRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -677,29 +684,26 @@ class ListTimeseriesDescriptorsRequest {
}
}
-/** The response of cloudmonitoring.timeseriesDescriptors.list */
+/// The response of cloudmonitoring.timeseriesDescriptors.list
class ListTimeseriesDescriptorsResponse {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#listTimeseriesDescriptorsResponse".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#listTimeseriesDescriptorsResponse".
core.String kind;
- /**
- * Pagination token. If present, indicates that additional results are
- * available for retrieval. To access the results past the pagination limit,
- * set this value to the pageToken query parameter.
- */
+
+ /// Pagination token. If present, indicates that additional results are
+ /// available for retrieval. To access the results past the pagination limit,
+ /// set this value to the pageToken query parameter.
core.String nextPageToken;
- /**
- * The oldest timestamp of the interval of this query, as an RFC 3339 string.
- */
+
+ /// The oldest timestamp of the interval of this query, as an RFC 3339
+ /// string.
core.DateTime oldest;
- /** The returned time series descriptors. */
+
+ /// The returned time series descriptors.
core.List<TimeseriesDescriptor> timeseries;
- /**
- * The youngest timestamp of the interval of this query, as an RFC 3339
- * string.
- */
+
+ /// The youngest timestamp of the interval of this query, as an RFC 3339
+ /// string.
core.DateTime youngest;
ListTimeseriesDescriptorsResponse();
@@ -715,7 +719,9 @@ class ListTimeseriesDescriptorsResponse {
oldest = core.DateTime.parse(_json["oldest"]);
}
if (_json.containsKey("timeseries")) {
- timeseries = _json["timeseries"].map((value) => new TimeseriesDescriptor.fromJson(value)).toList();
+ timeseries = _json["timeseries"]
+ .map((value) => new TimeseriesDescriptor.fromJson(value))
+ .toList();
}
if (_json.containsKey("youngest")) {
youngest = core.DateTime.parse(_json["youngest"]);
@@ -723,7 +729,8 @@ class ListTimeseriesDescriptorsResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -734,7 +741,8 @@ class ListTimeseriesDescriptorsResponse {
_json["oldest"] = (oldest).toIso8601String();
}
if (timeseries != null) {
- _json["timeseries"] = timeseries.map((value) => (value).toJson()).toList();
+ _json["timeseries"] =
+ timeseries.map((value) => (value).toJson()).toList();
}
if (youngest != null) {
_json["youngest"] = (youngest).toIso8601String();
@@ -743,12 +751,10 @@ class ListTimeseriesDescriptorsResponse {
}
}
-/** The request of cloudmonitoring.timeseries.list */
+/// The request of cloudmonitoring.timeseries.list
class ListTimeseriesRequest {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#listTimeseriesRequest".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#listTimeseriesRequest".
core.String kind;
ListTimeseriesRequest();
@@ -760,7 +766,8 @@ class ListTimeseriesRequest {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -768,30 +775,27 @@ class ListTimeseriesRequest {
}
}
-/** The response of cloudmonitoring.timeseries.list */
+/// The response of cloudmonitoring.timeseries.list
class ListTimeseriesResponse {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#listTimeseriesResponse".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#listTimeseriesResponse".
core.String kind;
- /**
- * Pagination token. If present, indicates that additional results are
- * available for retrieval. To access the results past the pagination limit,
- * set the pageToken query parameter to this value. All of the points of a
- * time series will be returned before returning any point of the subsequent
- * time series.
- */
+
+ /// Pagination token. If present, indicates that additional results are
+ /// available for retrieval. To access the results past the pagination limit,
+ /// set the pageToken query parameter to this value. All of the points of a
+ /// time series will be returned before returning any point of the subsequent
+ /// time series.
core.String nextPageToken;
- /**
- * The oldest timestamp of the interval of this query as an RFC 3339 string.
- */
+
+ /// The oldest timestamp of the interval of this query as an RFC 3339 string.
core.DateTime oldest;
- /** The returned time series. */
+
+ /// The returned time series.
core.List<Timeseries> timeseries;
- /**
- * The youngest timestamp of the interval of this query as an RFC 3339 string.
- */
+
+ /// The youngest timestamp of the interval of this query as an RFC 3339
+ /// string.
core.DateTime youngest;
ListTimeseriesResponse();
@@ -807,7 +811,9 @@ class ListTimeseriesResponse {
oldest = core.DateTime.parse(_json["oldest"]);
}
if (_json.containsKey("timeseries")) {
- timeseries = _json["timeseries"].map((value) => new Timeseries.fromJson(value)).toList();
+ timeseries = _json["timeseries"]
+ .map((value) => new Timeseries.fromJson(value))
+ .toList();
}
if (_json.containsKey("youngest")) {
youngest = core.DateTime.parse(_json["youngest"]);
@@ -815,7 +821,8 @@ class ListTimeseriesResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -826,7 +833,8 @@ class ListTimeseriesResponse {
_json["oldest"] = (oldest).toIso8601String();
}
if (timeseries != null) {
- _json["timeseries"] = timeseries.map((value) => (value).toJson()).toList();
+ _json["timeseries"] =
+ timeseries.map((value) => (value).toJson()).toList();
}
if (youngest != null) {
_json["youngest"] = (youngest).toIso8601String();
@@ -835,20 +843,22 @@ class ListTimeseriesResponse {
}
}
-/**
- * A metricDescriptor defines the name, label keys, and data type of a
- * particular metric.
- */
+/// A metricDescriptor defines the name, label keys, and data type of a
+/// particular metric.
class MetricDescriptor {
- /** Description of this metric. */
+ /// Description of this metric.
core.String description;
- /** Labels defined for this metric. */
+
+ /// Labels defined for this metric.
core.List<MetricDescriptorLabelDescriptor> labels;
- /** The name of this metric. */
+
+ /// The name of this metric.
core.String name;
- /** The project ID to which the metric belongs. */
+
+ /// The project ID to which the metric belongs.
core.String project;
- /** Type description for this metric. */
+
+ /// Type description for this metric.
MetricDescriptorTypeDescriptor typeDescriptor;
MetricDescriptor();
@@ -858,7 +868,9 @@ class MetricDescriptor {
description = _json["description"];
}
if (_json.containsKey("labels")) {
- labels = _json["labels"].map((value) => new MetricDescriptorLabelDescriptor.fromJson(value)).toList();
+ labels = _json["labels"]
+ .map((value) => new MetricDescriptorLabelDescriptor.fromJson(value))
+ .toList();
}
if (_json.containsKey("name")) {
name = _json["name"];
@@ -867,12 +879,14 @@ class MetricDescriptor {
project = _json["project"];
}
if (_json.containsKey("typeDescriptor")) {
- typeDescriptor = new MetricDescriptorTypeDescriptor.fromJson(_json["typeDescriptor"]);
+ typeDescriptor =
+ new MetricDescriptorTypeDescriptor.fromJson(_json["typeDescriptor"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (description != null) {
_json["description"] = description;
}
@@ -892,15 +906,14 @@ class MetricDescriptor {
}
}
-/**
- * A label in a metric is a description of this metric, including the key of
- * this description (what the description is), and the value for this
- * description.
- */
+/// A label in a metric is a description of this metric, including the key of
+/// this description (what the description is), and the value for this
+/// description.
class MetricDescriptorLabelDescriptor {
- /** Label description. */
+ /// Label description.
core.String description;
- /** Label key. */
+
+ /// Label key.
core.String key;
MetricDescriptorLabelDescriptor();
@@ -915,7 +928,8 @@ class MetricDescriptorLabelDescriptor {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (description != null) {
_json["description"] = description;
}
@@ -926,17 +940,14 @@ class MetricDescriptorLabelDescriptor {
}
}
-/**
- * A type in a metric contains information about how the metric is collected and
- * what its data points look like.
- */
+/// A type in a metric contains information about how the metric is collected
+/// and what its data points look like.
class MetricDescriptorTypeDescriptor {
- /** The method of collecting data for the metric. See Metric types. */
+ /// The method of collecting data for the metric. See Metric types.
core.String metricType;
- /**
- * The data type of of individual points in the metric's time series. See
- * Metric value types.
- */
+
+ /// The data type of of individual points in the metric's time series. See
+ /// Metric value types.
core.String valueType;
MetricDescriptorTypeDescriptor();
@@ -951,7 +962,8 @@ class MetricDescriptorTypeDescriptor {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (metricType != null) {
_json["metricType"] = metricType;
}
@@ -962,42 +974,39 @@ class MetricDescriptorTypeDescriptor {
}
}
-/**
- * Point is a single point in a time series. It consists of a start time, an end
- * time, and a value.
- */
+/// Point is a single point in a time series. It consists of a start time, an
+/// end time, and a value.
class Point {
- /** The value of this data point. Either "true" or "false". */
+ /// The value of this data point. Either "true" or "false".
core.bool boolValue;
- /**
- * The value of this data point as a distribution. A distribution value can
- * contain a list of buckets and/or an underflowBucket and an overflowBucket.
- * The values of these points can be used to create a histogram.
- */
+
+ /// The value of this data point as a distribution. A distribution value can
+ /// contain a list of buckets and/or an underflowBucket and an
+ /// overflowBucket. The values of these points can be used to create a
+ /// histogram.
PointDistribution distributionValue;
- /**
- * The value of this data point as a double-precision floating-point number.
- */
+
+ /// The value of this data point as a double-precision floating-point number.
core.double doubleValue;
- /**
- * The interval [start, end] is the time period to which the point's value
- * applies. For gauge metrics, whose values are instantaneous measurements,
- * this interval should be empty (start should equal end). For cumulative
- * metrics (of which deltas and rates are special cases), the interval should
- * be non-empty. Both start and end are RFC 3339 strings.
- */
+
+ /// The interval [start, end] is the time period to which the point's value
+ /// applies. For gauge metrics, whose values are instantaneous measurements,
+ /// this interval should be empty (start should equal end). For cumulative
+ /// metrics (of which deltas and rates are special cases), the interval
+ /// should be non-empty. Both start and end are RFC 3339 strings.
core.DateTime end;
- /** The value of this data point as a 64-bit integer. */
+
+ /// The value of this data point as a 64-bit integer.
core.String int64Value;
- /**
- * The interval [start, end] is the time period to which the point's value
- * applies. For gauge metrics, whose values are instantaneous measurements,
- * this interval should be empty (start should equal end). For cumulative
- * metrics (of which deltas and rates are special cases), the interval should
- * be non-empty. Both start and end are RFC 3339 strings.
- */
+
+ /// The interval [start, end] is the time period to which the point's value
+ /// applies. For gauge metrics, whose values are instantaneous measurements,
+ /// this interval should be empty (start should equal end). For cumulative
+ /// metrics (of which deltas and rates are special cases), the interval
+ /// should be non-empty. Both start and end are RFC 3339 strings.
core.DateTime start;
- /** The value of this data point in string format. */
+
+ /// The value of this data point in string format.
core.String stringValue;
Point();
@@ -1007,7 +1016,8 @@ class Point {
boolValue = _json["boolValue"];
}
if (_json.containsKey("distributionValue")) {
- distributionValue = new PointDistribution.fromJson(_json["distributionValue"]);
+ distributionValue =
+ new PointDistribution.fromJson(_json["distributionValue"]);
}
if (_json.containsKey("doubleValue")) {
doubleValue = _json["doubleValue"];
@@ -1027,7 +1037,8 @@ class Point {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (boolValue != null) {
_json["boolValue"] = boolValue;
}
@@ -1053,36 +1064,41 @@ class Point {
}
}
-/**
- * Distribution data point value type. When writing distribution points, try to
- * be consistent with the boundaries of your buckets. If you must modify the
- * bucket boundaries, then do so by merging, partitioning, or appending rather
- * than skewing them.
- */
+/// Distribution data point value type. When writing distribution points, try
+/// to be consistent with the boundaries of your buckets. If you must modify
+/// the bucket boundaries, then do so by merging, partitioning, or appending
+/// rather than skewing them.
class PointDistribution {
- /** The finite buckets. */
+ /// The finite buckets.
core.List<PointDistributionBucket> buckets;
- /** The overflow bucket. */
+
+ /// The overflow bucket.
PointDistributionOverflowBucket overflowBucket;
- /** The underflow bucket. */
+
+ /// The underflow bucket.
PointDistributionUnderflowBucket underflowBucket;
PointDistribution();
PointDistribution.fromJson(core.Map _json) {
if (_json.containsKey("buckets")) {
- buckets = _json["buckets"].map((value) => new PointDistributionBucket.fromJson(value)).toList();
+ buckets = _json["buckets"]
+ .map((value) => new PointDistributionBucket.fromJson(value))
+ .toList();
}
if (_json.containsKey("overflowBucket")) {
- overflowBucket = new PointDistributionOverflowBucket.fromJson(_json["overflowBucket"]);
+ overflowBucket =
+ new PointDistributionOverflowBucket.fromJson(_json["overflowBucket"]);
}
if (_json.containsKey("underflowBucket")) {
- underflowBucket = new PointDistributionUnderflowBucket.fromJson(_json["underflowBucket"]);
+ underflowBucket = new PointDistributionUnderflowBucket.fromJson(
+ _json["underflowBucket"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (buckets != null) {
_json["buckets"] = buckets.map((value) => (value).toJson()).toList();
}
@@ -1096,20 +1112,19 @@ class PointDistribution {
}
}
-/**
- * The histogram's bucket. Buckets that form the histogram of a distribution
- * value. If the upper bound of a bucket, say U1, does not equal the lower bound
- * of the next bucket, say L2, this means that there is no event in [U1, L2).
- */
+/// The histogram's bucket. Buckets that form the histogram of a distribution
+/// value. If the upper bound of a bucket, say U1, does not equal the lower
+/// bound of the next bucket, say L2, this means that there is no event in [U1,
+/// L2).
class PointDistributionBucket {
- /**
- * The number of events whose values are in the interval defined by this
- * bucket.
- */
+ /// The number of events whose values are in the interval defined by this
+ /// bucket.
core.String count;
- /** The lower bound of the value interval of this bucket (inclusive). */
+
+ /// The lower bound of the value interval of this bucket (inclusive).
core.double lowerBound;
- /** The upper bound of the value interval of this bucket (exclusive). */
+
+ /// The upper bound of the value interval of this bucket (exclusive).
core.double upperBound;
PointDistributionBucket();
@@ -1127,7 +1142,8 @@ class PointDistributionBucket {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (count != null) {
_json["count"] = count;
}
@@ -1141,17 +1157,14 @@ class PointDistributionBucket {
}
}
-/**
- * The overflow bucket is a special bucket that does not have the upperBound
- * field; it includes all of the events that are no less than its lower bound.
- */
+/// The overflow bucket is a special bucket that does not have the upperBound
+/// field; it includes all of the events that are no less than its lower bound.
class PointDistributionOverflowBucket {
- /**
- * The number of events whose values are in the interval defined by this
- * bucket.
- */
+ /// The number of events whose values are in the interval defined by this
+ /// bucket.
core.String count;
- /** The lower bound of the value interval of this bucket (inclusive). */
+
+ /// The lower bound of the value interval of this bucket (inclusive).
core.double lowerBound;
PointDistributionOverflowBucket();
@@ -1166,7 +1179,8 @@ class PointDistributionOverflowBucket {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (count != null) {
_json["count"] = count;
}
@@ -1177,17 +1191,14 @@ class PointDistributionOverflowBucket {
}
}
-/**
- * The underflow bucket is a special bucket that does not have the lowerBound
- * field; it includes all of the events that are less than its upper bound.
- */
+/// The underflow bucket is a special bucket that does not have the lowerBound
+/// field; it includes all of the events that are less than its upper bound.
class PointDistributionUnderflowBucket {
- /**
- * The number of events whose values are in the interval defined by this
- * bucket.
- */
+ /// The number of events whose values are in the interval defined by this
+ /// bucket.
core.String count;
- /** The upper bound of the value interval of this bucket (exclusive). */
+
+ /// The upper bound of the value interval of this bucket (exclusive).
core.double upperBound;
PointDistributionUnderflowBucket();
@@ -1202,7 +1213,8 @@ class PointDistributionUnderflowBucket {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (count != null) {
_json["count"] = count;
}
@@ -1213,34 +1225,34 @@ class PointDistributionUnderflowBucket {
}
}
-/**
- * The monitoring data is organized as metrics and stored as data points that
- * are recorded over time. Each data point represents information like the CPU
- * utilization of your virtual machine. A historical record of these data points
- * is called a time series.
- */
+/// The monitoring data is organized as metrics and stored as data points that
+/// are recorded over time. Each data point represents information like the CPU
+/// utilization of your virtual machine. A historical record of these data
+/// points is called a time series.
class Timeseries {
- /**
- * The data points of this time series. The points are listed in order of
- * their end timestamp, from younger to older.
- */
+ /// The data points of this time series. The points are listed in order of
+ /// their end timestamp, from younger to older.
core.List<Point> points;
- /** The descriptor of this time series. */
+
+ /// The descriptor of this time series.
TimeseriesDescriptor timeseriesDesc;
Timeseries();
Timeseries.fromJson(core.Map _json) {
if (_json.containsKey("points")) {
- points = _json["points"].map((value) => new Point.fromJson(value)).toList();
+ points =
+ _json["points"].map((value) => new Point.fromJson(value)).toList();
}
if (_json.containsKey("timeseriesDesc")) {
- timeseriesDesc = new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]);
+ timeseriesDesc =
+ new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (points != null) {
_json["points"] = points.map((value) => (value).toJson()).toList();
}
@@ -1251,15 +1263,15 @@ class Timeseries {
}
}
-/** TimeseriesDescriptor identifies a single time series. */
+/// TimeseriesDescriptor identifies a single time series.
class TimeseriesDescriptor {
- /** The label's name. */
+ /// The label's name.
core.Map<core.String, core.String> labels;
- /** The name of the metric. */
+
+ /// The name of the metric.
core.String metric;
- /**
- * The Developers Console project number to which this time series belongs.
- */
+
+ /// The Developers Console project number to which this time series belongs.
core.String project;
TimeseriesDescriptor();
@@ -1277,7 +1289,8 @@ class TimeseriesDescriptor {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (labels != null) {
_json["labels"] = labels;
}
@@ -1292,9 +1305,10 @@ class TimeseriesDescriptor {
}
class TimeseriesDescriptorLabel {
- /** The label's name. */
+ /// The label's name.
core.String key;
- /** The label's value. */
+
+ /// The label's value.
core.String value;
TimeseriesDescriptorLabel();
@@ -1309,7 +1323,8 @@ class TimeseriesDescriptorLabel {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (key != null) {
_json["key"] = key;
}
@@ -1320,15 +1335,14 @@ class TimeseriesDescriptorLabel {
}
}
-/**
- * When writing time series, TimeseriesPoint should be used instead of
- * Timeseries, to enforce single point for each time series in the
- * timeseries.write request.
- */
+/// When writing time series, TimeseriesPoint should be used instead of
+/// Timeseries, to enforce single point for each time series in the
+/// timeseries.write request.
class TimeseriesPoint {
- /** The data point in this time series snapshot. */
+ /// The data point in this time series snapshot.
Point point;
- /** The descriptor of this time series. */
+
+ /// The descriptor of this time series.
TimeseriesDescriptor timeseriesDesc;
TimeseriesPoint();
@@ -1338,12 +1352,14 @@ class TimeseriesPoint {
point = new Point.fromJson(_json["point"]);
}
if (_json.containsKey("timeseriesDesc")) {
- timeseriesDesc = new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]);
+ timeseriesDesc =
+ new TimeseriesDescriptor.fromJson(_json["timeseriesDesc"]);
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (point != null) {
_json["point"] = (point).toJson();
}
@@ -1354,15 +1370,14 @@ class TimeseriesPoint {
}
}
-/** The request of cloudmonitoring.timeseries.write */
+/// The request of cloudmonitoring.timeseries.write
class WriteTimeseriesRequest {
- /** The label's name. */
+ /// The label's name.
core.Map<core.String, core.String> commonLabels;
- /**
- * Provide time series specific labels and the data points for each time
- * series. The labels in timeseries and the common_labels should form a
- * complete list of labels that required by the metric.
- */
+
+ /// Provide time series specific labels and the data points for each time
+ /// series. The labels in timeseries and the common_labels should form a
+ /// complete list of labels that required by the metric.
core.List<TimeseriesPoint> timeseries;
WriteTimeseriesRequest();
@@ -1372,28 +1387,30 @@ class WriteTimeseriesRequest {
commonLabels = _json["commonLabels"];
}
if (_json.containsKey("timeseries")) {
- timeseries = _json["timeseries"].map((value) => new TimeseriesPoint.fromJson(value)).toList();
+ timeseries = _json["timeseries"]
+ .map((value) => new TimeseriesPoint.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (commonLabels != null) {
_json["commonLabels"] = commonLabels;
}
if (timeseries != null) {
- _json["timeseries"] = timeseries.map((value) => (value).toJson()).toList();
+ _json["timeseries"] =
+ timeseries.map((value) => (value).toJson()).toList();
}
return _json;
}
}
-/** The response of cloudmonitoring.timeseries.write */
+/// The response of cloudmonitoring.timeseries.write
class WriteTimeseriesResponse {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "cloudmonitoring#writeTimeseriesResponse".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "cloudmonitoring#writeTimeseriesResponse".
core.String kind;
WriteTimeseriesResponse();
@@ -1405,7 +1422,8 @@ class WriteTimeseriesResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}

Powered by Google App Engine