Class: Azure::ServiceFabric::V6_4_0_36::Models::HealthStateCount

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

Overview

Represents information about how many health entities are in Ok, Warning and Error health state.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#error_countInteger

state Error.

Returns:

  • (Integer)

    The number of health entities with aggregated health



26
27
28
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_state_count.rb', line 26

def error_count
  @error_count
end

#ok_countInteger

state Ok.

Returns:

  • (Integer)

    The number of health entities with aggregated health



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

def ok_count
  @ok_count
end

#warning_countInteger

state Warning.

Returns:

  • (Integer)

    The number of health entities with aggregated health



22
23
24
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_state_count.rb', line 22

def warning_count
  @warning_count
end

Class Method Details

.mapperObject

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



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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_state_count.rb', line 33

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