Class: Azure::ServiceFabric::V6_4_0_36::Models::HealthEvaluation

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

Overview

Represents a health evaluation which describes the data and the algorithm used by health manager to evaluate the health of an entity.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHealthEvaluation

Returns a new instance of HealthEvaluation.



38
39
40
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_evaluation.rb', line 38

def initialize
  @Kind = "HealthEvaluation"
end

Instance Attribute Details

#aggregated_health_stateHealthState

as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’

Returns:

  • (HealthState)

    The health state of a Service Fabric entity such



47
48
49
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_evaluation.rb', line 47

def aggregated_health_state
  @aggregated_health_state
end

#descriptionString

a summary of the evaluation process.

Returns:

  • (String)

    Description of the health evaluation, which represents



51
52
53
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_evaluation.rb', line 51

def description
  @description
end

#KindObject

Returns the value of attribute Kind.



42
43
44
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_evaluation.rb', line 42

def Kind
  @Kind
end

Class Method Details

.mapperObject

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



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/health_evaluation.rb', line 58

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HealthEvaluation',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'Kind',
      uber_parent: 'HealthEvaluation',
      class_name: 'HealthEvaluation',
      model_properties: {
        aggregated_health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'AggregatedHealthState',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Description',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end