2016-06-09 20:22:21 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module MonitoringV3
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class BucketOptions
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class CollectdValue
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class SourceContext
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class MetricDescriptor
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Range
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListGroupsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListGroupMembersResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class CreateCollectdTimeSeriesRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListMonitoredResourceDescriptorsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class TimeSeries
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class CreateTimeSeriesRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Distribution
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class MonitoredResource
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListMetricDescriptorsResponse
|
2017-03-27 22:14:47 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class MonitoredResourceDescriptor
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class TypedValue
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class CollectdPayload
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Linear
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Empty
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Option
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Explicit
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class TimeInterval
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Exponential
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Point
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Field
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Metric
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class LabelDescriptor
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListTimeSeriesResponse
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class Type
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class Group
|
2016-06-09 20:22:21 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class BucketOptions
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::MonitoringV3::Exponential, decorator: Google::Apis::MonitoringV3::Exponential::Representation
|
2016-06-09 20:22:21 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :linear_buckets, as: 'linearBuckets', class: Google::Apis::MonitoringV3::Linear, decorator: Google::Apis::MonitoringV3::Linear::Representation
|
|
|
|
|
|
|
|
property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::MonitoringV3::Explicit, decorator: Google::Apis::MonitoringV3::Explicit::Representation
|
|
|
|
|
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class CollectdValue
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
|
2016-06-09 20:22:21 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :data_source_type, as: 'dataSourceType'
|
|
|
|
property :data_source_name, as: 'dataSourceName'
|
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class SourceContext
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :file_name, as: 'fileName'
|
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class MetricDescriptor
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :type, as: 'type'
|
|
|
|
property :value_type, as: 'valueType'
|
|
|
|
property :metric_kind, as: 'metricKind'
|
|
|
|
property :display_name, as: 'displayName'
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :unit, as: 'unit'
|
|
|
|
collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
|
2016-06-09 20:22:21 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Range
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :min, as: 'min'
|
|
|
|
property :max, as: 'max'
|
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListGroupsResponse
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :group, as: 'group', class: Google::Apis::MonitoringV3::Group, decorator: Google::Apis::MonitoringV3::Group::Representation
|
2016-06-09 20:22:21 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class ListGroupMembersResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :members, as: 'members', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
property :total_size, as: 'totalSize'
|
|
|
|
end
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
2017-01-28 03:38:40 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class CreateCollectdTimeSeriesRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
collection :collectd_payloads, as: 'collectdPayloads', class: Google::Apis::MonitoringV3::CollectdPayload, decorator: Google::Apis::MonitoringV3::CollectdPayload::Representation
|
|
|
|
|
|
|
|
property :collectd_version, as: 'collectdVersion'
|
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListMonitoredResourceDescriptorsResponse
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::MonitoringV3::MonitoredResourceDescriptor, decorator: Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class TimeSeries
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :metric_kind, as: 'metricKind'
|
|
|
|
property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation
|
|
|
|
|
|
|
|
collection :points, as: 'points', class: Google::Apis::MonitoringV3::Point, decorator: Google::Apis::MonitoringV3::Point::Representation
|
|
|
|
|
|
|
|
property :value_type, as: 'valueType'
|
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class CreateTimeSeriesRequest
|
2017-05-04 19:35:56 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :time_series, as: 'timeSeries', class: Google::Apis::MonitoringV3::TimeSeries, decorator: Google::Apis::MonitoringV3::TimeSeries::Representation
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Distribution
|
2017-03-27 22:14:47 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-04 19:35:56 +00:00
|
|
|
property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :range, as: 'range', class: Google::Apis::MonitoringV3::Range, decorator: Google::Apis::MonitoringV3::Range::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
property :count, :numeric_string => true, as: 'count'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :mean, as: 'mean'
|
|
|
|
collection :bucket_counts, as: 'bucketCounts'
|
|
|
|
property :bucket_options, as: 'bucketOptions', class: Google::Apis::MonitoringV3::BucketOptions, decorator: Google::Apis::MonitoringV3::BucketOptions::Representation
|
|
|
|
|
2017-03-27 22:14:47 +00:00
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class MonitoredResource
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
hash :labels, as: 'labels'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :type, as: 'type'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListMetricDescriptorsResponse
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
collection :metric_descriptors, as: 'metricDescriptors', class: Google::Apis::MonitoringV3::MetricDescriptor, decorator: Google::Apis::MonitoringV3::MetricDescriptor::Representation
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class MonitoredResourceDescriptor
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :display_name, as: 'displayName'
|
|
|
|
property :description, as: 'description'
|
2017-03-30 22:30:51 +00:00
|
|
|
property :type, as: 'type'
|
2017-04-03 20:18:48 +00:00
|
|
|
collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
|
|
|
|
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class TypedValue
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-04 19:35:56 +00:00
|
|
|
property :bool_value, as: 'boolValue'
|
|
|
|
property :string_value, as: 'stringValue'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :double_value, as: 'doubleValue'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :int64_value, :numeric_string => true, as: 'int64Value'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :distribution_value, as: 'distributionValue', class: Google::Apis::MonitoringV3::Distribution, decorator: Google::Apis::MonitoringV3::Distribution::Representation
|
2017-03-27 22:14:47 +00:00
|
|
|
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class CollectdPayload
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :type_instance, as: 'typeInstance'
|
|
|
|
hash :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :type, as: 'type'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :plugin, as: 'plugin'
|
|
|
|
property :plugin_instance, as: 'pluginInstance'
|
|
|
|
property :end_time, as: 'endTime'
|
|
|
|
property :start_time, as: 'startTime'
|
|
|
|
collection :values, as: 'values', class: Google::Apis::MonitoringV3::CollectdValue, decorator: Google::Apis::MonitoringV3::CollectdValue::Representation
|
2016-06-09 20:22:21 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Linear
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :num_finite_buckets, as: 'numFiniteBuckets'
|
|
|
|
property :width, as: 'width'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :offset, as: 'offset'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Empty
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Option
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
hash :value, as: 'value'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :name, as: 'name'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Explicit
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
collection :bounds, as: 'bounds'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class TimeInterval
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :start_time, as: 'startTime'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :end_time, as: 'endTime'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Exponential
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :scale, as: 'scale'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :num_finite_buckets, as: 'numFiniteBuckets'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :growth_factor, as: 'growthFactor'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Point
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :interval, as: 'interval', class: Google::Apis::MonitoringV3::TimeInterval, decorator: Google::Apis::MonitoringV3::TimeInterval::Representation
|
|
|
|
|
2017-01-28 03:38:40 +00:00
|
|
|
end
|
|
|
|
end
|
2016-06-09 20:22:21 +00:00
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Field
|
2017-01-28 03:38:40 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-04 19:35:56 +00:00
|
|
|
property :name, as: 'name'
|
|
|
|
property :type_url, as: 'typeUrl'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :number, as: 'number'
|
|
|
|
property :kind, as: 'kind'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :json_name, as: 'jsonName'
|
2017-03-31 19:53:27 +00:00
|
|
|
collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation
|
|
|
|
|
|
|
|
property :oneof_index, as: 'oneofIndex'
|
|
|
|
property :cardinality, as: 'cardinality'
|
|
|
|
property :packed, as: 'packed'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :default_value, as: 'defaultValue'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Metric
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :type, as: 'type'
|
2017-05-04 19:35:56 +00:00
|
|
|
hash :labels, as: 'labels'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class LabelDescriptor
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :key, as: 'key'
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :value_type, as: 'valueType'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListTimeSeriesResponse
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
collection :time_series, as: 'timeSeries', class: Google::Apis::MonitoringV3::TimeSeries, decorator: Google::Apis::MonitoringV3::TimeSeries::Representation
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Type
|
2016-06-09 20:22:21 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-05-04 19:35:56 +00:00
|
|
|
collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
collection :fields, as: 'fields', class: Google::Apis::MonitoringV3::Field, decorator: Google::Apis::MonitoringV3::Field::Representation
|
|
|
|
|
|
|
|
property :name, as: 'name'
|
2017-03-31 19:53:27 +00:00
|
|
|
collection :oneofs, as: 'oneofs'
|
2017-04-03 20:18:48 +00:00
|
|
|
property :syntax, as: 'syntax'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV3::SourceContext, decorator: Google::Apis::MonitoringV3::SourceContext::Representation
|
2016-06-09 20:22:21 +00:00
|
|
|
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
class Group
|
2017-01-28 03:38:40 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-04-03 20:18:48 +00:00
|
|
|
property :name, as: 'name'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :parent_name, as: 'parentName'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :display_name, as: 'displayName'
|
2017-05-04 19:35:56 +00:00
|
|
|
property :is_cluster, as: 'isCluster'
|
|
|
|
property :filter, as: 'filter'
|
2016-06-09 20:22:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|