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: src/main/java/org/dependencytrack/model/ConfigPropertyConstants.java
+6-2
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,11 @@
18
18
*/
19
19
packageorg.dependencytrack.model;
20
20
21
+
importalpine.Config;
21
22
importalpine.model.IConfigProperty;
22
23
importalpine.model.IConfigProperty.PropertyType;
23
24
importorg.apache.commons.lang3.SystemUtils;
25
+
importorg.dependencytrack.common.ConfigKey;
24
26
25
27
importjava.util.Arrays;
26
28
@@ -120,7 +122,10 @@ public enum ConfigPropertyConstants {
120
122
BOM_VALIDATION_TAGS_EXCLUSIVE("artifact", "bom.validation.tags.exclusive", "[]", PropertyType.STRING, "JSON array of tags for which BOM validation shall NOT be performed"),
121
123
WELCOME_MESSAGE("general", "welcome.message.html", "%3Chtml%3E%3Ch1%3EYour%20Welcome%20Message%3C%2Fh1%3E%3C%2Fhtml%3E", PropertyType.STRING, "Custom HTML Code that is displayed before login", true),
122
124
IS_WELCOME_MESSAGE("general", "welcome.message.enabled", "false", PropertyType.BOOLEAN, "Bool that says whether to show the welcome message or not", true),
123
-
DEFAULT_LANGUAGE("general", "default.locale", null, PropertyType.STRING, "Determine the default Language to use", true);
125
+
DEFAULT_LANGUAGE("general", "default.locale", null, PropertyType.STRING, "Determine the default Language to use", true),
126
+
TELEMETRY_SUBMISSION_ENABLED("telemetry", "submission.enabled", String.valueOf(!"true".equals(System.getProperty("dev.mode.enabled")) && Config.getInstance().getPropertyAsBoolean(ConfigKey.TELEMETRY_SUBMISSION_ENABLED_DEFAULT)), PropertyType.BOOLEAN, "Whether submission of telemetry data is enabled"),
127
+
TELEMETRY_LAST_SUBMISSION_DATA("telemetry", "last.submission.data", null, PropertyType.STRING, "Data of the last telemetry submission"),
128
+
TELEMETRY_LAST_SUBMISSION_EPOCH_SECONDS("telemetry", "last.submission.epoch.seconds", null, PropertyType.INTEGER, "Timestamp of the last telemetry submission in epoch seconds");
124
129
125
130
privatefinalStringgroupName;
126
131
privatefinalStringpropertyName;
@@ -129,7 +134,6 @@ public enum ConfigPropertyConstants {
0 commit comments