Class: Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActions

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb

Overview

Actions which to take by the auto-heal module when a rule is triggered.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#action_typeAutoHealActionType

values include: ‘Recycle’, ‘LogEvent’, ‘CustomAction’

Returns:



17
18
19
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb', line 17

def action_type
  @action_type
end

#custom_actionAutoHealCustomAction

Returns Custom action to be taken.

Returns:



20
21
22
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb', line 20

def custom_action
  @custom_action
end

#min_process_execution_timeString

before taking the action

Returns:

  • (String)

    Minimum time the process must execute



24
25
26
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb', line 24

def min_process_execution_time
  @min_process_execution_time
end

Class Method Details

.mapperObject

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



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
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/auto_heal_actions.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoHealActions',
    type: {
      name: 'Composite',
      class_name: 'AutoHealActions',
      model_properties: {
        action_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'actionType',
          type: {
            name: 'Enum',
            module: 'AutoHealActionType'
          }
        },
        custom_action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'customAction',
          type: {
            name: 'Composite',
            class_name: 'AutoHealCustomAction'
          }
        },
        min_process_execution_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'minProcessExecutionTime',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end