Skip to content

Commit

Permalink
Merge pull request #5 from rtr-nettest/feature/historyAndSettingsAdap…
Browse files Browse the repository at this point in the history
…tions

add url_statistic_server to settings
  • Loading branch information
cproof committed Apr 23, 2024
2 parents 244c72c + 11e55e6 commit 99b04e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/at/rtr/rmbt/constant/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public interface Config {
String URL_IPV4_CHECK_KEY = "url_ipv4_check";
String URL_IPV6_CHECK_KEY = "url_ipv6_check";
String URL_MAP_SERVER_KEY = "url_map_server";
String URL_STATISTIC_SERVER_KEY = "url_statistic_server";
String SYSTEM_UUID_KEY = "system_UUID";
String GEO_PROVIDER_MANUAL = "manual";
String GEO_PROVIDER_GEOCODER = "geocoder";
Expand Down Expand Up @@ -82,7 +83,8 @@ public interface Config {
"url_map_server",
"host_map_server",
"ssl_map_server",
"port_map_server"
"port_map_server",
"url_statistic_server"
);
List<ServerType> SERVER_TEST_SERVER_TYPES = List.of(ServerType.RMBT);
List<ServerType> SERVER_HTTP_TEST_SERVER_TYPES = List.of(ServerType.RMBT, ServerType.RMBThttp);
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/at/rtr/rmbt/response/UrlsResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ public class UrlsResponse {

@JsonProperty(value = "statistics")
private final String statistics;

@JsonProperty(value = "url_statistic_server")
private final String urlStatisticServer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ private UrlsResponse getUrlsResponse(Map<String, String> settings) {
.urlIPV4Check(settings.get(Config.URL_IPV4_CHECK_KEY))
.urlIPV6Check(settings.get(Config.URL_IPV6_CHECK_KEY))
.urlMapServer(settings.get(Config.URL_MAP_SERVER_KEY))
.urlStatisticServer(settings.get(Config.URL_STATISTIC_SERVER_KEY))
.build();
}

Expand Down

0 comments on commit 99b04e1

Please sign in to comment.