public interface DTXAction
| Modifier and Type | Method and Description |
|---|---|
String |
getRequestTag()
Generates a Dynatrace request tag for a web request, which has to be manually added as http header (header key can be obtained with the method
Dynatrace.getRequestTagHeader()). |
String |
getRequestTagHeader()
This method is identical to
Dynatrace.getRequestTagHeader() |
void |
leaveAction()
Completes this action and prepares the data for the next sending interval.
|
void |
reportError(String errorName,
int errorCode)
Reports an error as key-value pair with the time at which it occurred.
|
void |
reportError(String errorName,
Throwable throwable)
Reports an error as
Throwable with the time at which it occurred. |
void |
reportEvent(String eventName)
Reports the time when a specific event occurred.
|
void |
reportValue(String valueName,
double value)
Reports a key-value pair with the time at which this event occurred.
|
void |
reportValue(String valueName,
int value)
Reports a key-value pair with the time at which this event occurred.
|
void |
reportValue(String valueName,
long value)
Reports a key-value pair with the time at which this event occurred.
|
void |
reportValue(String valueName,
String value)
Reports a key-value pair with the time at which this event occurred.
|
void |
tagRequest(HttpURLConnection conn)
Places a Dynatrace request tag on the web request, which is evaluated by the corresponding web server
agent.
|
void leaveAction()
When an outer/parent action is exited, all nested/child actions are automatically closed.
void reportEvent(String eventName)
reportEvent method is a simple way to track user
behavior in your application.eventName - name of the eventvoid reportValue(String valueName, int value)
valueName - name of the valuevalue - an int value from Integer.MIN_VALUE through Integer.MAX_VALUEvoid reportValue(String valueName, long value)
valueName - name of the valuevalue - a long value from Long.MIN_VALUE through Long.MAX_VALUEvoid reportValue(String valueName, double value)
valueName - data name of the valuevalue - a double valuevoid reportValue(String valueName, String value)
valueName - data name of the valuevalue - a String valuevoid reportError(String errorName, int errorCode)
errorName - error nameerrorCode - integer error codevoid reportError(String errorName, Throwable throwable)
Throwable with the time at which it occurred.
This event can be used to report a handled exception.errorName - error namethrowable - a caught exceptionvoid tagRequest(HttpURLConnection conn)
conn - object to tagString getRequestTagHeader()
Dynatrace.getRequestTagHeader()String getRequestTag()
Dynatrace.getRequestTagHeader()).
The tag value is evaluated by the corresponding web server agent. The Dynatrace server will link the server-side PurePath data with this mobile user action.Dynatrace.getRequestTag()© 2021 Dynatrace LLC. All Rights Reserved