Class: Azure::StorageCache::Mgmt::V2019_11_01::Models::CacheHealth

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_health.rb

Overview

An indication of Cache health. Gives more information about health than just that related to provisioning.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#stateHealthStateType

include: ‘Unknown’, ‘Healthy’, ‘Degraded’, ‘Down’, ‘Transitioning’, ‘Stopping’, ‘Stopped’, ‘Upgrading’, ‘Flushing’

Returns:



19
20
21
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_health.rb', line 19

def state
  @state
end

#status_descriptionString

Returns Describes explanation of state.

Returns:

  • (String)

    Describes explanation of state.



22
23
24
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_health.rb', line 22

def status_description
  @status_description
end

Class Method Details

.mapperObject

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



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
54
55
56
57
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_health.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CacheHealth',
    type: {
      name: 'Composite',
      class_name: 'CacheHealth',
      model_properties: {
        state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        },
        status_description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'statusDescription',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end