Updating Smart Engine Triggers with the API

Use the API to update trigger settings used to populate report data. To view a list of available triggers and their current settings use the GET ​/v1​/subscriptions​/{subscriptionLocator}​/apps​/{appId}​/instances​/{instanceId}​/bw​/smartengine​/triggers method. For additional information on triggers, see Smart Engine Trigger List.

To modify Smart Engine triggers you need the following: 

Use the PUT ​/v1​/subscriptions​/{subscriptionLocator}​/apps​/{appId}​/instances​/{instanceId}​/bw​/smartengine​/triggers​/{triggerId} method to update the trigger settings for an app instance. Only the property being updated needs to be included. Properties that are not in the model are not updated.

Example

For trigger ID bw.montr.trigger.HighCPUTrigger, the request body is as follows: 

{
"highCpuDurationMins": 5,
"highCpuThresholdPercent": 80
}

Related Topics

Monitoring Apps with the TIBCO Cloud™ Integration API

Reporting with the TIBCO Cloud™ Integration API Using TIBCO BusinessWorks Smart Engine

Smart Engine Trigger List

Viewing Smart Engine Triggers with the API