Class: Azure::ARM::Web::Models::AutoHealActions

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/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:



18
19
20
# File 'lib/generated/azure_mgmt_web/models/auto_heal_actions.rb', line 18

def action_type
  @action_type
end

#custom_actionAutoHealCustomAction

Returns Custom action to be taken.

Returns:



21
22
23
# File 'lib/generated/azure_mgmt_web/models/auto_heal_actions.rb', line 21

def custom_action
  @custom_action
end

#min_process_execution_timeString

before taking the action

Returns:

  • (String)

    Minimum time the process must execute



25
26
27
# File 'lib/generated/azure_mgmt_web/models/auto_heal_actions.rb', line 25

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.



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

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