class Azure::ServiceFabric::V7_0_0_42::Models::ReplicaEvent

Represents the base for all Replica Events.

Attributes

Kind[RW]
partition_id[RW]

@return An internal ID used by Service Fabric to uniquely identify a 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.

replica_id[RW]

@return [Integer] Id of a stateful service replica. ReplicaId is used 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.

Private Class Methods

mapper() click to toggle source

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

# File lib/7.0.0.42/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'
          }
        },
        category: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Category',
          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: true,
          serialized_name: 'PartitionId',
          type: {
            name: 'String'
          }
        },
        replica_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ReplicaId',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/7.0.0.42/generated/azure_service_fabric/models/replica_event.rb, line 16
def initialize
  @Kind = "ReplicaEvent"
end