google-api-ruby-client/generated/google/apis/monitoring_v3/representations.rb

517 lines
18 KiB
Ruby
Raw Normal View History

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
class BucketOptions
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CollectdValue
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourceContext
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MetricDescriptor
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Range
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGroupsResponse
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateCollectdTimeSeriesRequest
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGroupMembersResponse
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMonitoredResourceDescriptorsResponse
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeSeries
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateTimeSeriesRequest
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Distribution
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResource
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMetricDescriptorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MonitoredResourceDescriptor
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TypedValue
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CollectdPayload
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Linear
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Option
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeInterval
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Explicit
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Exponential
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Point
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Metric
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Field
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListTimeSeriesResponse
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LabelDescriptor
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Group
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Type
2016-06-09 20:22:21 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BucketOptions
2016-06-09 20:22:21 +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
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
2016-06-09 20:22:21 +00:00
end
end
class CollectdValue
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data_source_name, as: 'dataSourceName'
property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
property :data_source_type, as: 'dataSourceType'
2016-06-09 20:22:21 +00:00
end
end
class SourceContext
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file_name, as: 'fileName'
2016-06-09 20:22:21 +00:00
end
end
class MetricDescriptor
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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
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'
2016-06-09 20:22:21 +00:00
end
end
class Range
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :min, as: 'min'
property :max, as: 'max'
2016-06-09 20:22:21 +00:00
end
end
class ListGroupsResponse
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :group, as: 'group', class: Google::Apis::MonitoringV3::Group, decorator: Google::Apis::MonitoringV3::Group::Representation
2016-06-09 20:22:21 +00:00
property :next_page_token, as: 'nextPageToken'
2016-06-09 20:22:21 +00:00
end
end
class CreateCollectdTimeSeriesRequest
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
collection :collectd_payloads, as: 'collectdPayloads', class: Google::Apis::MonitoringV3::CollectdPayload, decorator: Google::Apis::MonitoringV3::CollectdPayload::Representation
property :collectd_version, as: 'collectdVersion'
2016-06-09 20:22:21 +00:00
end
end
class ListGroupMembersResponse
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :members, as: 'members', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
2016-06-09 20:22:21 +00:00
end
end
class ListMonitoredResourceDescriptorsResponse
2016-06-09 20:22:21 +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
2016-06-09 20:22:21 +00:00
end
end
class TimeSeries
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric_kind, as: 'metricKind'
property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation
2016-06-09 20:22:21 +00:00
collection :points, as: 'points', class: Google::Apis::MonitoringV3::Point, decorator: Google::Apis::MonitoringV3::Point::Representation
2016-06-09 20:22:21 +00:00
property :value_type, as: 'valueType'
property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
2016-06-09 20:22:21 +00:00
end
end
class CreateTimeSeriesRequest
2016-06-09 20:22:21 +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
2016-06-09 20:22:21 +00:00
end
end
class Distribution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_options, as: 'bucketOptions', class: Google::Apis::MonitoringV3::BucketOptions, decorator: Google::Apis::MonitoringV3::BucketOptions::Representation
property :sum_of_squared_deviation, as: 'sumOfSquaredDeviation'
property :range, as: 'range', class: Google::Apis::MonitoringV3::Range, decorator: Google::Apis::MonitoringV3::Range::Representation
property :count, as: 'count'
property :mean, as: 'mean'
collection :bucket_counts, as: 'bucketCounts'
2016-06-09 20:22:21 +00:00
end
end
class MonitoredResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
hash :labels, as: 'labels'
2016-06-09 20:22:21 +00:00
end
end
class ListMetricDescriptorsResponse
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :metric_descriptors, as: 'metricDescriptors', class: Google::Apis::MonitoringV3::MetricDescriptor, decorator: Google::Apis::MonitoringV3::MetricDescriptor::Representation
property :next_page_token, as: 'nextPageToken'
2016-06-09 20:22:21 +00:00
end
end
class MonitoredResourceDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
property :name, as: 'name'
property :display_name, as: 'displayName'
property :description, as: 'description'
property :type, as: 'type'
2016-06-09 20:22:21 +00:00
end
end
class TypedValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :int64_value, as: 'int64Value'
property :distribution_value, as: 'distributionValue', class: Google::Apis::MonitoringV3::Distribution, decorator: Google::Apis::MonitoringV3::Distribution::Representation
property :bool_value, as: 'boolValue'
property :string_value, as: 'stringValue'
property :double_value, as: 'doubleValue'
2016-06-09 20:22:21 +00:00
end
end
class CollectdPayload
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type_instance, as: 'typeInstance'
hash :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
property :type, as: 'type'
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
class Linear
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :width, as: 'width'
property :offset, as: 'offset'
property :num_finite_buckets, as: 'numFiniteBuckets'
end
end
2016-06-09 20:22:21 +00:00
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2016-06-09 20:22:21 +00:00
end
end
class Option
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :value, as: 'value'
property :name, as: 'name'
end
end
class TimeInterval
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start_time, as: 'startTime'
property :end_time, as: 'endTime'
2016-06-09 20:22:21 +00:00
end
end
class Explicit
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bounds, as: 'bounds'
2016-06-09 20:22:21 +00:00
end
end
class Exponential
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :growth_factor, as: 'growthFactor'
property :scale, as: 'scale'
property :num_finite_buckets, as: 'numFiniteBuckets'
2016-06-09 20:22:21 +00:00
end
end
class Point
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :interval, as: 'interval', class: Google::Apis::MonitoringV3::TimeInterval, decorator: Google::Apis::MonitoringV3::TimeInterval::Representation
property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
2016-06-09 20:22:21 +00:00
end
end
class Metric
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :type, as: 'type'
2016-06-09 20:22:21 +00:00
end
end
class Field
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :type_url, as: 'typeUrl'
property :number, as: 'number'
property :kind, as: 'kind'
property :json_name, as: 'jsonName'
collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation
2016-06-09 20:22:21 +00:00
property :oneof_index, as: 'oneofIndex'
property :packed, as: 'packed'
property :cardinality, as: 'cardinality'
property :default_value, as: 'defaultValue'
2016-06-09 20:22:21 +00:00
end
end
class ListTimeSeriesResponse
2016-06-09 20:22:21 +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
2016-06-09 20:22:21 +00:00
property :next_page_token, as: 'nextPageToken'
end
end
2016-06-09 20:22:21 +00:00
class LabelDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :description, as: 'description'
property :value_type, as: 'valueType'
end
end
2016-06-09 20:22:21 +00:00
class Group
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
2016-06-09 20:22:21 +00:00
property :name, as: 'name'
property :parent_name, as: 'parentName'
property :display_name, as: 'displayName'
property :is_cluster, as: 'isCluster'
2016-06-09 20:22:21 +00:00
end
end
class Type
2016-06-09 20:22:21 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :fields, as: 'fields', class: Google::Apis::MonitoringV3::Field, decorator: Google::Apis::MonitoringV3::Field::Representation
property :name, as: 'name'
collection :oneofs, as: 'oneofs'
property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV3::SourceContext, decorator: Google::Apis::MonitoringV3::SourceContext::Representation
property :syntax, as: 'syntax'
collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation
2016-06-09 20:22:21 +00:00
end
end
end
end
end