# 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 the health of the stateless service instance. # Contains the instance aggregated health state, the health events and the # unhealthy evaluations. # class StatelessServiceInstanceHealth < ReplicaHealth include MsRestAzure def initialize @ServiceKind = "Stateless" end attr_accessor :ServiceKind # @return [String] Id of a stateless service instance. InstanceId is used # by Service Fabric to uniquely identify an instance of a partition of a # stateless service. It is unique within a partition and does not change # for the lifetime of the instance. If the instance has failed over on # the same or different node, it will get a different value for the # InstanceId. attr_accessor :instance_id # # Mapper for StatelessServiceInstanceHealth class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Stateless', type: { name: 'Composite', class_name: 'StatelessServiceInstanceHealth', model_properties: { aggregated_health_state: { client_side_validation: true, required: false, serialized_name: 'AggregatedHealthState', type: { name: 'String' } }, health_events: { client_side_validation: true, required: false, serialized_name: 'HealthEvents', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HealthEventElementType', type: { name: 'Composite', class_name: 'HealthEvent' } } } }, unhealthy_evaluations: { client_side_validation: true, required: false, serialized_name: 'UnhealthyEvaluations', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HealthEvaluationWrapperElementType', type: { name: 'Composite', class_name: 'HealthEvaluationWrapper' } } } }, health_statistics: { client_side_validation: true, required: false, serialized_name: 'HealthStatistics', type: { name: 'Composite', class_name: 'HealthStatistics' } }, partition_id: { client_side_validation: true, required: false, serialized_name: 'PartitionId', type: { name: 'String' } }, ServiceKind: { client_side_validation: true, required: true, serialized_name: 'ServiceKind', type: { name: 'String' } }, instance_id: { client_side_validation: true, required: false, serialized_name: 'InstanceId', type: { name: 'String' } } } } } end end end end