# 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::ServiceFabric::V6_2_0_9 module Models # # Represents information about how many health entities are in Ok, Warning # and Error health state. # class HealthStateCount include MsRestAzure # @return [Integer] The number of health entities with aggregated health # state Ok. attr_accessor :ok_count # @return [Integer] The number of health entities with aggregated health # state Warning. attr_accessor :warning_count # @return [Integer] The number of health entities with aggregated health # state Error. attr_accessor :error_count # # Mapper for HealthStateCount class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'HealthStateCount', type: { name: 'Composite', class_name: 'HealthStateCount', model_properties: { ok_count: { client_side_validation: true, required: false, serialized_name: 'OkCount', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, warning_count: { client_side_validation: true, required: false, serialized_name: 'WarningCount', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, error_count: { client_side_validation: true, required: false, serialized_name: 'ErrorCount', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end end end end