|
| 1 | +{ |
| 2 | + "$schema": "panll-panel/v1", |
| 3 | + "panel_id": "rpa-fs-workflow-monitor", |
| 4 | + "name": "Filesystem Workflow Monitor", |
| 5 | + "description": "Real-time monitoring panel for rpa-fs-workflow automation — watch paths, rule matches, action results", |
| 6 | + "version": "0.1.0", |
| 7 | + "category": "automation", |
| 8 | + "layout": { |
| 9 | + "type": "grid", |
| 10 | + "columns": 4, |
| 11 | + "rows": 5, |
| 12 | + "gap": "8px" |
| 13 | + }, |
| 14 | + "widgets": [ |
| 15 | + { |
| 16 | + "id": "workflow-status", |
| 17 | + "type": "status-indicator", |
| 18 | + "position": { "col": 1, "row": 1, "span_cols": 1 }, |
| 19 | + "label": "Workflow Status", |
| 20 | + "data_source": "rpa-elysium://workflow/status", |
| 21 | + "states": { |
| 22 | + "idle": { "color": "#6b7280", "icon": "pause-circle" }, |
| 23 | + "running": { "color": "#22c55e", "icon": "play-circle" }, |
| 24 | + "paused": { "color": "#f59e0b", "icon": "pause" }, |
| 25 | + "stopped": { "color": "#ef4444", "icon": "stop-circle" }, |
| 26 | + "error": { "color": "#ef4444", "icon": "alert-circle" } |
| 27 | + } |
| 28 | + }, |
| 29 | + { |
| 30 | + "id": "events-processed", |
| 31 | + "type": "counter", |
| 32 | + "position": { "col": 2, "row": 1, "span_cols": 1 }, |
| 33 | + "label": "Events Processed", |
| 34 | + "data_source": "rpa-elysium://workflow/metrics/events_processed", |
| 35 | + "format": "number" |
| 36 | + }, |
| 37 | + { |
| 38 | + "id": "actions-executed", |
| 39 | + "type": "counter", |
| 40 | + "position": { "col": 3, "row": 1, "span_cols": 1 }, |
| 41 | + "label": "Actions Executed", |
| 42 | + "data_source": "rpa-elysium://workflow/metrics/actions_executed", |
| 43 | + "format": "number" |
| 44 | + }, |
| 45 | + { |
| 46 | + "id": "error-count", |
| 47 | + "type": "counter", |
| 48 | + "position": { "col": 4, "row": 1, "span_cols": 1 }, |
| 49 | + "label": "Errors", |
| 50 | + "data_source": "rpa-elysium://workflow/metrics/error_count", |
| 51 | + "format": "number", |
| 52 | + "thresholds": { "warning": 1, "critical": 5 } |
| 53 | + }, |
| 54 | + { |
| 55 | + "id": "watch-paths", |
| 56 | + "type": "table", |
| 57 | + "position": { "col": 1, "row": 2, "span_cols": 2 }, |
| 58 | + "label": "Watch Paths", |
| 59 | + "data_source": "rpa-elysium://workflow/watch_paths", |
| 60 | + "columns": [ |
| 61 | + { "key": "path", "label": "Path" }, |
| 62 | + { "key": "recursive", "label": "Recursive" }, |
| 63 | + { "key": "events_seen", "label": "Events" } |
| 64 | + ] |
| 65 | + }, |
| 66 | + { |
| 67 | + "id": "active-rules", |
| 68 | + "type": "table", |
| 69 | + "position": { "col": 3, "row": 2, "span_cols": 2 }, |
| 70 | + "label": "Active Rules", |
| 71 | + "data_source": "rpa-elysium://workflow/rules", |
| 72 | + "columns": [ |
| 73 | + { "key": "name", "label": "Rule" }, |
| 74 | + { "key": "patterns", "label": "Patterns" }, |
| 75 | + { "key": "match_count", "label": "Matches" }, |
| 76 | + { "key": "enabled", "label": "Enabled" } |
| 77 | + ] |
| 78 | + }, |
| 79 | + { |
| 80 | + "id": "event-timeline", |
| 81 | + "type": "timeline", |
| 82 | + "position": { "col": 1, "row": 3, "span_cols": 4, "span_rows": 1 }, |
| 83 | + "label": "Event Timeline", |
| 84 | + "data_source": "rpa-elysium://workflow/events/timeline", |
| 85 | + "time_range": "1h", |
| 86 | + "event_types": { |
| 87 | + "file_created": { "color": "#22c55e", "icon": "file-plus" }, |
| 88 | + "file_modified": { "color": "#3b82f6", "icon": "file-edit" }, |
| 89 | + "file_deleted": { "color": "#ef4444", "icon": "file-minus" }, |
| 90 | + "file_renamed": { "color": "#8b5cf6", "icon": "file-arrow" } |
| 91 | + } |
| 92 | + }, |
| 93 | + { |
| 94 | + "id": "action-results", |
| 95 | + "type": "event-log", |
| 96 | + "position": { "col": 1, "row": 4, "span_cols": 2, "span_rows": 2 }, |
| 97 | + "label": "Action Results", |
| 98 | + "data_source": "rpa-elysium://workflow/actions/recent", |
| 99 | + "max_entries": 25, |
| 100 | + "show_timestamp": true, |
| 101 | + "columns": [ |
| 102 | + { "key": "action_type", "label": "Action" }, |
| 103 | + { "key": "success", "label": "OK" }, |
| 104 | + { "key": "message", "label": "Message" }, |
| 105 | + { "key": "affected_paths", "label": "Paths" } |
| 106 | + ] |
| 107 | + }, |
| 108 | + { |
| 109 | + "id": "fsm-state-diagram", |
| 110 | + "type": "state-diagram", |
| 111 | + "position": { "col": 3, "row": 4, "span_cols": 2 }, |
| 112 | + "label": "Workflow FSM (proven-fsm)", |
| 113 | + "data_source": "rpa-elysium://workflow/fsm/state", |
| 114 | + "states": ["idle", "running", "paused", "stopped", "error"], |
| 115 | + "transitions": [ |
| 116 | + { "from": "idle", "to": "running", "label": "start" }, |
| 117 | + { "from": "running", "to": "stopped", "label": "stop" }, |
| 118 | + { "from": "running", "to": "error", "label": "fault" }, |
| 119 | + { "from": "error", "to": "idle", "label": "reset" } |
| 120 | + ], |
| 121 | + "highlight_current": true |
| 122 | + }, |
| 123 | + { |
| 124 | + "id": "queue-status", |
| 125 | + "type": "status-indicator", |
| 126 | + "position": { "col": 3, "row": 5, "span_cols": 2 }, |
| 127 | + "label": "HAR Queue Connection (proven-queueconn)", |
| 128 | + "data_source": "rpa-elysium://queue/state", |
| 129 | + "states": { |
| 130 | + "disconnected": { "color": "#6b7280", "icon": "unlink" }, |
| 131 | + "connected": { "color": "#22c55e", "icon": "link" }, |
| 132 | + "consuming": { "color": "#3b82f6", "icon": "download" }, |
| 133 | + "producing": { "color": "#8b5cf6", "icon": "upload" }, |
| 134 | + "failed": { "color": "#ef4444", "icon": "alert-triangle" } |
| 135 | + } |
| 136 | + } |
| 137 | + ], |
| 138 | + "refresh_interval_ms": 2000, |
| 139 | + "permissions": ["read:workflow", "read:events", "read:actions", "read:fsm", "read:queue"] |
| 140 | +} |
0 commit comments