{
    "all_ok": false,
    "components": {
        "web": {
            "label": "Site & Painel",
            "status": "green",
            "detail": "Servindo requisições"
        },
        "storage": {
            "label": "Armazenamento",
            "status": "green",
            "detail": "Leitura\/escrita OK"
        },
        "ml_api": {
            "label": "API Mercado Livre",
            "status": "green",
            "detail": "Resposta em 134ms"
        },
        "ml_sync": {
            "label": "Sincronização ML",
            "status": "green",
            "detail": "Último ciclo: 12s"
        },
        "whatsapp": {
            "label": "Envio de WhatsApp",
            "status": "green",
            "detail": "Conectado (25ms)"
        },
        "broadcast": {
            "label": "Notificações em massa",
            "status": "yellow",
            "detail": "Killswitch ativo"
        },
        "deploy": {
            "label": "Último deploy",
            "status": "green",
            "detail": "Há 10.5h"
        }
    },
    "crons": {
        "camada1": {
            "label": "Camada 1 · Hostinger",
            "jobs": {
                "cron_runner": {
                    "label": "Cron Runner LITE (10min)",
                    "status": "red",
                    "detail": "Último: 27d (parado)"
                },
                "pickup_aggregate": {
                    "label": "Pickup aggregate (11h)",
                    "status": "green",
                    "detail": "Último: 15.9h"
                },
                "ml_webhook_health": {
                    "label": "ML Webhook Health (6h)",
                    "status": "yellow",
                    "detail": "Ainda não executou"
                },
                "gerente_billing": {
                    "label": "Cobrança plano gerente",
                    "status": "green",
                    "detail": "Último: 2h"
                },
                "ml_ads_sync": {
                    "label": "Sync ML Ads",
                    "status": "green",
                    "detail": "Último: 2h"
                }
            }
        },
        "camada2": {
            "label": "Camada 2 · Scheduler interno",
            "jobs": {
                "scheduler": {
                    "label": "Heartbeat scheduler (5min)",
                    "status": "red",
                    "detail": "Último: 27d (parado)"
                }
            }
        },
        "jobs_lite": {
            "label": "Jobs LITE (10min)",
            "jobs": {
                "tokens_refresh": {
                    "label": "Refresh tokens ML",
                    "status": "yellow",
                    "detail": "Ainda não executou"
                },
                "ml_sync_batch": {
                    "label": "ML sync batch rotativo",
                    "status": "yellow",
                    "detail": "Ainda não executou"
                },
                "clone_jobs": {
                    "label": "Clonagem (watchdog)",
                    "status": "green",
                    "detail": "Último: 15min"
                },
                "ml_invite_autoconfirm": {
                    "label": "ML invite auto-confirm",
                    "status": "green",
                    "detail": "Último: 6min"
                }
            }
        },
        "jobs_full": {
            "label": "Jobs FULL (1h)",
            "jobs": {
                "label_precache": {
                    "label": "Pré-cache etiquetas (4h)",
                    "status": "red",
                    "detail": "Último: 11d (parado)"
                },
                "label_retry": {
                    "label": "Retry etiquetas (5min)",
                    "status": "red",
                    "detail": "Último: 6d (parado)"
                },
                "label_cleanup": {
                    "label": "Cleanup etiquetas (20h)",
                    "status": "red",
                    "detail": "Último: 6d (parado)"
                },
                "drop_expire": {
                    "label": "Drop orders expire (24h)",
                    "status": "red",
                    "detail": "Último: 6d (parado)"
                },
                "plan_renewals": {
                    "label": "Renovações plano (24h)",
                    "status": "red",
                    "detail": "Último: 6d (parado)"
                },
                "nurture_dispatch": {
                    "label": "Nurture dispatch",
                    "status": "yellow",
                    "detail": "Ainda não executou"
                },
                "leads_nudge": {
                    "label": "Leads nudge (23h)",
                    "status": "red",
                    "detail": "Último: 6d (parado)"
                },
                "returns_sla_detect": {
                    "label": "Devoluções SLA + ML detect",
                    "status": "yellow",
                    "detail": "Ainda não executou"
                },
                "tg_cache_cleanup": {
                    "label": "Cleanup Telegram cache",
                    "status": "yellow",
                    "detail": "Ainda não executou"
                },
                "trial_reminders": {
                    "label": "Trial reminders",
                    "status": "yellow",
                    "detail": "Ainda não executou"
                }
            }
        }
    },
    "kpis": {
        "uptime_30d": "99.9%",
        "latency_avg": "< 200ms",
        "monitoring": "24\/7",
        "syncs_today": 22
    },
    "uptime": {
        "uptime_7d": 0,
        "uptime_30d": 0,
        "history_7d": [
            {
                "date": "2026-05-21",
                "state": "down",
                "red": 3
            },
            {
                "date": "2026-05-22",
                "state": "down",
                "red": 4
            },
            {
                "date": "2026-05-23",
                "state": "down",
                "red": 8
            },
            {
                "date": "2026-05-24",
                "state": "down",
                "red": 8
            },
            {
                "date": "2026-05-25",
                "state": "down",
                "red": 8
            },
            {
                "date": "2026-05-26",
                "state": "down",
                "red": 8
            },
            {
                "date": "2026-05-27",
                "state": "unknown"
            }
        ]
    },
    "generated_at": "2026-05-27T02:00:23-03:00"
}