# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Cosmosdb::Mgmt::V2020_04_01 module Models # # The availability of the metric. # class MetricAvailability include MsRestAzure # @return [String] The time grain to be used to summarize the metric # values. attr_accessor :time_grain # @return [String] The retention for the metric values. attr_accessor :retention # # Mapper for MetricAvailability class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MetricAvailability', type: { name: 'Composite', class_name: 'MetricAvailability', model_properties: { time_grain: { client_side_validation: true, required: false, read_only: true, serialized_name: 'timeGrain', type: { name: 'String' } }, retention: { client_side_validation: true, required: false, read_only: true, serialized_name: 'retention', type: { name: 'String' } } } } } end end end end