Session Monitor API
Retrieve error
It returns the details of an error for the specified kba/timestamp/user
"systemEvent" is a fake kba name used to store the system errors that may occur outside a consultation
GET/sessionmonitor/error/kba/timestamp/user
| Query parameters | None |
| Header | auth-token: token from authentication |
| Header/Parameter | tenant |
| Body | None |
| Returns | ... |
| Required role | MWP_ADMIN |
| Managed errors | 401: insufficient privileges |
Example request
curl 'http://localhost:8080/mwp/rest/sessionmonitor/error/34d8b0c5-035d-4f91-9f9a-28a39be43cab/1446460505864/adnin' -H 'auth-token: 68cd01ce-6c33-44a2-9117-42deaeb9185e' -H 'tenant:default'
Example response
{
"user":"some user",
"kba":null,
"description":"error in DELETE /sessionmonitor/session/{user}/{consultationId}",
"type":"class com.knowledgevalues.mwp.rest.security.InsufficientPrivilegesException",
"stackTrace":"com.knowledgevalues.mwp.rest.security.InsufficientPrivilegesException: insufficient privileges
at com.knowledgevalues.mwp.rest.security.RoleChecker.invoke(RoleChecker.java:42)
at com.knowledgevalues.mwp.rest.security.RestApiAOP.invoke(RestApiAOP.java:20)",
"time":1442245266917
}