@Test(groups="Integration") public void testPollsUrl() throws Exception { entity.sensors().set(TestEntity.SERVICE_UP, true); entity.enrichers().add(HttpLatencyDetector.builder() .url(baseUrl) .rollup(500, TimeUnit.MILLISECONDS) .period(100, TimeUnit.MILLISECONDS) .build()); assertLatencyAttributesNonNull(entity); }
public static Builder builder() { return new Builder(); }
HttpLatencyDetector extends AbstractEnricher implements Enricher { public static Builder builder() { return new Builder(); } }
HttpLatencyDetector extends AbstractEnricher implements Enricher { public static Builder builder() { return new Builder(); } HttpLatencyDetector(); protected  HttpLatencyDetector(Map<?,?> flags); }
HttpLatencyDetector extends AbstractEnricher implements Enricher { public static Builder builder() { return new Builder(); } HttpLatencyDetector(); protected  HttpLatencyDetector(Map<?,?> flags); @Override void setEntity(EntityLocal entity); void updateEnablement(); @Override void destroy(); static Builder builder(); }
HttpLatencyDetector extends AbstractEnricher implements Enricher { public static Builder builder() { return new Builder(); } HttpLatencyDetector(); protected  HttpLatencyDetector(Map<?,?> flags); @Override void setEntity(EntityLocal entity); void updateEnablement(); @Override void destroy(); static Builder builder(); static final Duration LATENCY_WINDOW_DEFAULT_PERIOD; @SetFromFlag("url")
    static final ConfigKey<?> URL; @SuppressWarnings("serial")
    @SetFromFlag("urlSensor")
    static final ConfigKey<AttributeSensor<?>> URL_SENSOR; @SuppressWarnings("serial")
    @SetFromFlag("urlPostProcessing")
    static final ConfigKey<Function<String,String>> URL_POST_PROCESSING; @SetFromFlag("rollup")
    static final ConfigKey<Duration> ROLLUP_WINDOW_SIZE; @SetFromFlag("requireServiceUp")
    static final ConfigKey<Boolean> REQUIRE_SERVICE_UP; @SetFromFlag("period")
    static final ConfigKey<Duration> PERIOD; static final AttributeSensor<Double> REQUEST_LATENCY_IN_SECONDS_MOST_RECENT; static final AttributeSensor<Double> REQUEST_LATENCY_IN_SECONDS_IN_WINDOW; }