Getting alert information in CSV format¶
You can get a list of alerts in CSV format. The CSV data will be shown in the response body.
Tip
This feature is not available in the web user interface.
Method and URI¶
To get information about all alerts, use a GET method and a URI:
GET https://{hostname|IPv4}/api/endeavour/alert/message/download/csv
Parameters¶
None.
Data¶
None.
Example: Get alert information in CSV format¶
In this example, a Python snippet is used to get information about alerts in CSV format.
_response = requests.get('https://' + spp_ipv4
+ '/api/endeavour/alert/message/download/csv',
headers={...}, verify=...)
print(_response.text)
The request prompts a response as shown, with the HTTP status of 200 (OK). The columns Time
and Last
are in the UNIX time format followed by three digits, which represent milliseconds.
Tip
The response body can be extremely large.
Time,ReadableTime,Name,Category,Type,DataSource,First,ReadableFirst,Last,Readabl
↪eLast,Level,Message
1564775266973,Fri 2 Aug 2019 19:47:46 UTC,JOB_FAILED,JOB,ERROR,onDemandRestore_1
↪564775110936:1564775111170,1564775266973,Fri 2 Aug 2019 19:47:46 UTC,1564775266
↪973,Fri 2 Aug 2019 19:47:46 UTC,0,Job onDemandRestore_1564775110936 (id=1007 se
↪ssion=1564775111170) failed.
...
You can load a CSV table into spreadsheet applications, such as Microsoft Excel. To learn how to load a CSV table into a spreadsheet, see the documentation for the spreadsheet application.