Session Monitor API

Get consultation statistics

It returns statistics about the consultations either with details or aggregated.

GET/rest/sessionmonitor/statistics
Query parameters
  • startDate: start date in YYYY-MM-DD format
  • endDate: end date in YYYY-MM-DD format. The end date is excluded (thus 2015-06-01 / 2015-06-03 will include 1 and 2 of June)
  • kba: optional kba name filter
  • aggregated: optional (default "true") parameter to retrieve aggregated statistics
Header auth-token: token from authentication
Header / Parameter tenant
Body None
Returns List of Aggregated Statistics or List of Statistic Consultation Entries
Required role KBA MANAGER
Managed errors 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/sessionmonitor/statistics?startDate=2014-01-10&endDate=2015-06-05&aggregated=false' -H 'auth-token: a467d309-015e-4513-a9e7-56603b0eae20' -H 'tenant:default'

Example response

[  
   {  
      "consultationStarted":36,
      "consultationCompleted":35,
      "kba":"72ac8a5d-e9b0-4eb3-9574-e6dc7fc7bff4",
      "kbaName":"Order Handling"
   },
   {  
      "consultationStarted":24,
      "consultationCompleted":20,
      "kba":"89a18e16-c2fb-4b06-ae70-062c36fa0c13",
      "kbaName":"MWP All functionality"
   }
]

Feedback