Class: Azure::ServiceFabric::V6_5_0_36::Models::ReplicaHealth
- Inherits:
-
EntityHealth
- Object
- EntityHealth
- Azure::ServiceFabric::V6_5_0_36::Models::ReplicaHealth
- Includes:
- MsRestAzure
- Defined in:
- lib/6.5.0.36/generated/azure_service_fabric/models/replica_health.rb
Overview
Represents a base class for stateful service replica or stateless service instance health. Contains the replica aggregated health state, the health events and the unhealthy evaluations.
Direct Known Subclasses
StatefulServiceReplicaHealth, StatelessServiceInstanceHealth
Instance Attribute Summary collapse
-
#partition_id ⇒ Object
Id of the partition to which this replica belongs.
-
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
Attributes inherited from EntityHealth
#aggregated_health_state, #health_events, #health_statistics, #unhealthy_evaluations
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ReplicaHealth class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ReplicaHealth
constructor
A new instance of ReplicaHealth.
Constructor Details
#initialize ⇒ ReplicaHealth
Returns a new instance of ReplicaHealth.
19 20 21 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_health.rb', line 19 def initialize @ServiceKind = "ReplicaHealth" end |
Instance Attribute Details
#partition_id ⇒ Object
Returns Id of the partition to which this replica belongs.
26 27 28 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_health.rb', line 26 def partition_id @partition_id end |
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
23 24 25 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_health.rb', line 23 def ServiceKind @ServiceKind end |
Class Method Details
.mapper ⇒ Object
Mapper for ReplicaHealth 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 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 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_health.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ReplicaHealth', type: { name: 'Composite', polymorphic_discriminator: 'ServiceKind', uber_parent: 'EntityHealth', class_name: 'ReplicaHealth', model_properties: { aggregated_health_state: { client_side_validation: true, required: false, serialized_name: 'AggregatedHealthState', type: { name: 'String' } }, health_events: { client_side_validation: true, required: false, serialized_name: 'HealthEvents', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HealthEventElementType', type: { name: 'Composite', class_name: 'HealthEvent' } } } }, 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' } } } }, health_statistics: { client_side_validation: true, required: false, serialized_name: 'HealthStatistics', type: { name: 'Composite', class_name: 'HealthStatistics' } }, partition_id: { client_side_validation: true, required: false, serialized_name: 'PartitionId', type: { name: 'String' } } } } } end |