class Azure::Monitor::Mgmt::V2018_01_01::Models::Response
The response to a metrics query.
Attributes
@return [Float] The integer value representing the cost of the query, for data case.
@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.
@return [String] The namespace of the metrics been queried
@return [String] The region of the resource been queried for metrics.
@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.
@return [Array<Metric>] the value of the collection.
Private Class Methods
Mapper for Response
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb, line 45 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' } }, namespace: { client_side_validation: true, required: false, serialized_name: 'namespace', type: { name: 'String' } }, resourceregion: { client_side_validation: true, required: false, serialized_name: 'resourceregion', type: { name: 'String' } }, 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