class Azure::Monitor::Mgmt::V2017_05_01_preview::Models::Response
The response to a metrics query.
Attributes
cost[RW]
@return [Float] The integer value representing the cost of the query, for data case.
interval[RW]
@return [Duration] The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
timespan[RW]
@return [String] The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
value[RW]
@return [Array<Metric>] the value of the collection.
Public Class Methods
mapper()
click to toggle source
Mapper for Response
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb, line 39 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Response', type: { name: 'Composite', class_name: 'Response', model_properties: { cost: { client_side_validation: true, required: false, serialized_name: 'cost', constraints: { InclusiveMinimum: 0 }, type: { name: 'Double' } }, timespan: { client_side_validation: true, required: true, serialized_name: 'timespan', type: { name: 'String' } }, interval: { client_side_validation: true, required: false, serialized_name: 'interval', type: { name: 'TimeSpan' } }, value: { client_side_validation: true, required: true, serialized_name: 'value', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MetricElementType', type: { name: 'Composite', class_name: 'Metric' } } } } } } } end