@Test public void providesOriginResponseCodes() { metricRegistry.meter("origins.app.app-01.requests.response.status.200").mark(123); metricRegistry.meter("origins.app.app-01.requests.response.status.500").mark(111); metricRegistry.meter("origins.app.app-01.requests.response.status.502").mark(222); Map<String, Integer> responses = newDashboardData().downstream().firstBackend().firstOrigin().responses(); assertThat(responses.get("200"), is(123)); assertThat(responses.get("2xx"), is(123)); assertThat(responses.get("500"), is(111)); assertThat(responses.get("502"), is(222)); assertThat(responses.get("5xx"), is(333)); }
@JsonProperty("downstream") public Downstream downstream() { return downstream; }
DashboardData { @JsonProperty("downstream") public Downstream downstream() { return downstream; } }
DashboardData { @JsonProperty("downstream") public Downstream downstream() { return downstream; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); }
DashboardData { @JsonProperty("downstream") public Downstream downstream() { return downstream; } 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("downstream") public Downstream downstream() { return downstream; } DashboardData(MetricRegistry metrics, Registry<BackendService> backendServicesRegistry, String serverId, Version version, EventBus eventBus); @JsonProperty("server") Server server(); @JsonProperty("downstream") Downstream downstream(); @JsonProperty("publishTime") long publishTime();  }