Configure a new action in Actions Menu
This topic explains how to create incident or alert actions in Actions Menu.
Create a new action
To create new action, do the following:
Within APEX AIOps Incident Management, navigate to Correlate & Automate > Actions Menu.
You can also navigate to the Actions Menu from the Incidents view or the Alerts view by doing the following:
From the Incidents or Alerts view, select an incident or an alert.
Click the Actions button in the top left:
If you are viewing incidents, select Incident Actions > Configure Actions.
If you are viewing alerts, select Alert Actions > Configure Actions.
Select Incident Actions or Alert Actions.
Click Add Incident Action or Add Alert Action.
Provide a unique name for the action. Optionally, provide a description.
Select URL Action or Set Tags Action. Follow the instructions in the following sections according to the type of action you selected.
Create a URL Action
To create a URL Action, fill out the sections as follows:
Under Actions, make sure URL Action is selected.
Fill out the Endpoint section:
For Request Type, select either "POST" or "GET" depending on your business needs.
For Response Display, select "Popup" to display the results of the request in the UI. Select "None" if you don't want to display anything.
For URL, enter the URL against which the request will be made. Make sure the URL begins with
http://
orhttps://
.(Optional) For Base URL, click Add Base URL. Specify a URL to bypass Cross Origin Resource Sharing (CORS) restrictions, which occurs when a server cannot serve a request from another domain. Make sure the URL begins with
http://
orhttps://
.For Headers, click Add Header to include key value pairs of data that you wish to send in your HTTP request.
Fill out the Payload Body section:
If you have specified a request type of "POST" in the previous Endpoint section, enter the payload body that you wish to POST to your external system. For example:
{ "description": "${description}", "moogsoft_id": 11, "updateType": "create", "severity": "${severity}", "priority": "P3" }
Configure Prompt Variables:
Provide details of any prompt variables that you wish to utilize. Select a prompt variable from the list to edit the following properties:
Display Name: The name of the variable that the user will be prompted to enter a value for.
Variable Type: Select "String," "Number," or "Selection List."
Selecting "String" or "Number" will enable you to specify the following additional parameters:
Default Value: A default value to be utilized in the event that the user prompt receives no input.
Minimum and Maximum Length or Value: A minimum and maximum length of string input in the case of “String” variable type and a minimum and maximum value in the case of “Number” variable type.
Selecting "Selection List" will allow you to to add predefined values for the user to select from. To add new values, click Add List Item and specify the following parameters:
List Item Type: The type of the list item. Select either "STRING" or "NUMBER."
List Item Value: The predefined value that you wish to offer to the user. Make sure that the value matches the corresponding "List Item Type."
Click Save at the top of the page to save your action.
Create a Set Tags Action
To create a Set Tags Action, fill out the sections as follows:
Under Actions, make sure Set Tags Action is selected.
Add tags in the Set Tags section:
Under Tag Name and Tag Value, enter the name of the tag that you wish to create or update, and the corresponding value you wish to assign to that tag.
Click Add Tags to add new tags as necessary.
Configure Prompt Variables:
Provide details of any prompt variables that you wish to utilize. Select a Prompt Variable from the list to edit the following properties:
Display Name: The name of the variable that the user will be prompted to enter a value for.
Variable Type: Select "String," "Number," or "Selection List."
Selecting "String" or "Number" will enable you to specify the following additional parameters:
Default Value: A default value to be utilized in the event that the user prompt receives no input.
Minimum and Maximum Length or Value: A minimum and maximum length of string input in the case of “String” variable type and a minimum and maximum value in the case of “Number” variable type.
Selecting "Selection List" will enable you to to add predefined values for the user to select from. To add new values, click Add List Item and specify the following parameters:
List Item Type: The type of the list item. Select either "STRING" or "NUMBER."
List Item Value: The predefined value that you wish to offer to the user. Make sure that the value matches the corresponding "List Item Type."
Click Save at the top of the page to save your action.