Class: Azure::ServiceFabric::V6_3_0_9::Models::ExecutingFaultsChaosEvent

Inherits:
ChaosEvent
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/executing_faults_chaos_event.rb

Overview

Describes a Chaos event that gets generated when Chaos has decided on the faults for an iteration. This Chaos event contains the details of the faults as a list of strings.

Instance Attribute Summary collapse

Attributes inherited from ChaosEvent

#time_stamp_utc

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExecutingFaultsChaosEvent

Returns a new instance of ExecutingFaultsChaosEvent.



18
19
20
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/executing_faults_chaos_event.rb', line 18

def initialize
  @Kind = "ExecutingFaults"
end

Instance Attribute Details

#faultsArray<String>

Chaos decided to execute in an iteration.

Returns:

  • (Array<String>)

    List of string description of the faults that



26
27
28
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/executing_faults_chaos_event.rb', line 26

def faults
  @faults
end

#KindObject

Returns the value of attribute Kind.



22
23
24
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/executing_faults_chaos_event.rb', line 22

def Kind
  @Kind
end

Class Method Details

.mapperObject

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



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
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/executing_faults_chaos_event.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ExecutingFaults',
    type: {
      name: 'Composite',
      class_name: 'ExecutingFaultsChaosEvent',
      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'
          }
        },
        faults: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Faults',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end