Class: Azure::ServiceFabric::V6_5_0_36::Models::ChaosEvent

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event.rb

Overview

Represents an event generated during a Chaos run.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChaosEvent

Returns a new instance of ChaosEvent.



23
24
25
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event.rb', line 23

def initialize
  @Kind = "ChaosEvent"
end

Instance Attribute Details

#KindObject

Returns the value of attribute Kind.



27
28
29
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event.rb', line 27

def Kind
  @Kind
end

#time_stamp_utcDateTime

generated.

Returns:

  • (DateTime)

    The UTC timestamp when this Chaos event was



31
32
33
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event.rb', line 31

def time_stamp_utc
  @time_stamp_utc
end

Class Method Details

.mapperObject

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



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/chaos_event.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ChaosEvent',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'Kind',
      uber_parent: 'ChaosEvent',
      class_name: 'ChaosEvent',
      model_properties: {
        time_stamp_utc: {
          client_side_validation: true,
          required: true,
          serialized_name: 'TimeStampUtc',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end