-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplugin.json
More file actions
41 lines (41 loc) · 1.41 KB
/
Copy pathplugin.json
File metadata and controls
41 lines (41 loc) · 1.41 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
{
"description" : "Displays CPU use for a single process",
"command" : "node index.js",
"postExtract" : "npm install",
"ignore" : "node_modules",
"metrics" : ["CPU_PROCESS"],
"paramArray" : { "itemTitle" : ["source"], "schemaTitle" : "Process"},
"paramSchema" : [
{
"title" : "Source",
"name" : "source",
"description" : "The source to display in the legend for the CPU data.",
"type" : "string",
"required" : true
},
{
"title" : "Process Name Regex",
"name" : "processName",
"description" : "A regular expression to match the name of the process.",
"type" : "string"
},
{
"title" : "Process Path Regex",
"name" : "processPath",
"description" : "A regular expression to match the full path of the process.",
"type" : "string"
},
{
"title" : "Process CWD Regex",
"name" : "processCwd",
"description" : "A regular expression to match the current working directory of the process.",
"type" : "string"
},
{
"title" : "Reconcile option",
"name" : "reconcile",
"description" : "How to reconcile in the case that multiple processes match. Set to First Match to use the first matching process, Parent to choose the parent process (useful if process is forked), or Longest Running to pick the process that has been running the longest.",
"type" : { "enum" : [["None", "none"], ["First Match", "first"], ["Parent", "parent"], ["Longest Running", "uptime"]]}
}
]
}