Viewing Smart Engine Triggers with the API
Use triggers to populate Smart Engine reports with data based on configured thresholds. When a threshold or trigger condition is met, the trigger is executed. Modify trigger settings using the PUT /v1/subscriptions/{subscriptionLocator}/apps/{appId}/instances/{instanceId}/bw/smartengine/triggers/{triggerId}
method described in Updating Smart Engine Triggers with the API.
To list Smart Engine triggers you need the following:
- Subscription Locator — The Subscription Locator of the Organization you want to access. To find Subscription Locators for your organizations use the
GET /v1/userinfo
method to return a list of all of the organizations for your OAuth Token with their Subscription Locators. You can use 0 as the Subscription Locator for the organization that owns the OAuth token. -
App ID — ID of the app to be accessed, which can be retrieved using the
GET /v1/subscriptions/{subscriptionLocator}/apps
method. -
App Instance ID — ID of the app instance to be accessed, which can be retrieved using the
GET /v1/subscriptions/{subscriptionLocator}/apps/{appId}/instances
method.
Use the GET /v1/subscriptions/{subscriptionLocator}/apps/{appId}/instances/{instanceId}/bw/smartengine/triggers
method to generate a list of Smart Engine triggers and settings for an app instance.
For a list of possible triggers and settings, see Smart Engine Trigger List.
Related Topics
Monitoring Apps with the TIBCO Cloud™ Integration API
Reporting with the TIBCO Cloud™ Integration API Using TIBCO BusinessWorks Smart Engine