Administration Guide > Using TDV Workload Management > Example - Creating a trigger to limit memory use using Workload Management
 
Example - Creating a trigger to limit memory use using Workload Management
Following are the steps to create a trigger and enable/disable it using Workload Management:
1. Create a REST data source.
2. Enter login and password credentials.
Base URL = http://localhost:9400/rest/workload/v1
3. Check "JSON Format".
4. Click on the green plus sign to add an operation. Set the following values:
Name = "enable"
HTTP Verb = "PUT".
Operation URL = enable
5. Add a Header/Body Parameter. Enter the following values:
Name = "[rawdata]"
Data type = CHAR
In/Out = "IN"
6. Create a Trigger with the condition as 9am and Action = "Execute Procedure". Point it to the "enable" procedure you just created. Set the "rawdata" parameter to 1.
7. Create a 2nd Trigger with the condition as 1pm and Action = "Execute Procedure". Point it to the "enable" procedure you just created. Set the “rawdata” parameter to 0.