@Test public void providesUptime() { metricRegistry.register("jvm.uptime.formatted", gauge("1d 3h 2m")); assertThat(newDashboardData().server().uptime(), is("1d 3h 2m")); }
@JsonProperty("server") public Server server() { return server; }
DashboardData { @JsonProperty("server") public Server server() { return server; } }
DashboardData { @JsonProperty("server") public Server server() { return server; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); }
DashboardData { @JsonProperty("server") public Server server() { return server; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); @JsonProperty("server") Server server(); @JsonProperty("downstream") Downstream downstream(); @JsonProperty("publishTime") long publishTime(); }
DashboardData { @JsonProperty("server") public Server server() { return server; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); @JsonProperty("server") Server server(); @JsonProperty("downstream") Downstream downstream(); @JsonProperty("publishTime") long publishTime();  }