Events in Twidget are fundamental building blocks that allow you to automate tasks on a schedule. These events trigger at specified times or at recurring intervals, executing a predefined list of commands without the need for any inputs or outputs.
-
One-Time Events: These events are scheduled to occur at a specific date and time.
Recurring Events: These events trigger at regular intervals, e.g., every hour, day, week, etc.
Schedule: Define when the event should trigger. This could be a specific date and time or a recurring interval.
Commands List: Specify the sequence of commands that the event should execute. These commands are run in the order they are listed.
Define the Schedule: Set the exact time or recurring interval for the event.
Add Commands: List the commands to be executed by the event.
Description: An event that generates a daily report every morning at 7 AM.
Schedule: Every day at 07:00 AM
Commands:
Fetch latest data from the database.
Compile the data into a report.
Send the report via email to the management team.
Description: An event that performs a health check on the system every hour.
Schedule: Every hour
Commands:
Run system diagnostics.
Log the result of the diagnostics.
If an error is found, send an alert to the support team.
Description: An event that backs up the system data every Sunday night at 11 PM.
Schedule: Every Sunday at 11:00 PM
Commands:
Initiate data backup
Verify backup integrity
Notify IT team
Creating scheduled events in Twidget allows you to automate routine tasks efficiently. By defining a precise schedule and listing the necessary commands, you can ensure that critical processes are executed timely without manual intervention.
Event History
The Event History feature in Twidget allows you to view the status of events that have previously run. You can access detailed information about past events, including: - Whether they completed successfully - Whether they failed - The reason they failed - The duration of each event - The timestamp o...
Event Builder
The Event Builder in Twidget allows you to automate workflows by creating and scheduling events. These events can execute a series of commands when triggered, giving you the ability to automate various tasks without writing a single line of code. Creating an Event. 1. Navigate to the Events Page: - ...