# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Monitor module Models # # Part of MultiTenantDiagnosticSettings. Specifies the settings for a # particular metric. # class MetricSettings include MsRestAzure include MsRest::JSONable # @return [Duration] the timegrain of the metric in ISO8601 format. attr_accessor :time_grain # @return [Boolean] a value indicating whether this timegrain is enabled. attr_accessor :enabled # @return [RetentionPolicy] the retention policy for this timegrain. attr_accessor :retention_policy # # Mapper for MetricSettings class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'MetricSettings', type: { name: 'Composite', class_name: 'MetricSettings', model_properties: { time_grain: { required: true, serialized_name: 'timeGrain', type: { name: 'TimeSpan' } }, enabled: { required: true, serialized_name: 'enabled', type: { name: 'Boolean' } }, retention_policy: { required: false, serialized_name: 'retentionPolicy', type: { name: 'Composite', class_name: 'RetentionPolicy' } } } } } end end end end