Perform Cloud Action
This action can be used to start/stop/restart Cloud resources (EC2 instances/Azure VMs) in the event of an alarm.
To create a Cloud action, follow the steps given below:
- Select the Cloud Action option from the Actions menu.
- Enter the Display Name of the action.
- Select the Monitor Type on which the action has to be performed in the event of an alarm. You can choose either Amazon or Azure.
- Choose the Action Type to be performed in the event of an alarm. You can choose to either Start, Stop, or Restart resources. (Instances/VMs)
- Use the Select Target Resource option to associate the action to specific resource(s) (EC2 instances/Azure VMs). There are three ways of selecting the target resource(s).
- All resources in the selected monitor group: This triggers the action for all the resources (EC2 instances/Azure VMs) present in the selected monitor group.
- All resources in the selected host monitor: Trigger Cloud actions for all the resources (EC2 Instances/Azure VMs) present in the selected monitor host type. (Amazon/Azure)
- Specific resource: This triggers the action for the selected resource (EC2 instance/Azure VM) alone.
- You can use the Notify after action executes option to receive an email notification once the action is successfully executed. You can either select an existing email address or define new email addresses using the New Action option.
- If you want to execute the action during specific time periods, enable the Execute Action based on Business Hours option and select the Business Hour during which the action has to be executed. The action can be configured such that it is executed during or outside the selected Business Hours. Use the drop-down menu to select your time window or click on 'Add New Business Hour' to create a new time window.
- Click the Create Action button to finish creating the Cloud action for the required resources. (EC2 Instances/Azure VMs)
After creating the Cloud action, you can test its execution by clicking the Execute [ ] icon of that action.