Class: Azure::ServiceFabric::V6_3_0_9::Models::ReplicaEvent
- Inherits:
-
FabricEvent
- Object
- FabricEvent
- Azure::ServiceFabric::V6_3_0_9::Models::ReplicaEvent
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/replica_event.rb
Overview
Represents the base for all Replica Events.
Direct Known Subclasses
ChaosRemoveReplicaFaultCompletedEvent, ChaosRemoveReplicaFaultScheduledEvent, ChaosRestartReplicaFaultScheduledEvent, StatefulReplicaHealthReportCreatedEvent, StatefulReplicaHealthReportExpiredEvent, StatelessReplicaHealthReportCreatedEvent, StatelessReplicaHealthReportExpiredEvent
Instance Attribute Summary collapse
-
#Kind ⇒ Object
Returns the value of attribute Kind.
-
#partition_id ⇒ Object
partition.
-
#replica_id ⇒ Integer
by Service Fabric to uniquely identify a replica of a partition.
Attributes inherited from FabricEvent
#event_instance_id, #has_correlated_events, #time_stamp
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ReplicaEvent class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ReplicaEvent
constructor
A new instance of ReplicaEvent.
Constructor Details
#initialize ⇒ ReplicaEvent
Returns a new instance of ReplicaEvent.
16 17 18 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_event.rb', line 16 def initialize @Kind = "ReplicaEvent" end |
Instance Attribute Details
#Kind ⇒ Object
Returns the value of attribute Kind.
20 21 22 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_event.rb', line 20 def Kind @Kind end |
#partition_id ⇒ Object
partition. This is a randomly generated GUID when the service was created. The partition ID is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be different.
27 28 29 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_event.rb', line 27 def partition_id @partition_id end |
#replica_id ⇒ Integer
by Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id.
36 37 38 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_event.rb', line 36 def replica_id @replica_id end |
Class Method Details
.mapper ⇒ Object
Mapper for ReplicaEvent class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_event.rb', line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ReplicaEvent', type: { name: 'Composite', class_name: 'ReplicaEvent', model_properties: { event_instance_id: { client_side_validation: true, required: true, serialized_name: 'EventInstanceId', type: { name: 'String' } }, time_stamp: { client_side_validation: true, required: true, serialized_name: 'TimeStamp', type: { name: 'DateTime' } }, has_correlated_events: { client_side_validation: true, required: false, serialized_name: 'HasCorrelatedEvents', type: { name: 'Boolean' } }, Kind: { client_side_validation: true, required: true, serialized_name: 'Kind', type: { name: 'String' } }, partition_id: { client_side_validation: true, required: false, serialized_name: 'PartitionId', type: { name: 'String' } }, replica_id: { client_side_validation: true, required: false, serialized_name: 'ReplicaId', type: { name: 'Number' } } } } } end |