The functionality described in this article is available in XRay versions 1.5 and greater.
By setting up a Slack action, you lay the framework for messages to be sent to users or channels (groups of users). Slack actions send Slack messages; email actions send emails. A Log action saves data to a log for future reference.
In version 11.2, select Administrator Settings > Actions from the left toolbar.
Slack Actions
For information about setting up Slack actions, see step 3 of Social Integration: Slack. In Step 4 of that article, you’ll associate Slack actions with alerts so that messages are sent in certain cases.
Email actions
Before creating an email action, you must set up an email provider. See Providers.
You can send an email to any email address (individual or group). Messages can include text, variables, or both.
- From Main Menu > Admin Settings > Actions, select Email.
- Click Create.
- Enter an Action Name.
- Select the Provider Name that will send emails for this action.
- Select the MIME type: Text/plain or text/html.
- Enter “from” and “to” email addresses in the Mail From and Mail To An optional Mail CC field is available to copy the message to additional addresses.
- Enter the Subject of the message to be sent.
- Enter the Message text and variables, if desired. For more information about creating and formatting messages, see Templates and Message Formatting.
- To verify that messages can be sent through the email provider, click Test. A confirmation message is displayed to inform you that the test email was sent successfully.
- Click OK.
- Click Create. The new action is added to the list.
Log Actions
Instead of sending a message through Slack or email, a Log action saves data to a log for future reference.
- From Main Menu > Admin Settings > Actions, select Logs.
- Click Create. The Editing Provider console opens.
- Enter the Provider Name; this name must match the Provider Name as set up in Set up a Log Provider.
- The Line is filled in automatically, as set in the Editing Provider console.
- Click Save.
To test the log action:
- In the jKQL Workbench, open any repository.
- Type “invoke action ‘<action name’>” and run the query.
- To check the log file, go to AutopilotM6/localhost. The log file can be found there.
Edit an action
- Click the edit icon for the action.
- Make your changes.
- Click Save.
Clone an action
To create a new action based on an existing action, use the clone function.
- Click the clone icon for the action you want to copy. By default, the name of the new action is the name of the cloned action followed by "Copy."
- Enter a name for the new action.
- Make any other desired changes.
- Click Create..
Delete an action
- Click the delete icon for the action you want to remove.
- Click Yes at the confirmation message. The action is removed.