public interface ModifiableUserAction
| Modifier and Type | Method and Description |
|---|---|
String |
getActionName()
Returns the name of the currently open
UserAction |
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 |
setActionName(String actionName)
Sets the name of the currently open
UserAction |
String getActionName()
UserActionUserActionvoid setActionName(String actionName)
UserActionactionName - the new name for the UserActionvoid reportEvent(String eventName)
reportEvent method is a simple way to track user
behavior in your application.eventName - event nameDTXAction.reportEvent(String)void reportValue(String valueName, int value)
valueName - name of the valuevalue - an int value from Integer.MIN_VALUE through Integer.MAX_VALUEDTXAction.reportValue(String, int)void reportValue(String valueName, long value)
valueName - name of the valuevalue - a long value from Long.MIN_VALUE through Long.MAX_VALUEDTXAction.reportValue(String, long)void reportValue(String valueName, double value)
valueName - data name of the valuevalue - a double valueDTXAction.reportValue(String, double)void reportValue(String valueName, String value)
valueName - data name of the valuevalue - a String valueDTXAction.reportValue(String, String)void reportError(String errorName, int errorCode)
errorName - error nameerrorCode - integer error codeDTXAction.reportError(String, int)void 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 exceptionDTXAction.reportError(String, Throwable)© 2021 Dynatrace LLC. All Rights Reserved