Page 1 of 1

ListAlerts is not working

Posted: September 7th, 2024, 6:17 am
by dolphin
Hello JetBackup Team,

I am encountering an issue while using the JetBackup5 API with the listAlerts function. It does not list the most recent alert information, even though the alert section does display the information (as shown in the attached image).

I have referred to the documentation at JetBackup Alerts and JetBackup API, but they are too brief to resolve my issue.

I would appreciate your assistance in addressing this problem.

Thank you for your support!

Re: ListAlerts is not working

Posted: September 8th, 2024, 12:19 am
by JetAppsTrenton
Hello Dolphin,

Thank you for supporting JetBackup! While reviewing the API output, we noticed that the alerts are not being sorted in ascending order. The correct syntax should be:

Code: Select all

jetbackup5api -F listAlerts -D "sort[created]=-1"
The sort option will sort the logs by the date created and the "-1" parameter will sort this by the latest date. Additionally, you may combine this with the "limit" parameter to limit the specified number of records returned. Kindly refer to our documentation below for more information.
https://docs.jetbackup.com/v5.3/api/com ... 0are%20the

We appreciate your feedback regarding our documentation and will notify our team to enhance the Alerts API section by including more parameter options.

If you require further assistance, feel free to contact our help desk! We offer 24/7/365 support to help with any JetBackup-related issues.
https://billing.jetapps.com/submitticket.php

Best Regards,

Trenton V
JetApps, LLC.
JetApps.com | JetBackup.com