package main
import (
"time"
"github.com/crontinel/go"
)
func main() {
client := crontinel.NewClient("your_api_key")
// Report a scheduled command
client.ScheduleRun("php artisan schedule:run", 1500, 0)
// Report queue processing
client.QueueProcessed("emails", 50, 2, 3200)
// Send a custom event
client.Event("deployment", "Application deployed", "info", map[string]interface{}{"version": "2.0"})
// Monitor a function
durationMs, exitCode := client.MonitorSchedule("my-task", func() error {
// do work
return nil
})
}ScheduleRun— report scheduled command outcomeQueueProcessed— report queue worker activityHorizonSnapshot— report Laravel Horizon supervisor statusEvent— send custom events and alertsMonitorSchedule— run a function and auto-report outcome
client := crontinel.NewClient("key",
crontinel.WithAPIURL("https://custom.example.com"),
crontinel.WithAppName("my-worker"),
)For Laravel applications, use the official crontinel/laravel package which integrates with the scheduler and queue worker out of the box.