Class: Azure::ServiceFabric::V6_5_0_36::Models::ServicesHealthEvaluation
- Inherits:
-
HealthEvaluation
- Object
- HealthEvaluation
- Azure::ServiceFabric::V6_5_0_36::Models::ServicesHealthEvaluation
- Includes:
- MsRestAzure
- Defined in:
- lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb
Overview
Represents health evaluation for services of a certain service type belonging to an application, containing health evaluations for each unhealthy service that impacted current aggregated health state. Can be returned when evaluating application health and the aggregated health state is either Error or Warning.
Instance Attribute Summary collapse
-
#Kind ⇒ Object
Returns the value of attribute Kind.
-
#max_percent_unhealthy_services ⇒ Integer
the ServiceTypeHealthPolicy.
-
#service_type_name ⇒ String
Name of the service type of the services.
-
#total_count ⇒ Integer
in the application from the health store.
-
#unhealthy_evaluations ⇒ Array<HealthEvaluationWrapper>
that led to the aggregated health state.
Attributes inherited from HealthEvaluation
#aggregated_health_state, #description
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServicesHealthEvaluation class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServicesHealthEvaluation
constructor
A new instance of ServicesHealthEvaluation.
Constructor Details
#initialize ⇒ ServicesHealthEvaluation
Returns a new instance of ServicesHealthEvaluation.
20 21 22 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb', line 20 def initialize @Kind = "Services" end |
Instance Attribute Details
#Kind ⇒ Object
Returns the value of attribute Kind.
24 25 26 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb', line 24 def Kind @Kind end |
#max_percent_unhealthy_services ⇒ Integer
the ServiceTypeHealthPolicy.
31 32 33 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb', line 31 def max_percent_unhealthy_services @max_percent_unhealthy_services end |
#service_type_name ⇒ String
Returns Name of the service type of the services.
27 28 29 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb', line 27 def service_type_name @service_type_name end |
#total_count ⇒ Integer
in the application from the health store.
35 36 37 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb', line 35 def total_count @total_count end |
#unhealthy_evaluations ⇒ Array<HealthEvaluationWrapper>
that led to the aggregated health state. Includes all the unhealthy ServiceHealthEvaluation that impacted the aggregated health.
40 41 42 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb', line 40 def unhealthy_evaluations @unhealthy_evaluations end |
Class Method Details
.mapper ⇒ Object
Mapper for ServicesHealthEvaluation class as Ruby Hash. This will be used for serialization/deserialization.
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/services_health_evaluation.rb', line 47 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Services', type: { name: 'Composite', class_name: 'ServicesHealthEvaluation', 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' } }, Kind: { client_side_validation: true, required: true, serialized_name: 'Kind', type: { name: 'String' } }, service_type_name: { client_side_validation: true, required: false, serialized_name: 'ServiceTypeName', type: { name: 'String' } }, max_percent_unhealthy_services: { client_side_validation: true, required: false, serialized_name: 'MaxPercentUnhealthyServices', type: { name: 'Number' } }, total_count: { client_side_validation: true, required: false, serialized_name: 'TotalCount', type: { name: 'Number' } }, 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' } } } } } } } end |