Viewing Alerts for Apps with the API
When app performance meets the criteria set by a rule for more than 30 seconds, an alert is sent to a configured TIBCO Cloud™ Integration webhook. The alert is also sent to the database and is stored for 24 hours. Use the API to retrieve alerts generated in the last 24 hours for apps in your organization.
To view alerts for apps in your organization, 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.
Use the GET /v1/subscriptions/{subscriptionLocator}/alerts
method to return information for each alert generated in the last 24 hours.
Use the optional appId
parameter to return alerts triggered by a specific app.
Use the optional ruleId
parameter to return alerts for a specific rule.
Role Requirements
- Admins can view alerts for their organization.
- Users can view alerts for their organization.
- Read-only users can view alerts for their organization.