public interface Action
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
Action |
leaveAction()
Leaves this Action.
|
Action |
reportError(java.lang.String errorName,
int errorCode,
java.lang.String reason)
Reports an error with a specified name, error code and reason.
|
Action |
reportEvent(java.lang.String eventName)
Reports an event with a specified name (but without any value).
|
Action |
reportValue(java.lang.String valueName,
double value)
Reports a double value with a specified name.
|
Action |
reportValue(java.lang.String valueName,
int value)
Reports an int value with a specified name.
|
Action |
reportValue(java.lang.String valueName,
java.lang.String value)
Reports a String value with a specified name.
|
WebRequestTracer |
traceWebRequest(java.lang.String url)
Allows tracing and timing of a web request handled by any 3rd party HTTP Client (e.g.
|
WebRequestTracer |
traceWebRequest(java.net.URLConnection connection)
Traces a web request - which is provided as a URLConnection - and allows adding timing information to this request.
|
Action reportEvent(java.lang.String eventName)
If given eventName is null then no event is reported to the system.
eventName - name of the eventAction reportValue(java.lang.String valueName, int value)
valueName - name of this valuevalue - value itselfAction reportValue(java.lang.String valueName, double value)
valueName - name of this valuevalue - value itselfAction reportValue(java.lang.String valueName, java.lang.String value)
valueName - name of this valuevalue - value itselfAction reportError(java.lang.String errorName, int errorCode, java.lang.String reason)
errorName - name of this errorerrorCode - numeric error code of this errorreason - reason for this errorWebRequestTracer traceWebRequest(java.net.URLConnection connection)
connection - the URLConnection of the HTTP request to be tagged and timedWebRequestTracer traceWebRequest(java.lang.String url)
OpenKitConstants.WEBREQUEST_TAG_HEADER) has to be set manually to the
tag value of this WebRequestTracer. url - the URL of the web request to be tagged and timedAction leaveAction()