Weekly (1w)
60 minutes
c110a805ed5adbd600eb8efd6eea09c1f5ad4c987a9b5d99c7b9caafa25b05f1
emailing a rate of sale on top 30 brands
<?php
$ch = curl_init('https://cron-task-monitoring.documentonready.com/api/report.php');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-Api-Token: c110a805ed5adbd600eb8efd6eea09c1f5ad4c987a9b5d99c7b9caafa25b05f1',
],
CURLOPT_POSTFIELDS => json_encode([
'identifier' => 'lambda rate_of_sale',
'status' => 'success',
'message' => 'Task completed',
]),
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
# Append to your cron job to report success/failure:
/path/to/your-job.sh && \
curl -s -X POST https://cron-task-monitoring.documentonready.com/api/report.php \
-H "Content-Type: application/json" \
-H "X-Api-Token: c110a805ed5adbd600eb8efd6eea09c1f5ad4c987a9b5d99c7b9caafa25b05f1" \
-d '{"identifier":"lambda rate_of_sale","status":"success","message":"OK"}' || \
curl -s -X POST https://cron-task-monitoring.documentonready.com/api/report.php \
-H "Content-Type: application/json" \
-H "X-Api-Token: c110a805ed5adbd600eb8efd6eea09c1f5ad4c987a9b5d99c7b9caafa25b05f1" \
-d '{"identifier":"lambda rate_of_sale","status":"failure","message":"Script exited with error"}'
Success: 4 | Failure: 0 | Missed: 0
| Status | Message | Reported At |
|---|---|---|
| success | Rate-of-sale run 20260905..20261004: brands=30 products=389 alerts=46 alert_groups=21 status={'out_of_stock': 1, 'low_stock': 45, 'ok': 316, 'unknown': 27} email_sent=True | 2026-10-07 06:05:33 |
| success | Rate-of-sale run 20260829..20260927: brands=30 products=421 alerts=69 alert_groups=23 status={'out_of_stock': 1, 'low_stock': 68, 'ok': 318, 'unknown': 34} email_sent=True | 2026-09-30 06:05:31 |
| success | Rate-of-sale run 20260822..20260920: brands=30 products=438 alerts=70 alert_groups=22 status={'out_of_stock': 1, 'low_stock': 69, 'ok': 337, 'unknown': 31} email_sent=True | 2026-09-23 06:05:33 |
| success | Rate-of-sale run 20260815..20260913: brands=30 products=369 alerts=70 alert_groups=24 status={'out_of_stock': 1, 'low_stock': 69, 'ok': 274, 'unknown': 25} email_sent=True | 2026-09-16 06:05:33 |
| success | Rate-of-sale run 20260808..20260906: brands=30 products=425 alerts=81 alert_groups=26 status={'out_of_stock': 0, 'low_stock': 81, 'ok': 316, 'unknown': 28} email_sent=True | 2026-09-09 06:05:33 |
| success | Rate-of-sale run 20260801..20260830: brands=30 products=377 alerts=51 alert_groups=19 status={'out_of_stock': 1, 'low_stock': 50, 'ok': 298, 'unknown': 28} email_sent=True | 2026-09-02 06:05:31 |
| success | Rate-of-sale run 20260725..20260823: brands=30 products=364 alerts=44 alert_groups=20 status={'out_of_stock': 1, 'low_stock': 43, 'ok': 293, 'unknown': 27} email_sent=True | 2026-08-26 06:05:31 |
| success | Rate-of-sale run 20260718..20260816: brands=30 products=390 alerts=47 alert_groups=19 status={'out_of_stock': 3, 'low_stock': 44, 'ok': 280, 'unknown': 63} email_sent=True | 2026-08-19 06:05:31 |
| success | Rate-of-sale run 20260713..20260811: brands=30 products=422 alerts=38 alert_groups=14 status={'out_of_stock': 4, 'low_stock': 34, 'ok': 163, 'unknown': 221} email_sent=True | 2026-08-14 15:26:38 |
| success | Rate-of-sale run 20260711..20260809: brands=30 products=413 alerts=36 alert_groups=14 status={'out_of_stock': 4, 'low_stock': 32, 'ok': 158, 'unknown': 219} email_sent=True | 2026-08-12 18:54:48 |
| success | Rate-of-sale run 20260711..20260809: brands=30 products=413 alerts=36 alert_groups=14 status={'out_of_stock': 4, 'low_stock': 32, 'ok': 157, 'unknown': 220} email_sent=True | 2026-08-12 16:00:41 |
| success | Rate-of-sale run 20260710..20260808: brands=30 products=399 groups_shown=30 status={'out_of_stock': 4, 'low_stock': 31, 'ok': 148, 'unknown': 216} email_sent=True | 2026-08-11 12:56:33 |