Class AutoHealActions
- java.lang.Object
-
- com.microsoft.azure.management.appservice.AutoHealActions
-
public class AutoHealActions extends Object
Actions which to take by the auto-heal module when a rule is triggered.
-
-
Constructor Summary
Constructors Constructor Description AutoHealActions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoHealActionTypeactionType()Get predefined action to be taken.AutoHealCustomActioncustomAction()Get custom action to be taken.StringminProcessExecutionTime()Get minimum time the process must execute before taking the action.AutoHealActionswithActionType(AutoHealActionType actionType)Set predefined action to be taken.AutoHealActionswithCustomAction(AutoHealCustomAction customAction)Set custom action to be taken.AutoHealActionswithMinProcessExecutionTime(String minProcessExecutionTime)Set minimum time the process must execute before taking the action.
-
-
-
Method Detail
-
actionType
public AutoHealActionType actionType()
Get predefined action to be taken. Possible values include: 'Recycle', 'LogEvent', 'CustomAction'.- Returns:
- the actionType value
-
withActionType
public AutoHealActions withActionType(AutoHealActionType actionType)
Set predefined action to be taken. Possible values include: 'Recycle', 'LogEvent', 'CustomAction'.- Parameters:
actionType- the actionType value to set- Returns:
- the AutoHealActions object itself.
-
customAction
public AutoHealCustomAction customAction()
Get custom action to be taken.- Returns:
- the customAction value
-
withCustomAction
public AutoHealActions withCustomAction(AutoHealCustomAction customAction)
Set custom action to be taken.- Parameters:
customAction- the customAction value to set- Returns:
- the AutoHealActions object itself.
-
minProcessExecutionTime
public String minProcessExecutionTime()
Get minimum time the process must execute before taking the action.- Returns:
- the minProcessExecutionTime value
-
withMinProcessExecutionTime
public AutoHealActions withMinProcessExecutionTime(String minProcessExecutionTime)
Set minimum time the process must execute before taking the action.- Parameters:
minProcessExecutionTime- the minProcessExecutionTime value to set- Returns:
- the AutoHealActions object itself.
-
-