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: internal/config/config.go
+66-26Lines changed: 66 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,17 @@ type Config struct {
20
20
}
21
21
22
22
typeOptionsstruct {
23
-
Pidstring`yaml:"p" usage:"The process ID or unique token of the target, for example: 3121, or 'buggyApp'"`
24
-
ApiKeystring`yaml:"k" usage:"The API Key that will be used to make API requests, for example: tier1app@12312-12233-1442134-112"`
25
-
Serverstring`yaml:"s" usage:"The server url that will be used to upload data, for example: https://ycrash.companyname.com"`
26
-
AppNamestring`yaml:"a" usage:"The APP Name of the target"`
27
-
HeapDumpbool`yaml:"hd" usage:"Capture heap dump, default is false"`
28
-
HeapDumpPathstring`yaml:"hdPath" usage:"The heap dump file to be uploaded while it exists"`
29
-
ThreadDumpPathstring`yaml:"tdPath" usage:"The thread dump file to be uploaded while it exists"`
30
-
TDCaptureDurationtime.Duration`yaml:"tdCaptureDuration" usage:"Total duration to capture thread dumps (e.g., 10m, 30s)"`
31
-
GCPathstring`yaml:"gcPath" usage:"The gc log file to be uploaded while it exists"`
32
-
JavaHomePathstring`yaml:"j" usage:"The java home path to be used. Default will try to use os env 'JAVA_HOME' if 'JAVA_HOME' is not empty, for example: /usr/lib/jvm/java-8-openjdk-amd64"`
33
-
DeferDeletebool`yaml:"d" usage:"Delete logs folder created during analyse"`
23
+
Pidstring`yaml:"p" usage:"The process ID or unique token of the target, for example: 3121, or 'buggyApp'"`
24
+
ApiKeystring`yaml:"k" usage:"The API Key that will be used to make API requests, for example: tier1app@12312-12233-1442134-112"`
25
+
Serverstring`yaml:"s" usage:"The server url that will be used to upload data, for example: https://ycrash.companyname.com"`
26
+
AppNamestring`yaml:"a" usage:"The APP Name of the target"`
27
+
HeapDumpbool`yaml:"hd" usage:"Capture heap dump, default is false"`
28
+
HeapDumpPathstring`yaml:"hdPath" usage:"The heap dump file to be uploaded while it exists"`
29
+
ThreadDumpPathstring`yaml:"tdPath" usage:"The thread dump file to be uploaded while it exists"`
30
+
TDCaptureDurationDuration`yaml:"tdCaptureDuration" usage:"Total duration to capture thread dumps (e.g., 10m, 30s)"`
31
+
GCPathstring`yaml:"gcPath" usage:"The gc log file to be uploaded while it exists"`
32
+
JavaHomePathstring`yaml:"j" usage:"The java home path to be used. Default will try to use os env 'JAVA_HOME' if 'JAVA_HOME' is not empty, for example: /usr/lib/jvm/java-8-openjdk-amd64"`
33
+
DeferDeletebool`yaml:"d" usage:"Delete logs folder created during analyse"`
34
34
35
35
ShowVersionbool`arg:"version" yaml:"-" usage:"Show the version of this program"`
36
36
ConfigPathstring`arg:"c" yaml:"-" usage:"The config file path to load"`
@@ -41,7 +41,7 @@ type Options struct {
41
41
CACertPathstring`yaml:"caCertPath" usage:"The CA Cert Path"`
42
42
43
43
M3bool`arg:"m3" usage:"Run in m3 mode, default is false"`
44
-
M3Frequencytime.Duration`yaml:"m3Frequency" usage:"Frequency of m3 mode, default is 3 minutes"`
44
+
M3FrequencyDuration`yaml:"m3Frequency" usage:"Frequency of m3 mode, default is 3 minutes"`
45
45
ProcessTokensProcessTokens`yaml:"processTokens" usage:"Process tokens of m3 mode"`
46
46
ExcludeProcessTokensProcessTokens`yaml:"excludeTokens" usage:"Process exclude tokens of m3 mode"`
47
47
@@ -94,22 +94,24 @@ type Options struct {
94
94
EdScriptstring`yaml:"edScript" usage:"Extended Data: Path to a custom script that collects extended diagnostics data"`
95
95
EdDataFolderstring`yaml:"edDataFolder" usage:"Extended Data: Directory path where artifacts generated by (-edScript) will be stored and collected."`
0 commit comments