{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Supervisión SHADOW con revisión humana en dos etapas: Producción explica lo ocurrido y MESAVAULT aprueba por separado cualquier contexto retrospectivo. Incluye En consulta, idempotencia y auditoría.", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "type": "value", "options": { "0": { "text": "HEALTHY", "color": "green", "index": 0 }, "1": { "text": "WARNING", "color": "orange", "index": 1 }, "2": { "text": "CRITICAL", "color": "red", "index": 2 }, "3": { "text": "UNKNOWN", "color": "red", "index": 3 } } } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 }, { "color": "red", "value": 2 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 0 }, "id": 1, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n CASE overall_health_status\n WHEN 'HEALTHY' THEN 0\n WHEN 'WARNING' THEN 1\n WHEN 'CRITICAL' THEN 2\n ELSE 3\n END AS \"Estado\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_health_summary_v1", "refId": "A" } ], "title": "Salud general", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "type": "value", "options": { "0": { "text": "HEALTHY", "color": "green", "index": 0 }, "1": { "text": "DELAYED", "color": "orange", "index": 1 }, "2": { "text": "STALE", "color": "red", "index": 2 }, "3": { "text": "ERROR", "color": "red", "index": 3 }, "4": { "text": "NOT INITIALIZED", "color": "red", "index": 4 } } } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 }, { "color": "red", "value": 2 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 4, "y": 0 }, "id": 2, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n CASE sync_health_status\n WHEN 'HEALTHY' THEN 0\n WHEN 'DELAYED' THEN 1\n WHEN 'STALE' THEN 2\n WHEN 'ERROR' THEN 3\n WHEN 'NOT_INITIALIZED' THEN 4\n ELSE 4\n END AS \"Estado\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_health_summary_v1", "refId": "A" } ], "title": "Sincronizador", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 45 }, { "color": "red", "value": 120 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 8, "y": 0 }, "id": 3, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n seconds_since_sync_success AS \"Segundos\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_health_summary_v1", "refId": "A" } ], "title": "Segundos desde sync", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 12, "y": 0 }, "id": 4, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n open_session_count AS \"Sesiones\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_health_summary_v1", "refId": "A" } ], "title": "Sesiones abiertas", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "orange", "value": 1 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 16, "y": 0 }, "id": 5, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n warning_incident_count AS \"Advertencias\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_health_summary_v1", "refId": "A" } ], "title": "Advertencias", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 1 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 20, "y": 0 }, "id": 6, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "value", "wideLayout": true }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n critical_incident_count AS \"Críticas\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_health_summary_v1", "refId": "A" } ], "title": "Críticas", "type": "stat" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Máquina" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Marcha" }, "properties": [ { "id": "custom.width", "value": 75 } ] }, { "matcher": { "id": "byName", "options": "Telemetría" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Orden" }, "properties": [ { "id": "custom.width", "value": 145 } ] }, { "matcher": { "id": "byName", "options": "Workorder" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Operario" }, "properties": [ { "id": "custom.width", "value": 235 } ] }, { "matcher": { "id": "byName", "options": "Estado" }, "properties": [ { "id": "custom.width", "value": 300 } ] }, { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "OK": { "text": "OK", "color": "green", "index": 0 }, "INFO": { "text": "INFO", "color": "blue", "index": 1 }, "WARNING": { "text": "WARNING", "color": "orange", "index": 2 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 3 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.width", "value": 110 } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 4 }, "id": 7, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": false, "displayName": "Máquina" } ] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n machine_id AS \"Máquina\",\n CASE\n WHEN machine_running THEN 'Sí'\n ELSE 'No'\n END AS \"Marcha\",\n CASE\n WHEN telemetry_fresh THEN 'Sí'\n ELSE 'No'\n END AS \"Telemetría\",\n COALESCE(\n published_production_order,\n '—'\n ) AS \"Orden\",\n COALESCE(\n odoo_workorder_id::text,\n NULLIF(published_workorder_id, ''),\n '—'\n ) AS \"Workorder\",\n COALESCE(\n operator_name,\n operator_candidate_name,\n '—'\n ) AS \"Operario\",\n CASE live_context_status\n WHEN 'HEALTHY_OPEN_SESSION'\n THEN 'Produciendo con sesión Shop Floor'\n WHEN 'TEMPORARY_STOP_INSIDE_SESSION'\n THEN 'Parada dentro de sesión'\n WHEN 'RUNNING_WITHOUT_SHOPFLOOR_SESSION'\n THEN 'En marcha sin sesión Shop Floor'\n WHEN 'RUNNING_WITH_ORDER_NO_SHOPFLOOR_SESSION'\n THEN 'En marcha con orden, sin sesión'\n WHEN 'ORDER_WITHOUT_SHOPFLOOR_SESSION'\n THEN 'Orden preparada, sesión no iniciada'\n WHEN 'RUNNING_SESSION_WITHOUT_PUBLISHED_ORDER'\n THEN 'Sesión activa sin orden publicada'\n WHEN 'OPEN_SESSION_WITHOUT_PUBLISHED_ORDER'\n THEN 'Sesión abierta sin orden publicada'\n WHEN 'OPEN_SESSION_ORDER_MISMATCH'\n THEN 'Orden y sesión no coinciden'\n WHEN 'MULTIPLE_OPEN_SESSIONS'\n THEN 'Varias sesiones abiertas'\n WHEN 'OPEN_SESSION_DATA_QUALITY_ERROR'\n THEN 'Error de calidad en sesión'\n WHEN 'IDLE_NO_ACTIVE_CONTEXT'\n THEN 'Inactiva sin contexto'\n ELSE live_context_status\n END AS \"Estado\",\n CASE live_severity\n WHEN 'OK' THEN 'OK'\n WHEN 'INFO' THEN 'INFO'\n WHEN 'WARNING' THEN 'WARNING'\n WHEN 'CRITICAL' THEN 'CRITICAL'\n ELSE live_severity\n END AS \"Severidad\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_machine_live_context_v1\nORDER BY machine_id", "refId": "A" } ], "title": "Estado vivo por máquina", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Hora" }, "properties": [ { "id": "custom.width", "value": 175 } ] }, { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Máquina" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Situación" }, "properties": [ { "id": "custom.width", "value": 420 } ] }, { "matcher": { "id": "byName", "options": "Orden" }, "properties": [ { "id": "custom.width", "value": 145 } ] }, { "matcher": { "id": "byName", "options": "Operario" }, "properties": [ { "id": "custom.width", "value": 220 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 13 }, "id": 8, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n observed_at AS \"Hora\",\n severity AS \"Severidad\",\n COALESCE(machine_id, '—') AS \"Máquina\",\n CASE incident_code\n WHEN 'RUNNING_WITHOUT_SHOPFLOOR_SESSION'\n THEN 'Máquina en marcha sin orden ni sesión Shop Floor'\n WHEN 'RUNNING_WITH_ORDER_NO_SHOPFLOOR_SESSION'\n THEN 'Máquina en marcha con orden, pero sin sesión Shop Floor'\n WHEN 'ORDER_WITHOUT_SHOPFLOOR_SESSION'\n THEN 'Orden publicada sin sesión Shop Floor'\n WHEN 'RUNNING_SESSION_WITHOUT_PUBLISHED_ORDER'\n THEN 'Sesión abierta y máquina en marcha, pero sin orden publicada'\n WHEN 'OPEN_SESSION_WITHOUT_PUBLISHED_ORDER'\n THEN 'Sesión abierta sin orden publicada'\n WHEN 'OPEN_SESSION_ORDER_MISMATCH'\n THEN 'La orden publicada no coincide con la sesión abierta'\n WHEN 'MULTIPLE_OPEN_SESSIONS'\n THEN 'Existen varias sesiones abiertas en la misma máquina'\n WHEN 'OPEN_SESSION_DATA_QUALITY_ERROR'\n THEN 'La sesión abierta presenta un error de calidad'\n WHEN 'SHOPFLOOR_SYNC_DELAYED'\n THEN 'La sincronización Shop Floor está retrasada'\n WHEN 'SHOPFLOOR_SYNC_STALE'\n THEN 'La sincronización Shop Floor está obsoleta'\n WHEN 'SHOPFLOOR_SYNC_ERROR'\n THEN 'El sincronizador Shop Floor ha registrado un error'\n WHEN 'SHOPFLOOR_SYNC_NOT_INITIALIZED'\n THEN 'El sincronizador Shop Floor no está inicializado'\n ELSE incident_code\n END AS \"Situación\",\n COALESCE(production_order, '—') AS \"Orden\",\n COALESCE(operator_name, '—') AS \"Operario\",\n recommended_action AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_incidents_v1\nORDER BY\n CASE severity\n WHEN 'CRITICAL' THEN 1\n WHEN 'WARNING' THEN 2\n ELSE 3\n END,\n machine_id NULLS FIRST,\n incident_code", "refId": "A" } ], "title": "Incidencias activas", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Máquina" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Orden" }, "properties": [ { "id": "custom.width", "value": 145 } ] }, { "matcher": { "id": "byName", "options": "Workorder" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Operario" }, "properties": [ { "id": "custom.width", "value": 235 } ] }, { "matcher": { "id": "byName", "options": "Minutos abierta" }, "properties": [ { "id": "unit", "value": "m" }, { "id": "custom.width", "value": 125 } ] }, { "matcher": { "id": "byName", "options": "Paro abierto min" }, "properties": [ { "id": "unit", "value": "m" }, { "id": "custom.width", "value": 125 } ] }, { "matcher": { "id": "byName", "options": "Estado" }, "properties": [ { "id": "custom.width", "value": 300 } ] }, { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "OK": { "text": "OK", "color": "green", "index": 0 }, "INFO": { "text": "INFO", "color": "blue", "index": 1 }, "WARNING": { "text": "WARNING", "color": "orange", "index": 2 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 3 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.width", "value": 110 } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 23 }, "id": 9, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n machine_id AS \"Máquina\",\n production_order AS \"Orden\",\n odoo_workorder_id AS \"Workorder\",\n COALESCE(\n operator_name,\n operator_candidate_name,\n '—'\n ) AS \"Operario\",\n session_started_at AS \"Inicio\",\n session_age_min AS \"Minutos abierta\",\n CASE\n WHEN machine_running THEN 'Sí'\n ELSE 'No'\n END AS \"Marcha\",\n COALESCE(\n open_stop_duration_min,\n 0\n ) AS \"Paro abierto min\",\n CASE watch_status\n WHEN 'HEALTHY_OPEN_SESSION'\n THEN 'Produciendo con sesión Shop Floor'\n WHEN 'TEMPORARY_STOP_INSIDE_SESSION'\n THEN 'Parada dentro de sesión'\n WHEN 'RUNNING_SESSION_WITHOUT_PUBLISHED_ORDER'\n THEN 'Sesión activa sin orden publicada'\n WHEN 'OPEN_SESSION_WITHOUT_PUBLISHED_ORDER'\n THEN 'Sesión abierta sin orden publicada'\n WHEN 'OPEN_SESSION_ORDER_MISMATCH'\n THEN 'Orden y sesión no coinciden'\n WHEN 'MULTIPLE_OPEN_SESSIONS'\n THEN 'Varias sesiones abiertas'\n WHEN 'OPEN_SESSION_DATA_QUALITY_ERROR'\n THEN 'Error de calidad en sesión'\n ELSE watch_status\n END AS \"Estado\",\n watch_severity AS \"Severidad\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_open_session_watch_v1\nORDER BY machine_id, session_started_at", "refId": "A" } ], "title": "Sesiones abiertas", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Máquina" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Orden" }, "properties": [ { "id": "custom.width", "value": 145 } ] }, { "matcher": { "id": "byName", "options": "Workorder" }, "properties": [ { "id": "custom.width", "value": 95 } ] }, { "matcher": { "id": "byName", "options": "Operario" }, "properties": [ { "id": "custom.width", "value": 235 } ] }, { "matcher": { "id": "byName", "options": "Calidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "OK": { "text": "OK", "color": "green", "index": 0 }, "WARNING": { "text": "WARNING", "color": "orange", "index": 1 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 2 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.width", "value": 100 } ] }, { "matcher": { "id": "byName", "options": "Incidencias" }, "properties": [ { "id": "custom.width", "value": 280 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 32 }, "id": 10, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n machine_id AS \"Máquina\",\n production_order AS \"Orden\",\n odoo_workorder_id AS \"Workorder\",\n CASE session_status\n WHEN 'OPEN' THEN 'Abierta'\n WHEN 'CLOSED' THEN 'Cerrada'\n WHEN 'PENDING' THEN 'Pendiente'\n ELSE session_status\n END AS \"Sesión\",\n workorder_state AS \"Estado Odoo\",\n COALESCE(\n operator_name,\n operator_candidate_name,\n '—'\n ) AS \"Operario\",\n operator_confirmation_status\n AS \"Confirmación operario\",\n quantity_confirmation_status\n AS \"Confirmación cantidad\",\n confidence AS \"Confianza\",\n dq_status AS \"Calidad\",\n COALESCE(\n NULLIF(\n array_to_string(\n issue_codes,\n ', '\n ),\n ''\n ),\n 'Sin incidencias'\n ) AS \"Incidencias\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_session_data_quality_v1\nORDER BY\n CASE dq_status\n WHEN 'CRITICAL' THEN 1\n WHEN 'WARNING' THEN 2\n ELSE 3\n END,\n COALESCE(ended_at, started_at) DESC NULLS LAST,\n odoo_workorder_id DESC\nLIMIT 50", "refId": "A" } ], "title": "Calidad de sesiones", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Situación" }, "properties": [ { "id": "custom.width", "value": 420 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 42 }, "id": 11, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n backlog_rank AS \"Prioridad\",\n episode_id AS \"Episodio\",\n CASE episode_status\n WHEN 'OPEN' THEN 'Abierto'\n ELSE 'Cerrado'\n END AS \"Estado\",\n max_severity AS \"Severidad\",\n first_seen_at AS \"Primera observación\",\n episode_duration_min AS \"Duración min\",\n COALESCE(machine_id, '—') AS \"Máquina\",\n incident_title AS \"Situación\",\n COALESCE(production_order, '—') AS \"Orden\",\n CASE review_owner\n WHEN 'PRODUCTION' THEN 'Producción'\n ELSE 'Técnico'\n END AS \"Responsable\",\n latest_recommended_action AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_incident_backlog_v1\nORDER BY backlog_rank\nLIMIT 50", "refId": "A" } ], "title": "Evidencias técnicas pendientes · auditoría", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Situación" }, "properties": [ { "id": "custom.width", "value": 420 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 52 }, "id": 12, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n episode_id AS \"Episodio\",\n CASE episode_status\n WHEN 'OPEN' THEN 'Abierto'\n ELSE 'Cerrado'\n END AS \"Estado\",\n max_severity AS \"Severidad\",\n first_seen_at AS \"Inicio observado\",\n ended_at AS \"Fin observado\",\n episode_duration_min AS \"Duración min\",\n COALESCE(machine_id, '—') AS \"Máquina\",\n incident_title AS \"Situación\",\n COALESCE(production_order, '—') AS \"Orden\",\n CASE review_status\n WHEN 'PENDING' THEN 'Pendiente'\n WHEN 'REVIEWED' THEN 'Revisado'\n WHEN 'DISMISSED' THEN 'Descartado'\n ELSE 'No requerido'\n END AS \"Revisión\",\n COALESCE(review_classification, '—')\n AS \"Clasificación\",\n COALESCE(reviewed_by, '—') AS \"Revisado por\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_incident_history_v1\nWHERE first_seen_at >= now() - interval '24 hours'\nORDER BY first_seen_at DESC\nLIMIT 100", "refId": "A" } ], "title": "Historial de incidencias · últimas 24 horas", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Tipo" }, "properties": [ { "id": "custom.width", "value": 460 } ] }, { "matcher": { "id": "byName", "options": "Severidad máxima" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-text" } } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 62 }, "id": 13, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n local_day AS \"Día\",\n COALESCE(machine_id, '—') AS \"Máquina\",\n incident_title AS \"Tipo\",\n episode_count AS \"Episodios\",\n open_episode_count AS \"Abiertos\",\n pending_review_count AS \"Pendientes\",\n observed_minutes AS \"Minutos observados\",\n average_episode_minutes AS \"Media min\",\n max_severity AS \"Severidad máxima\"\nFROM\n mv_reports_ucepsa_prod\n .li_shopfloor_context_incident_daily_summary_v1\nWHERE local_day >=\n (\n now()\n AT TIME ZONE 'Europe/Madrid'\n )::date - 6\nORDER BY\n local_day DESC,\n machine_id NULLS FIRST,\n incident_title", "refId": "A" } ], "title": "Resumen diario de incidencias · últimos 7 días", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Salud" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "OK": { "text": "OK", "color": "green", "index": 0 }, "INFO": { "text": "INFO", "color": "blue", "index": 1 }, "WARNING": { "text": "WARNING", "color": "orange", "index": 2 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 3 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Contexto canónico" }, "properties": [ { "id": "custom.width", "value": 290 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 71 }, "id": 14, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n machine_id AS \"Máquina\",\n CASE\n WHEN machine_running THEN 'Sí'\n ELSE 'No'\n END AS \"Marcha\",\n CASE canonical_context_status\n WHEN 'ODOO_SHOPFLOOR'\n THEN 'Odoo Shop Floor'\n WHEN 'LEGACY_ERP'\n THEN 'Producción legacy autorizada'\n WHEN 'MANUAL_AUTHORIZED'\n THEN 'Producción manual autorizada'\n WHEN 'MAINTENANCE'\n THEN 'Mantenimiento'\n WHEN 'TEST_SETUP'\n THEN 'Prueba / ajuste'\n WHEN 'UNCONFIRMED_CONTEXT'\n THEN 'Actividad sin contexto confirmado'\n WHEN 'CONTEXT_CONFLICT'\n THEN 'Conflicto de contextos'\n WHEN 'NO_ACTIVE_CONTEXT'\n THEN 'Sin contexto activo'\n ELSE canonical_context_status\n END AS \"Contexto canónico\",\n COALESCE(\n canonical_order_ref,\n '—'\n ) AS \"Orden\",\n COALESCE(\n canonical_odoo_workorder_id::text,\n '—'\n ) AS \"Workorder\",\n COALESCE(\n operator_name,\n operator_candidate_name,\n '—'\n ) AS \"Operario\",\n authoritative_candidate_count\n AS \"Fuentes autoritativas\",\n order_alignment_status\n AS \"Coherencia Odoo\",\n canonical_health_status\n AS \"Salud\",\n recommended_action\n AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_machine_canonical_context_live_v1\nORDER BY machine_id", "refId": "A" } ], "title": "Contexto canónico vivo por máquina", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Tipo de conflicto" }, "properties": [ { "id": "custom.width", "value": 330 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 81 }, "id": 15, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n segment_from AS \"Inicio\",\n segment_to AS \"Fin\",\n ROUND(\n segment_duration_s / 60.0,\n 2\n ) AS \"Duración min\",\n machine_id AS \"Máquina\",\n conflict_type AS \"Tipo de conflicto\",\n array_to_string(\n authoritative_context_sources,\n ', '\n ) AS \"Fuentes\",\n array_to_string(\n authoritative_context_keys,\n ', '\n ) AS \"Claves\",\n recommended_action AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_arbitration_conflicts_v1\nWHERE segment_to >=\n now() - interval '24 hours'\nORDER BY segment_from DESC\nLIMIT 100", "refId": "A" } ], "title": "Conflictos de arbitraje · últimas 24 horas", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Contexto" }, "properties": [ { "id": "custom.width", "value": 260 } ] } ] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 90 }, "id": 16, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n machine_id AS \"Máquina\",\n CASE canonical_context_status\n WHEN 'ODOO_SHOPFLOOR'\n THEN 'Odoo Shop Floor'\n WHEN 'LEGACY_ERP'\n THEN 'Legacy autorizada'\n WHEN 'MANUAL_AUTHORIZED'\n THEN 'Manual autorizada'\n WHEN 'MAINTENANCE'\n THEN 'Mantenimiento'\n WHEN 'TEST_SETUP'\n THEN 'Prueba / ajuste'\n WHEN 'UNCONFIRMED_CONTEXT'\n THEN 'Sin confirmar'\n WHEN 'CONTEXT_CONFLICT'\n THEN 'Conflicto'\n ELSE canonical_context_status\n END AS \"Contexto\",\n segment_count AS \"Segmentos\",\n review_segment_count AS \"A revisar\",\n hours AS \"Horas\",\n machine_activity_pct AS \"% actividad\"\nFROM\n mv_reports_ucepsa_prod\n .li_canonical_context_coverage_v1\nORDER BY\n machine_id,\n hours DESC", "refId": "A" } ], "title": "Cobertura de contexto canónico · últimos 30 días", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Readiness" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "READY_FOR_CONTROLLED_SHADOW": { "text": "READY SHADOW", "color": "green", "index": 0 }, "TECHNICAL_BLOCKED": { "text": "BLOQUEO TÉCNICO", "color": "red", "index": 1 }, "INSUFFICIENT_OBSERVATION": { "text": "FALTA OBSERVACIÓN", "color": "blue", "index": 2 }, "REVIEW_BACKLOG": { "text": "REVISIÓN PENDIENTE", "color": "orange", "index": 3 }, "COVERAGE_NOT_READY": { "text": "COBERTURA INSUFICIENTE", "color": "orange", "index": 4 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 185 } ] }, { "matcher": { "id": "byName", "options": "Siguiente acción" }, "properties": [ { "id": "custom.width", "value": 540 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 99 }, "id": 17, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n machine_id AS \"Máquina\",\n observed_activity_hours AS \"Horas observadas\",\n confirmed_context_pct AS \"% confirmado\",\n unconfirmed_context_pct AS \"% sin confirmar\",\n pending_decision_group_count\n AS \"Decisiones pendientes\",\n pending_root_case_count\n AS \"Casos raíz pendientes\",\n pending_review_count\n AS \"Evidencias pendientes\",\n oldest_pending_decision_group_hours\n AS \"Antigüedad decisión h\",\n recent_conflict_minutes AS \"Conflicto min\",\n critical_session_dq_count AS \"DQ crítica\",\n readiness_status AS \"Readiness\",\n next_action AS \"Siguiente acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_canonical_context_readiness_gate_v3\nORDER BY machine_id", "refId": "A" } ], "title": "Readiness por máquina · decisiones humanas", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "INFO": { "text": "INFO", "color": "blue", "index": 0 }, "WARNING": { "text": "WARNING", "color": "orange", "index": 1 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 2 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-text" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 540 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 109 }, "id": 18, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n machine_id AS \"Máquina\",\n blocker_severity AS \"Severidad\",\n blocker_code AS \"Criterio\",\n current_value AS \"Valor actual\",\n target_value AS \"Objetivo\",\n recommended_action AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_rollout_blockers_v3\nORDER BY\n CASE blocker_severity\n WHEN 'CRITICAL' THEN 1\n WHEN 'WARNING' THEN 2\n ELSE 3\n END,\n machine_id,\n blocker_code", "refId": "A" } ], "title": "Bloqueos de rollout", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 119 }, "id": 19, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n overall_readiness_status AS \"Estado global\",\n machine_count AS \"Máquinas\",\n ready_machine_count AS \"Ready SHADOW\",\n technical_blocked_machine_count\n AS \"Bloqueo técnico\",\n insufficient_observation_machine_count\n AS \"Falta observación\",\n review_backlog_machine_count\n AS \"Revisión pendiente\",\n coverage_not_ready_machine_count\n AS \"Cobertura insuficiente\",\n pending_decision_group_count\n AS \"Decisiones pendientes\",\n pending_root_case_count\n AS \"Casos raíz pendientes\",\n pending_episode_review_count\n AS \"Evidencias pendientes\",\n blocker_count AS \"Bloqueos\",\n critical_blocker_count AS \"Bloqueos críticos\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_rollout_readiness_summary_v3", "refId": "A" } ], "title": "Resumen de readiness del contexto canónico", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Problema raíz" }, "properties": [ { "id": "custom.width", "value": 380 } ] }, { "matcher": { "id": "byName", "options": "Pregunta" }, "properties": [ { "id": "custom.width", "value": 520 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 11, "w": 24, "x": 0, "y": 126 }, "id": 20, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n backlog_rank AS \"Prioridad\",\n case_id AS \"Caso\",\n CASE case_status\n WHEN 'OPEN' THEN 'Abierto'\n ELSE 'Cerrado'\n END AS \"Estado\",\n max_severity AS \"Severidad\",\n machine_id AS \"Máquina\",\n case_title AS \"Problema raíz\",\n array_to_string(\n production_orders,\n ', '\n ) AS \"Órdenes\",\n array_to_string(\n odoo_workorder_ids,\n ', '\n ) AS \"Workorders\",\n linked_evidence_count AS \"Evidencias\",\n CASE review_owner\n WHEN 'PRODUCTION' THEN 'Producción'\n WHEN 'TECHNICAL' THEN 'Técnico'\n ELSE 'Conjunto'\n END AS \"Responsable\",\n first_seen_at AS \"Inicio\",\n case_duration_min AS \"Duración min\",\n question_text AS \"Pregunta\",\n recommended_action AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_review_case_backlog_v1\nORDER BY backlog_rank\nLIMIT 50", "refId": "A" } ], "title": "Casos raíz pendientes de revisión", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Evidencia" }, "properties": [ { "id": "custom.width", "value": 420 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 137 }, "id": 21, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n case_id AS \"Caso\",\n evidence_role AS \"Rol\",\n episode_id AS \"Episodio\",\n incident_scope AS \"Ámbito\",\n incident_title AS \"Evidencia\",\n COALESCE(\n production_order,\n '—'\n ) AS \"Orden\",\n COALESCE(\n odoo_workorder_id::text,\n '—'\n ) AS \"Workorder\",\n episode_status AS \"Estado\",\n episode_duration_min AS \"Duración min\",\n episode_severity AS \"Severidad\",\n episode_review_status AS \"Revisión\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_review_case_evidence_v1\nWHERE case_review_status =\n 'PENDING'\nORDER BY\n case_id,\n episode_id\nLIMIT 200", "refId": "A" } ], "title": "Evidencias asociadas a los casos raíz", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Problema raíz" }, "properties": [ { "id": "custom.width", "value": 420 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 147 }, "id": 22, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n case_id AS \"Caso\",\n CASE case_status\n WHEN 'OPEN' THEN 'Abierto'\n ELSE 'Cerrado'\n END AS \"Estado\",\n max_severity AS \"Severidad\",\n machine_id AS \"Máquina\",\n case_title AS \"Problema raíz\",\n first_seen_at AS \"Inicio\",\n ended_at AS \"Fin\",\n case_duration_min AS \"Duración min\",\n linked_evidence_count AS \"Evidencias\",\n review_status AS \"Revisión\",\n COALESCE(\n resolution_classification,\n '—'\n ) AS \"Resolución\",\n COALESCE(\n selected_order_ref,\n '—'\n ) AS \"Orden válida\",\n COALESCE(\n selected_workorder_id::text,\n '—'\n ) AS \"WO válido\",\n COALESCE(\n reviewed_by,\n '—'\n ) AS \"Revisado por\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_review_case_history_v1\nWHERE first_seen_at >=\n now() - interval '7 days'\nORDER BY first_seen_at DESC\nLIMIT 100", "refId": "A" } ], "title": "Historial de casos raíz · últimos 7 días", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Pregunta operativa" }, "properties": [ { "id": "custom.width", "value": 400 } ] }, { "matcher": { "id": "byName", "options": "Pregunta" }, "properties": [ { "id": "custom.width", "value": 520 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 11, "w": 24, "x": 0, "y": 157 }, "id": 23, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n agenda_rank AS \"Prioridad\",\n machine_id AS \"Máquina\",\n CASE incident_status\n WHEN 'ACTIVE' THEN 'Activa'\n ELSE 'Terminada'\n END AS \"Incidencia\",\n CASE workflow_status\n WHEN 'IN_CONSULTATION' THEN 'En consulta'\n ELSE 'Pendiente'\n END AS \"Revisión\",\n CASE max_severity\n WHEN 'CRITICAL' THEN 'Crítica'\n ELSE 'Aviso'\n END AS \"Severidad\",\n decision_title AS \"Pregunta operativa\",\n pending_root_case_count AS \"Casos pendientes\",\n linked_episode_count AS \"Evidencias\",\n array_to_string(production_orders, ', ') AS \"Órdenes\",\n array_to_string(odoo_workorder_ids, ', ') AS \"Workorders\",\n CASE review_owner\n WHEN 'PRODUCTION' THEN 'Producción'\n WHEN 'TECHNICAL' THEN 'Técnico'\n ELSE 'Conjunto'\n END AS \"Responsable\",\n first_seen_at AS \"Inicio\",\n ended_at AS \"Fin\",\n consultation_reason AS \"Consulta pendiente\",\n question_text AS \"Pregunta\",\n recommended_action AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_governance_ui_queue_v2\nORDER BY agenda_rank\nLIMIT 50", "refId": "A" } ], "title": "Decisiones pendientes de revisión", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Caso" }, "properties": [ { "id": "custom.width", "value": 400 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 168 }, "id": 24, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n decision_group_key AS \"Decisión\",\n decision_case_role AS \"Rol\",\n case_id AS \"Caso raíz\",\n case_title AS \"Caso\",\n case_status AS \"Estado\",\n case_severity AS \"Severidad\",\n first_seen_at AS \"Inicio\",\n ended_at AS \"Fin\",\n case_duration_min AS \"Duración min\",\n array_to_string(\n production_orders,\n ', '\n ) AS \"Órdenes\",\n array_to_string(\n odoo_workorder_ids,\n ', '\n ) AS \"Workorders\",\n linked_evidence_count AS \"Evidencias\",\n case_review_status AS \"Revisión\",\n COALESCE(\n case_resolution_classification,\n '—'\n ) AS \"Resolución\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_decision_group_cases_v1\nWHERE decision_review_status =\n 'PENDING'\nORDER BY\n decision_group_key,\n case_id\nLIMIT 200", "refId": "A" } ], "title": "Casos raíz incluidos en cada decisión", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } }, { "id": "custom.width", "value": 110 } ] }, { "matcher": { "id": "byName", "options": "Pregunta operativa" }, "properties": [ { "id": "custom.width", "value": 420 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 178 }, "id": 25, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n decision_group_key AS \"Decisión\",\n CASE decision_status\n WHEN 'OPEN' THEN 'Abierta'\n ELSE 'Cerrada'\n END AS \"Estado\",\n max_severity AS \"Severidad\",\n machine_id AS \"Máquina\",\n decision_title AS \"Pregunta operativa\",\n first_seen_at AS \"Inicio\",\n ended_at AS \"Fin\",\n decision_duration_min AS \"Duración min\",\n linked_root_case_count AS \"Casos raíz\",\n pending_root_case_count AS \"Pendientes\",\n review_status AS \"Revisión\",\n COALESCE(\n resolution_classification,\n '—'\n ) AS \"Resolución\",\n COALESCE(\n selected_order_ref,\n '—'\n ) AS \"Orden válida\",\n COALESCE(\n selected_workorder_id::text,\n '—'\n ) AS \"WO válido\",\n COALESCE(\n reviewed_by,\n '—'\n ) AS \"Revisado por\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_decision_group_history_v1\nWHERE first_seen_at >=\n now() - interval '7 days'\nORDER BY first_seen_at DESC\nLIMIT 100", "refId": "A" } ], "title": "Historial de decisiones humanas · últimos 7 días", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Severidad" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "WARNING": { "text": "WARNING", "color": "orange", "index": 0 }, "CRITICAL": { "text": "CRITICAL", "color": "red", "index": 1 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "Atención" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "RECENT": { "text": "Reciente", "color": "green", "index": 0 }, "ATTENTION": { "text": "Atención", "color": "orange", "index": 1 }, "OVERDUE": { "text": "Vencida", "color": "red", "index": 2 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "Decisión" }, "properties": [ { "id": "custom.width", "value": 400 } ] }, { "matcher": { "id": "byName", "options": "Pregunta" }, "properties": [ { "id": "custom.width", "value": 520 } ] }, { "matcher": { "id": "byName", "options": "Acción" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 188 }, "id": 26, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n agenda_rank AS \"Prioridad\",\n CASE max_severity\n WHEN 'CRITICAL' THEN 'Crítica'\n ELSE 'Aviso'\n END AS \"Severidad\",\n attention_status AS \"Atención\",\n machine_id AS \"Máquina\",\n CASE incident_status\n WHEN 'ACTIVE' THEN 'Activa'\n ELSE 'Terminada'\n END AS \"Incidencia\",\n CASE workflow_status\n WHEN 'IN_CONSULTATION' THEN 'En consulta'\n ELSE 'Pendiente'\n END AS \"Revisión\",\n decision_title AS \"Decisión\",\n CASE review_owner\n WHEN 'PRODUCTION' THEN 'Producción'\n WHEN 'TECHNICAL' THEN 'Técnico'\n ELSE 'Conjunto'\n END AS \"Responsable\",\n pending_age_hours AS \"Antigüedad h\",\n review_due_at AS \"Límite\",\n pending_root_case_count AS \"Casos pendientes\",\n linked_episode_count AS \"Evidencias\",\n consultation_reason AS \"Consulta pendiente\",\n question_text AS \"Pregunta\",\n recommended_action AS \"Acción\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_governance_ui_queue_v2\nORDER BY agenda_rank\nLIMIT 50", "refId": "A" } ], "title": "Agenda diaria de gobernanza", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 200 }, "id": 27, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n decision_group_key AS \"Decisión\",\n machine_id AS \"Máquina\",\n linked_root_case_count AS \"Casos raíz\",\n linked_episode_count AS \"Episodios\",\n array_to_string(\n root_case_ids,\n ', '\n ) AS \"IDs casos\",\n array_to_string(\n episode_ids,\n ', '\n ) AS \"IDs episodios\",\n array_to_string(\n incident_codes,\n ', '\n ) AS \"Códigos\",\n array_to_string(\n operator_names,\n ', '\n ) AS \"Operarios\",\n array_to_string(\n known_resolution_classifications,\n ', '\n ) AS \"Resolución conocida\",\n evidence_first_seen_at AS \"Primera evidencia\",\n evidence_last_seen_at AS \"Última evidencia\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_governance_decision_evidence_pack_v1\nWHERE review_status =\n 'PENDING'\nORDER BY\n CASE max_severity\n WHEN 'CRITICAL' THEN 1\n ELSE 2\n END,\n first_seen_at\nLIMIT 50", "refId": "A" } ], "title": "Paquete de evidencia por decisión", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 210 }, "id": 28, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n agenda_local_date AS \"Fecha\",\n pending_decision_count AS \"Decisiones pendientes\",\n pending_critical_decision_count AS \"Críticas\",\n attention_decision_count AS \"Atención\",\n overdue_decision_count AS \"Vencidas\",\n production_pending_count AS \"Producción\",\n technical_pending_count AS \"Técnico\",\n joint_pending_count AS \"Conjunto\",\n pending_root_case_count AS \"Casos raíz\",\n linked_episode_count AS \"Evidencias\",\n decisions_first_seen_today AS \"Nuevas hoy\",\n decisions_reviewed_today AS \"Resueltas hoy\",\n average_review_resolution_hours AS \"Resolución media h\",\n evidence_per_pending_decision AS \"Evidencias por decisión\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_governance_daily_summary_v1", "refId": "A" } ], "title": "Indicadores de gobernanza diaria", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Estado" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "PASS": { "text": "PASS", "color": "green", "index": 0 }, "WARN": { "text": "WARN", "color": "orange", "index": 1 }, "FAIL": { "text": "FAIL", "color": "red", "index": 2 }, "ERROR": { "text": "ERROR", "color": "red", "index": 3 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } } ] } ] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 218 }, "id": 29, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n run_id AS \"Ejecución\",\n suite_version AS \"Suite\",\n overall_status AS \"Estado\",\n triggered_by AS \"Disparada por\",\n trigger_kind AS \"Tipo\",\n started_at AS \"Inicio\",\n finished_at AS \"Fin\",\n duration_ms AS \"Duración ms\",\n result_count AS \"Tests\",\n pass_count AS \"PASS\",\n warn_count AS \"WARN\",\n fail_count AS \"FAIL\",\n error_count AS \"ERROR\",\n source_git_commit AS \"Commit\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_regression_latest_run_v1", "refId": "A" } ], "title": "Última ejecución de regresión", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Estado" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "PASS": { "text": "PASS", "color": "green", "index": 0 }, "WARN": { "text": "WARN", "color": "orange", "index": 1 }, "FAIL": { "text": "FAIL", "color": "red", "index": 2 }, "ERROR": { "text": "ERROR", "color": "red", "index": 3 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "Contrato" }, "properties": [ { "id": "custom.width", "value": 420 } ] }, { "matcher": { "id": "byName", "options": "Detalle" }, "properties": [ { "id": "custom.width", "value": 520 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 226 }, "id": 30, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n test_code AS \"Test\",\n test_group AS \"Grupo\",\n test_title AS \"Contrato\",\n status AS \"Estado\",\n severity AS \"Severidad\",\n detail AS \"Detalle\",\n actual_json::text AS \"Resultado\",\n duration_ms AS \"Duración ms\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_regression_failures_v1\nORDER BY\n CASE status\n WHEN 'ERROR' THEN 1\n WHEN 'FAIL' THEN 2\n ELSE 3\n END,\n test_code", "refId": "A" } ], "title": "Warnings y fallos de regresión", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Estado" }, "properties": [ { "id": "mappings", "value": [ { "type": "value", "options": { "PASS": { "text": "PASS", "color": "green", "index": 0 }, "WARN": { "text": "WARN", "color": "orange", "index": 1 }, "FAIL": { "text": "FAIL", "color": "red", "index": 2 }, "ERROR": { "text": "ERROR", "color": "red", "index": 3 } } } ] }, { "id": "custom.cellOptions", "value": { "type": "color-background" } } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 236 }, "id": 31, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n run_id AS \"Ejecución\",\n overall_status AS \"Estado\",\n triggered_by AS \"Disparada por\",\n trigger_kind AS \"Tipo\",\n started_at AS \"Inicio\",\n duration_ms AS \"Duración ms\",\n result_count AS \"Tests\",\n pass_count AS \"PASS\",\n warn_count AS \"WARN\",\n fail_count AS \"FAIL\",\n error_count AS \"ERROR\",\n source_git_commit AS \"Commit\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_regression_run_history_v1\nORDER BY\n started_at DESC,\n run_id DESC\nLIMIT 50", "refId": "A" } ], "title": "Histórico de regresión · 30 días", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 246 }, "id": 32, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n approval_rank AS \"Prioridad\",\n proposal_id AS \"Propuesta\",\n machine_id AS \"Máquina\",\n CASE proposed_source_type\n WHEN 'LEGACY_ERP' THEN 'Sistema antiguo'\n WHEN 'TEST_SETUP' THEN 'Prueba o ajuste'\n WHEN 'MAINTENANCE' THEN 'Mantenimiento'\n ELSE proposed_source_type\n END AS \"Contexto propuesto\",\n CASE proposal_status\n WHEN 'PENDING' THEN 'Pendiente'\n WHEN 'NEEDS_CLARIFICATION' THEN 'Requiere aclaración'\n ELSE proposal_status\n END AS \"Estado\",\n first_seen_at AS \"Inicio\",\n ended_at AS \"Fin\",\n proposed_by_display_name AS \"Propuesto por\",\n case_id AS \"Caso\",\n last_action_notes AS \"Último intercambio\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_governance_context_approval_queue_v1\nORDER BY approval_rank\nLIMIT 100", "refId": "A" } ], "title": "Contextos pendientes de aprobación", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 256 }, "id": 33, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n agenda_rank AS \"Prioridad\",\n machine_id AS \"Máquina\",\n decision_title AS \"Decisión\",\n CASE incident_status\n WHEN 'ACTIVE' THEN 'Activa'\n ELSE 'Terminada'\n END AS \"Incidencia\",\n consultation_reason AS \"Información pendiente\",\n follow_up_with AS \"Consultar con\",\n consultation_created_by AS \"Marcado por\",\n consultation_created_at AS \"Desde\",\n first_seen_at AS \"Inicio del caso\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_governance_ui_queue_v2\nWHERE workflow_status = 'IN_CONSULTATION'\nORDER BY agenda_rank\nLIMIT 100", "refId": "A" } ], "title": "Decisiones en consulta", "type": "table" }, { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "fieldConfig": { "defaults": { "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "filterable": true, "inspect": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 266 }, "id": 34, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "11.0.0", "targets": [ { "datasource": { "type": "postgres", "uid": "bfnbcasbm6hhca" }, "editorMode": "code", "format": "table", "rawQuery": true, "rawSql": "SELECT\n created_at AS \"Fecha\",\n activity_type AS \"Tipo\",\n actor_display_name AS \"Usuario\",\n decision_group_key AS \"Decisión\",\n proposal_id AS \"Propuesta\",\n action_code AS \"Acción\",\n status AS \"Estado\",\n notes AS \"Notas\"\nFROM\n mv_reports_ucepsa_prod\n .li_context_governance_ui_activity_v1\nORDER BY created_at DESC\nLIMIT 200", "refId": "A" } ], "title": "Actividad de la interfaz · 30 días", "type": "table" } ], "refresh": "15s", "schemaVersion": 42, "tags": [ "mesavault", "ucepsa", "shop-floor", "context-health", "shadow", "presentation-v0362", "incident-history", "v037", "canonical-context", "arbitration", "v038", "readiness", "rollout-gate", "v039", "root-cases", "human-governance", "v0310", "decision-groups", "temporal-consolidation", "v0311", "daily-governance", "agenda", "evidence-pack", "v0312", "regression", "hardening", "contracts", "v0313", "v03131", "governance-ui", "human-review", "v0314", "two-stage-approval", "consultation", "v0315" ], "templating": { "list": [] }, "time": { "from": "now-12h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "MESAVAULT — UCEPSA · Salud y contexto Shop Floor", "uid": "ucepsa-shopfloor-context-health", "version": 1, "weekStart": "" }