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)
Similar to
reportValue(String, int) . |
void |
reportError(String errorName,
Throwable throwable)
Similar to
reportError(String, int) . |
void |
reportEvent(String eventName)
Reports the time when a specific event occurred.
|
void |
reportValue(String valueName,
double value)
Similar to
reportValue(String, int) . |
void |
reportValue(String valueName,
int value)
Reports a key-value pair with the given time, when the event occurred.
|
void |
reportValue(String valueName,
String value)
Similar to
reportValue(String, int) . |
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
- event namevoid reportValue(String valueName, int value)
valueName
- data namevalue
- an integer value from Integer.MIN_VALUE through Integer.MAX_VALUEvoid reportValue(String valueName, double value)
reportValue(String, int)
.valueName
- data namevalue
- a double valuevoid reportValue(String valueName, String value)
reportValue(String, int)
.valueName
- data namevalue
- a string valuevoid reportError(String errorName, int errorCode)
reportValue(String, int)
. But the key-value pair is marked as error type.
This event can be used to report error codes.errorName
- error nameerrorCode
- integer error codevoid reportError(String errorName, Throwable throwable)
reportError(String, int)
. 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.getRequestTagHeader()
© 2018 Dynatrace LLC. All Rights Reserved