You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/agent.md
+18
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,23 @@ resource "coder_agent" "dev" {
26
26
web_terminal = true
27
27
ssh_helper = false
28
28
}
29
+
30
+
metadata {
31
+
display_name = "CPU Usage"
32
+
key = "cpu_usage"
33
+
script = "coder stat cpu"
34
+
interval = 10
35
+
timeout = 1
36
+
order = 2
37
+
}
38
+
metadata {
39
+
display_name = "RAM Usage"
40
+
key = "ram_usage"
41
+
script = "coder stat mem"
42
+
interval = 10
43
+
timeout = 1
44
+
order = 1
45
+
}
29
46
}
30
47
31
48
resource "kubernetes_pod" "dev" {
@@ -97,4 +114,5 @@ Required:
97
114
Optional:
98
115
99
116
-`display_name` (String) The user-facing name of this value.
117
+
-`order` (Number) The order determines the position of agent metadata in the UI/CLI presentation. The lowest order is shown first and parameters with equal order are sorted by key (ascending order).
100
118
-`timeout` (Number) The maximum time the command is allowed to run in seconds.
Description: "The order determines the position of agent metadata in the UI/CLI presentation. The lowest order is shown first and parameters with equal order are sorted by key (ascending order).",
0 commit comments