Class: Azure::ServiceFabric::V7_0_0_42::Models::PartitionAnalysisEvent

Inherits:
PartitionEvent show all
Includes:
MsRestAzure
Defined in:
lib/7.0.0.42/generated/azure_service_fabric/models/partition_analysis_event.rb

Overview

Represents the base for all Partition Analysis Events.

Direct Known Subclasses

PartitionPrimaryMoveAnalysisEvent

Instance Attribute Summary collapse

Attributes inherited from PartitionEvent

#partition_id

Attributes inherited from FabricEvent

#category, #event_instance_id, #has_correlated_events, #time_stamp

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePartitionAnalysisEvent

Returns a new instance of PartitionAnalysisEvent.



16
17
18
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/partition_analysis_event.rb', line 16

def initialize
  @Kind = "PartitionAnalysisEvent"
end

Instance Attribute Details

#KindObject

Returns the value of attribute Kind.



20
21
22
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/partition_analysis_event.rb', line 20

def Kind
  @Kind
end

#metadataAnalysisEventMetadata

Returns Metadata about an Analysis Event.

Returns:



23
24
25
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/partition_analysis_event.rb', line 23

def 
  @metadata
end

Class Method Details

.mapperObject

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



30
31
32
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
# File 'lib/7.0.0.42/generated/azure_service_fabric/models/partition_analysis_event.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PartitionAnalysisEvent',
    type: {
      name: 'Composite',
      class_name: 'PartitionAnalysisEvent',
      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'
          }
        }
      }
    }
  }
end