-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell-workflow.json
More file actions
65 lines (65 loc) · 1.61 KB
/
shell-workflow.json
File metadata and controls
65 lines (65 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"version": "0.1",
"workflows": [
{
"id": "disk-health",
"name": "Disk Health",
"tasks": [
{
"id": "check-space",
"name": "Check Disk Space",
"shell": {
"program": "df",
"args": ["-h"]
},
"target": {
"session_target": "shell",
"agent_id": "ops"
},
"schedule": {
"cron": "0 * * * *",
"tz": "America/New_York"
},
"delivery": {
"mode": "announce",
"channel": "telegram",
"to": "@owner_dm"
},
"reliability": {
"guarantee": "at-most-once",
"overlap_policy": "skip",
"max_retries": 0
}
},
{
"id": "escalate-low-space",
"name": "Escalate Low Space",
"prompt": "Review the disk space output, identify the filesystems at risk, and propose remediation steps.",
"target": {
"session_target": "isolated",
"agent_id": "ops"
},
"trigger": {
"parent": "check-space",
"on": "success",
"condition": "regex:(9[0-9]%|100%)"
},
"approval": {
"policy": "manual",
"risk_level": "high",
"timeout_s": 1800
},
"delivery": {
"mode": "announce-always",
"channel": "telegram",
"to": "@owner_dm"
},
"context": {
"retrieval": "recent",
"limit": 3
}
}
]
}
]
}