On this page |
|
📋 What’s about
The software provides the tools to handle automated groups of actions on the machines where XCALLY Motion V3 is installed. Through this program it’s possible to execute different types of API requests, custom unix commands or scripts, close channels interactions based on specific conditions or execute databases queries optionally saving them as a report.
⚙️ Installation
The software is executed like a XCALLY plugin, so it’s distributed as a zip archive to be installed directly through the admin interface on, from the AppZone → Plugins section.
Once loaded and installed, you can proceed to the plugin interface through the Plugins → Schedulease SchedulEase entry and complete the first configuration.
🔌 Plugin configuration
First of all you need to configure the Motion database and server details.
From the plugin interface, open the configuration tab and insert the credentials for the motion2 database connection, where the configuration tables for the plugin will be created, and the details of your server, including your server reachable URL and an admin APIkey.
Info |
---|
Remember to restart the plugin from the AppZone → Plugins section after saving the configuration |
💡How it works
Basically, the software has a straightforward functioning.
You configure one or more automations, routines that are executed periodically, based on an interval that can take one or multiple values
For each one of these automations, you can create multiple actions, that will be executed sequentially, one after another, when the specified interval for that automation is met. The actions are queued, so the next action is not executed until the previous one has not finished or failed.
The queue is common through all the automations, so there is no possibility of two actions of two different automations to be executed at the same time, since all the actions are put in the same queue.Everything that’s happening in the background is logged and can be checked on the log files
🔧 Automations
The Automations view allows you to manage your automated routines. From here you can create new automations or modify and delete them.
Every time an automation is executed, the Last Exec field is updated. Also, in the interval column you can check when the next run of the automation will be.
You can create a new automation with the plus button located in the right bottom side of the page and fill in these fields:
After you create an automation, it’s possible to quick edit it, by clicking on the automation row, or through the context menu on the right.
From there you will be redirected to the automation settings, where you can edit it or add/modify/delete actions.
➡️ Actions
From the Actions tab, in the automation settings, you can create new actions, modify and delete them. Each one of these actions, when the automation interval is met, will be added to a queue, and executed sequentially, one after another.
Also here, the Last Exec column is updated when the specific action is executed.
There are 4 different types of actions: Api, System, CloseInteractions, DbQuery
Logs
The application stores log files for each component and/or function that is executed in the background. You can find these logs in the Log view, where you can check when a specific log is been updated, download, or delete it.
The logs allow you to check the proper functioning of the application, and to eventually check for errors.
You can find logs in folder /var/log/xcally/schedulease
As mentioned, the log files are organized by component and by type, and can be of four types:
<component_name>-combined.log, includes the list of all the complete logs for that component.
<component_name>-combined.date.log (e.g. api-combined.2024-01-01.log): these files gather the log details for the specified component, including both debug and error messages, and for the day specified in the date part of the name. The logs are rotated daily, meaning that you’ll have a new combined log file for each component for each day. The rotation limit is set to 30 days, meaning that after 30 days the oldest logs will be deleted.
<component_name>-error.log, includes the list of all the error logs for that component.
<component_name>-error.date.log: these files gather the log details related to the errors only, and for the day specified in the date part of the name. The logs are rotated daily, meaning that you’ll have a new combined log file for each component for each day. The rotation limit is set to 30 days, meaning that after 30 days the oldest logs will be deleted.