[dependencies]
crontinel = "0.1"use crontinel::Crontinel;
let client = Crontinel::new("your_api_key");
// Report a scheduled command
client.schedule_run("php artisan schedule:run", Some(1500), 0).unwrap();
// Report queue processing
client.queue_processed("emails", 50, 2, Some(3200)).unwrap();
// Send a custom event
client.event("deployment", "Application deployed", "info", None).unwrap();
// Monitor a closure
let (ms, code) = client.monitor_schedule("my-task", || Ok(()));
assert_eq!(code, 0);schedule_run— report scheduled command outcomequeue_processed— report queue worker activityhorizon_snapshot— report Laravel Horizon supervisor statusevent— send custom events and alertsmonitor_schedule— run a closure and auto-report outcome
let client = Crontinel::builder("key")
.api_url("https://custom.example.com")
.app_name("my-worker")
.timeout(Duration::from_secs(30))
.build();For Laravel applications, use the official crontinel/laravel package which integrates with the scheduler and queue worker out of the box.