Class: Azure::ServiceFabric::V6_5_0_36::Models::TestErrorChaosEvent
- Inherits:
-
ChaosEvent
- Object
- ChaosEvent
- Azure::ServiceFabric::V6_5_0_36::Models::TestErrorChaosEvent
- Includes:
- MsRestAzure
- Defined in:
- lib/6.5.0.36/generated/azure_service_fabric/models/test_error_chaos_event.rb
Overview
Describes a Chaos event that gets generated when an unexpected event occurs in the Chaos engine. For example, due to the cluster snapshot being inconsistent, while faulting an entity, Chaos found that the entity was already faulted – which would be an unexpected event.
Instance Attribute Summary collapse
-
#Kind ⇒ Object
Returns the value of attribute Kind.
-
#reason ⇒ String
example, Chaos tries to fault a partition but finds that the partition is no longer fault tolerant, then a TestErrorEvent gets generated with the reason stating that the partition is not fault tolerant.
Attributes inherited from ChaosEvent
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for TestErrorChaosEvent class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ TestErrorChaosEvent
constructor
A new instance of TestErrorChaosEvent.
Constructor Details
#initialize ⇒ TestErrorChaosEvent
Returns a new instance of TestErrorChaosEvent.
20 21 22 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/test_error_chaos_event.rb', line 20 def initialize @Kind = "TestError" end |
Instance Attribute Details
#Kind ⇒ Object
Returns the value of attribute Kind.
24 25 26 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/test_error_chaos_event.rb', line 24 def Kind @Kind end |
#reason ⇒ String
example, Chaos tries to fault a partition but finds that the partition is no longer fault tolerant, then a TestErrorEvent gets generated with the reason stating that the partition is not fault tolerant.
30 31 32 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/test_error_chaos_event.rb', line 30 def reason @reason end |
Class Method Details
.mapper ⇒ Object
Mapper for TestErrorChaosEvent class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/test_error_chaos_event.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'TestError', type: { name: 'Composite', class_name: 'TestErrorChaosEvent', model_properties: { time_stamp_utc: { client_side_validation: true, required: true, serialized_name: 'TimeStampUtc', type: { name: 'DateTime' } }, Kind: { client_side_validation: true, required: true, serialized_name: 'Kind', type: { name: 'String' } }, reason: { client_side_validation: true, required: false, serialized_name: 'Reason', type: { name: 'String' } } } } } end |