Files

96 lines
3.1 KiB
JSON

{
"schema": 1,
"id": "performance",
"name": "Performance",
"version": "1.2.0",
"description": "CPU and memory of the agents and of what they start, what ended conversations left running, and what sessions keep on disk",
"category": "data",
"icon": "icon.svg",
"color": "#435065",
"author": "gabrielvidal",
"ui": {
"pages": [
{
"id": "performance",
"label": "Performance",
"nav": "dashboards",
"icon": "cpu",
"html": "ui/performance.html",
"fill": true,
"feature": "dash.performance"
},
{
"id": "storage",
"label": "Storage",
"nav": "dashboards",
"icon": "hard-drive",
"html": "ui/storage.html",
"fill": true,
"feature": "dash.storage"
}
],
"slots": [
{
"id": "conv-perf",
"where": "conversation.details",
"html": "ui/conv-perf.html",
"query": {"action": "read", "payload": {"view": "conversation", "sid": "$sessionId", "series": ["10m", "life"]}},
"reuseFrame": true,
"height": 120,
"label": "CPU & RAM",
"vis": {
"key": "cards",
"label": "Performance cards",
"hint": "a conversation's CPU, memory and disk in its Details: now, its life, heaviest commands, what it left running"
}
},
{
"id": "conv-storage",
"where": "conversation.details",
"html": "ui/conv-storage.html",
"query": {"action": "read", "payload": {"view": "conversationStorage", "sid": "$sessionId"}},
"reuseFrame": true,
"height": 100,
"label": "On disk",
"vis": {
"key": "cards",
"label": "Performance cards",
"hint": "a conversation's CPU, memory and disk in its Details: now, its life, heaviest commands, what it left running"
}
},
{
"id": "conv-chips",
"where": "conversation.header",
"html": "ui/conv-chips.html",
"query": {"action": "read", "payload": {"view": "conversation", "sid": "$sessionId", "series": ["10m", "life"]}},
"reuseFrame": true,
"height": 16,
"label": "CPU & disk chips",
"vis": {
"key": "chips",
"label": "Performance chips",
"hint": "CPU and memory of the run and the processes it started, and what it keeps on disk — the header chips"
}
}
]
},
"actions": {
"read": {
"script": "handlers/read.py",
"timeoutSec": 60,
"readOnly": true,
"description": "One Performance / Storage view: live, history, conversations, commands, a conversation's numbers and series or its disk, storage, writers, a machine's storage settings, the auto-kill settings, or the hub's own telemetry"
},
"act": {
"script": "handlers/act.py",
"timeoutSec": 900,
"description": "Kill an ended conversation's leftovers, keep one from the auto-kill, change the auto-kill settings, remove a scratch dir or worktree, measure a machine's disk now, or change its storage settings"
}
},
"capabilities": [
"perf.read",
"perf.act",
"telemetry.read"
]
}