To get per application count of alerts (static, availability, or transaction) and per application per component instance description of each alert along with the value that violated a static threshold, use the following,

Query APIs:

  • GET /config/accounts/{accountId}/applications
  • GET /config/accounts/{accountId}/applications/{applicationId}/signals

You can create a script as follows:

Input to the script: organization ID, time range, signal type (Problem, Early Warning, or both).

Script Output: Multiple CSVs

  • CSV1 – List of all applications for an account.
  • CSV2…N – Details of signals for an application. Here, N is the number of applications.
  • Output should be in tar or zip format.

Example:

Say, there is one application in an account. You get two CSVs as output.

  • CSV1 containing the list of applications for a given account ID.
  • CSV2 containing details of signals for the application.
  • All these CSVs are part of a single output folder.

bash signalReport.sh <ORG_ID> <FROM_TIME> <TO_TIME> <SIGNAL_TYPE>

FROM AND TO TIME FORMAT: “YYYY-MM-DD HH:MM:SS”
SIGNAL_TYPE can be “problem” or “warning” or “ALL” (case sensitive)

bash alertReport.sh 5 “2020-03-01 10:29:07” “2020-04-17 10:29:07” ALL

Table of Contents