# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ServiceFabric::V7_0_0_42 module Models # # Partition Primary Move Analysis event. # class PartitionPrimaryMoveAnalysisEvent < PartitionAnalysisEvent include MsRestAzure def initialize @Kind = "PartitionPrimaryMoveAnalysis" end attr_accessor :Kind # @return [DateTime] Time when the move was completed. attr_accessor :when_move_completed # @return [String] The name of a Service Fabric node. attr_accessor :previous_node # @return [String] The name of a Service Fabric node. attr_accessor :current_node # @return [String] Move reason. attr_accessor :move_reason # @return [String] Relevant traces. attr_accessor :relevant_traces # # Mapper for PartitionPrimaryMoveAnalysisEvent class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PartitionPrimaryMoveAnalysis', type: { name: 'Composite', class_name: 'PartitionPrimaryMoveAnalysisEvent', 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' } }, metadata: { client_side_validation: true, required: true, serialized_name: 'Metadata', type: { name: 'Composite', class_name: 'AnalysisEventMetadata' } }, when_move_completed: { client_side_validation: true, required: true, serialized_name: 'WhenMoveCompleted', type: { name: 'DateTime' } }, previous_node: { client_side_validation: true, required: true, serialized_name: 'PreviousNode', type: { name: 'String' } }, current_node: { client_side_validation: true, required: true, serialized_name: 'CurrentNode', type: { name: 'String' } }, move_reason: { client_side_validation: true, required: true, serialized_name: 'MoveReason', type: { name: 'String' } }, relevant_traces: { client_side_validation: true, required: true, serialized_name: 'RelevantTraces', type: { name: 'String' } } } } } end end end end