Creating an Action for a Test Condition
In the Hawk Console, you can define an action to take when a test condition for a rule of the Hawk agent becomes true.
Procedure
1. | In the Hawk Console, open the Hawk Agent page to which you want to add an action. For steps, see Viewing the Agent Details. |
2. | In the Agent’s page, select the Rulebases tab. All the rulebases for the Hawk agent are displayed. For details, see Rulebases Tab. |
3. | On the Rulebases tab, click the rulebase name which you want to edit. |
All the rules in the rulebase are listed. For details, see Rule Details Page.
4. | Click the rule name for which you want to add the action. |
All the test conditions in the rule are listed. For details, see Test Details Page.
5. | Click the test condition name to which you want to add action. |
All the actions in the test are listed. For details, see Actions Details Page.
6. | Under the Actions section, click Add Action. |
The New Action window opens.
7. | In the New Action window, select the action you want to perform and enter the details to relevant fields. The following table lists all the available actions. |
Action Type |
Result |
Usage Notes |
Alert (default) |
Sends an alert message to Hawk Console |
In the Message field, type the alert text that you want to display in the Alerts tab. Specify an alert level: high (default), medium or low. |
Notification |
Sends a notification message to Hawk Console |
In the Notification field, type the notification text that you want to display in the Hawk Console Alerts tab. |
Method |
Invokes a microagent method on the TIBCO Hawk agent machine |
Select a microagent and method from the Microagent Info panel. Specify any required arguments. |
Sends an email message. |
Specify a message recipient as recipient@domain.com. Specify a subject string, an SMTP mail server for sending the message, and message text. |
|
Post Condition |
Creates a posted condition to use in another rule in the same rulebase |
In the Posted Condition field, type a label for the posted condition. For more information, see Creating and Using Posted Conditions in Hawk Console. |
8. | Select the Schedule that you want to apply to the action. For details about the schedules, see Schedule Management. |
9. | (Optional) Click Advance Options to add flexibility in timing when an action is performed. |
The following table lists the Advance Options fields displayed for the new test.
10. | Click Create Action. The New Action window closes and the action is created for the test condition. |
What to do Next
Deploy the rulebase to the domain for the new action to take effect, see Deploying a Rulebase to the Associated Hawk Agent.