ListAlerts is not working

cPanel, Industry leading hosting platform with world-class support.
Post Reply
dolphin
Posts: 12
Joined: August 8th, 2024, 4:58 am

ListAlerts is not working

Post 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!
Attachments
2024-09-07_11-02.png
2024-09-07_11-02.png (53.28 KiB) Viewed 11815 times
2024-09-07_11-00.png
2024-09-07_11-00.png (53.82 KiB) Viewed 11815 times
JetAppsTrenton
Staff Member
Staff Member
Posts: 35
Joined: October 6th, 2023, 3:55 am

Re: ListAlerts is not working

Post 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
Post Reply