Class: Azure::ServiceFabric::V6_5_0_36::Models::ChaosEvent
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_5_0_36::Models::ChaosEvent
- 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.
Direct Known Subclasses
ExecutingFaultsChaosEvent, StartedChaosEvent, StoppedChaosEvent, TestErrorChaosEvent, ValidationFailedChaosEvent, WaitingChaosEvent
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#Kind ⇒ Object
Returns the value of attribute Kind.
-
#time_stamp_utc ⇒ DateTime
generated.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ChaosEvent class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ChaosEvent
constructor
A new instance of ChaosEvent.
Constructor Details
#initialize ⇒ ChaosEvent
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
#Kind ⇒ Object
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_utc ⇒ DateTime
generated.
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
.mapper ⇒ Object
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 |