This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"agent": "V41_Risk_Escalation",
|
||||
"ts": "2026-04-20T13:00:02+02:00",
|
||||
"ts": "2026-04-20T13:15:03+02:00",
|
||||
"dg_alerts_active": 7,
|
||||
"wevia_life_stats_preview": "File not found.",
|
||||
"escalation_rules": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"generated_at": "2026-04-20T13:10:02.214136",
|
||||
"generated_at": "2026-04-20T13:20:01.570276",
|
||||
"stats": {
|
||||
"total": 26,
|
||||
"pending": 20,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"status": "ALIVE",
|
||||
"ts": "2026-04-20T13:00:02.039610",
|
||||
"last_heartbeat": "2026-04-20T13:00:02.039610",
|
||||
"last_heartbeat_ts_epoch": 1776682802,
|
||||
"ts": "2026-04-20T13:15:01.854749",
|
||||
"last_heartbeat": "2026-04-20T13:15:01.854749",
|
||||
"last_heartbeat_ts_epoch": 1776683701,
|
||||
"tasks_today": 232,
|
||||
"tasks_week": 574,
|
||||
"agent_id": "blade-ops",
|
||||
|
||||
@@ -1,4 +1,22 @@
|
||||
<?php
|
||||
// V84 cache: 5s TTL to avoid 9s shell_exec cascade
|
||||
$_emcache = '/tmp/em-live-kpi.cache.json';
|
||||
if (file_exists($_emcache) && (time() - filemtime($_emcache)) < 5) {
|
||||
header('Content-Type: application/json');
|
||||
header('X-Cache: HIT');
|
||||
echo file_get_contents($_emcache);
|
||||
exit;
|
||||
}
|
||||
register_shutdown_function(function() use ($_emcache) {
|
||||
// Write cache after output buffered
|
||||
$out = ob_get_clean();
|
||||
if ($out && strlen($out) > 100) {
|
||||
@file_put_contents($_emcache, $out);
|
||||
}
|
||||
echo $out;
|
||||
});
|
||||
ob_start();
|
||||
|
||||
header('Content-Type: application/json');
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
$t0 = microtime(true);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"ok": true,
|
||||
"version": "V83-business-kpi",
|
||||
"ts": "2026-04-20T11:14:23+00:00",
|
||||
"ts": "2026-04-20T11:15:15+00:00",
|
||||
"summary": {
|
||||
"total_categories": 7,
|
||||
"total_kpis": 56,
|
||||
|
||||
@@ -25,7 +25,7 @@ function probe_http($url, $timeout = 3) {
|
||||
curl_setopt_array($ch, [
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_TIMEOUT => $timeout,
|
||||
CURLOPT_NOBODY => true,
|
||||
CURLOPT_NOBODY => false,
|
||||
CURLOPT_SSL_VERIFYPEER => false,
|
||||
CURLOPT_SSL_VERIFYHOST => false,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user