public class HttpLatencyDetector extends AbstractEnricher implements Enricher
builder()
this exposes.
This is currently tested against relatively simple GET requests, optionally returned from sensors. It does not currently support POST and has limited support for https.
Modifier and Type | Class and Description |
---|---|
static class |
HttpLatencyDetector.Builder |
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
Modifier and Type | Field and Description |
---|---|
static Duration |
LATENCY_WINDOW_DEFAULT_PERIOD |
static ConfigKey<Duration> |
PERIOD |
static AttributeSensor<java.lang.Double> |
REQUEST_LATENCY_IN_SECONDS_IN_WINDOW |
static AttributeSensor<java.lang.Double> |
REQUEST_LATENCY_IN_SECONDS_MOST_RECENT |
static ConfigKey<java.lang.Boolean> |
REQUIRE_SERVICE_UP |
static ConfigKey<Duration> |
ROLLUP_WINDOW_SIZE |
static ConfigKey<?> |
URL |
static ConfigKey<<any>> |
URL_POST_PROCESSING |
static ConfigKey<AttributeSensor<?>> |
URL_SENSOR |
SUPPRESS_DUPLICATES
HIGHLIGHT_NAME_LAST_ACTION, HIGHLIGHT_NAME_LAST_CONFIRMATION, HIGHLIGHT_NAME_LAST_VIOLATION, HIGHLIGHT_NAME_TRIGGERS
Constructor and Description |
---|
HttpLatencyDetector() |
Modifier and Type | Method and Description |
---|---|
static HttpLatencyDetector.Builder |
builder() |
void |
destroy()
Unsubscribes and clears all managed subscriptions; is called by the owning entity when a policy is removed
and should always be called by any subclasses overriding this method
|
void |
setEntity(EntityLocal entity) |
void |
updateEnablement()
refreshes whether the latency detection feed should be enabled,
based on e.g.
|
getEnricherType, getRebindSupport, relations
config, configure, getAdjunctType, getConfig, getDisplayName, getEntity, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, isRunning, setDisplayName, setHighlights, subscriptions, tags, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, init, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnricherType, getId, getRebindSupport, relations
getHighlights, getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public static final Duration LATENCY_WINDOW_DEFAULT_PERIOD
public static final ConfigKey<?> URL
public static final ConfigKey<AttributeSensor<?>> URL_SENSOR
public static final ConfigKey<<any>> URL_POST_PROCESSING
public static final ConfigKey<java.lang.Boolean> REQUIRE_SERVICE_UP
public static final AttributeSensor<java.lang.Double> REQUEST_LATENCY_IN_SECONDS_MOST_RECENT
public static final AttributeSensor<java.lang.Double> REQUEST_LATENCY_IN_SECONDS_IN_WINDOW
public void setEntity(EntityLocal entity)
setEntity
in class AbstractEnricher
public void updateEnablement()
public void destroy()
AbstractEntityAdjunct
destroy
in class AbstractEntityAdjunct
public static HttpLatencyDetector.Builder builder()