Skip to content

Commit

Permalink
[#noissue] Add config properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ram committed Nov 8, 2022
1 parent 1eaad59 commit 2800b30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public class ConfigProperties {
@Value("${config.show.systemMetric:false}")
private boolean showSystemMetric;

@Value("${config.show.urlStat:false}")
private boolean showUrlStat;

@Value("${websocket.allowedOrigins:#{null}}")
private String webSocketAllowedOrigins;
Expand Down Expand Up @@ -118,6 +120,10 @@ public boolean isShowSystemMetric() {
return showSystemMetric;
}

public boolean isShowUrlStat() {
return showUrlStat;
}

public String getWebSocketAllowedOrigins() {
return webSocketAllowedOrigins;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public Map<String, Object> getProperties() {
result.put("showApplicationStat", webProperties.isShowApplicationStat());
result.put("showStackTraceOnError", webProperties.isShowStackTraceOnError());
result.put("showSystemMetric", webProperties.isShowSystemMetric());
result.put("showUrlStat", webProperties.isShowUrlStat());
result.put("openSource", webProperties.isOpenSource());
result.put("webhookEnable", webProperties.isWebhookEnable());

Expand Down

0 comments on commit 2800b30

Please sign in to comment.