This section explains how to analyze the performance of REST APIs in EI using WSO2 Analytics. The information displayed includes the overall success and failure rates, the number of successful/failed requests over time, the message latency over time, the list of messages processed during the selected time interval, and the mediation flow that the messages sent to the REST API have passed through.
Use one of the following methods to view information in this page.
- When you open the EI Analytics dashboard, the Overview page is displayed by default. Click on a REST API in the TOP APIS BY REQUEST COUNT gadget to view information relating to that REST API.
- Click on the API page and search for the REST API for which you want to view information.
At any given time, this page displays the statistics for a selected time interval. Make sure you select the required time interval in the following bar displayed at the top of the page. If you want to define a custom time interval, click Custom and select the start and end dates of the required time interval in the calendar that appears.
API Request Count
|Description||This indicates the total number of requests handled by a REST API during a selected time period, and the rate of success within the same period.|
|Purpose||This allows you to identify the throughput handled by a REST API during different time periods in order to understand the usage patterns the related applications/services. Comparing the success rate during different time intervals helps you to identify any unusual occurrences that have taken place during specific times (e.g., system downtime).|
|Recommended action||Check the success/failure rate for a REST API at different time intervals. If the success rate was low only during particular time interval(s), check for unusual activities during that time interval(s) (e.g., system downtime, unavailability of the backend service etc.). If the success rate is low at all time intervals, check the REST API configuration as well as the configurations of other artifacts used by the REST API (i.e. sequences, endpoints etc.) for errors.|
|Description||This provides a graphical view of the count for both successful and failed messages for a REST API during a selected time interval.|
|Purpose||This allows you to identify any correlation that may exist between message failure rate, throughput and time.|
|Recommended action||If the message failure is particularly high during a specific time, you can check whether any unusual occurrences have taken place during that time (e.g., system downtime, unavailability of the back-end service) and take appropriate action.|
|Description||The time taken by the selected REST API to complete processing a request sent to it.|
|Purpose||This allows you to analyse the efficiency of a REST API in terms of the time taken to process messages during a selected time interval.|
|Recommended action||If the message latency is high during a specific time interval, view the number of requests handled by the REST API during the same time interval in order to check whether there has been an overload of requests.|
This provides the list of message IDS that were processed by a REST API. Details including the port, time stamp and whether the message is successfully processed are displayed for each message ID. Messages can be sorted in an ascending or descending order based on the message ID, host, start time or status. You can search for specific message IDs, as well as click on a message ID to view more details about it in the OVERVIEW/MESSAGE/<MESSAGE_ID> page.
When you search for information in this table, you need to use the correct search syntax as explained in Searching for Messages.
|Purpose||This allows you to identify the individual message IDs that were not successfully processed and click on them to find more details in order to take corrective action.|
|Description||This provides a graphical view of the mediation flow through which the messages handled by a REST API have passed.|
|Purpose||This allows you to understand the different stages of mediation that a selected message ID has passed.|