Class: Azure::ServiceFabric::V6_4_0_36::Models::ServiceHealthState

Inherits:
EntityHealthState
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/service_health_state.rb

Overview

Represents the health state of a service, which contains the service identifier and its aggregated health state.

Instance Attribute Summary collapse

Attributes inherited from EntityHealthState

#aggregated_health_state

Class Method Summary collapse

Instance Attribute Details

#service_nameString

by this object.

Returns:

  • (String)

    Name of the service whose health state is represented



18
19
20
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_health_state.rb', line 18

def service_name
  @service_name
end

Class Method Details

.mapperObject

Mapper for ServiceHealthState class as Ruby Hash. This will be used for serialization/deserialization.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/service_health_state.rb', line 25

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceHealthState',
    type: {
      name: 'Composite',
      class_name: 'ServiceHealthState',
      model_properties: {
        aggregated_health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'AggregatedHealthState',
          type: {
            name: 'String'
          }
        },
        service_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end