Monitoring_Test_Script
Last updated
Last updated
After saving your Monitored API on the form page, you can commence the monitoring process for your API.
Initiating monitoring for your API can be done by clicking the Play button. Once monitoring is active, the Play button transforms into a Stop button, and the offline icon is replaced with either a thumbs-up or a thumbs-down symbol, depending on whether the returned status code matches the expected status code. Additionally, a message will appear to inform the user that monitoring is in progress.
The status icon will display either a thumbs-up or thumbs-down to indicate whether the monitored API is returning the expected status code.
The status column will show an Offline Cloud Icon if the API is not under monitoring.
To access metrics regarding your monitored API, simply click on the Bar Graph icon.
You will be listed with all matrics related to respective Script. As listed below:
A status code in an API is a three-digit numerical code returned by the server to indicate the outcome of a client's request, such as success, error, or redirection.
Current Status Code: Represents the status code of your API during the most recent call.
Previous Status Code: Reflects the status code of your API before the last call.
Adjacent to each status code, a thumbs-up or thumbs-down symbol indicates whether the monitored API is returning the expected status code when it's under monitoring. Otherwise, an offline cloud icon signifies that it is not being monitored.
The Performance Index in API monitoring is a metric that assesses the overall performance and reliability of an API by considering various factors such as response times, error rates, and availability.
Success Count: The count of instances where the monitored API delivered the anticipated status code.
Fail Count: The count of instances where the monitored API did not produce the expected status code.
Total Number of Runs: The overall count of times the monitored API was invoked.
Apdex: The ratio of successful runs to the total number of runs (Success Count/Total Number of Runs).
Response Time Metrics in API monitoring refer to measurements that track the time it takes for an API to respond to a request, providing insights into its performance and efficiency.
Rolling Average Response Time (ms): The mean response time across API calls
Last Response Time (ms): Response time for the most recent API call
Shortest Response Time (ms): Fastest completion time observed in monitored API requests
Longest Response Time (ms): Longest completion time observed in monitored API requests"
The graph displays both the Single and Average Response Time Thresholds, along with the Response Times of the ten most recent API calls.
Violations in API monitoring refer to instances when the monitored API fails to meet specified performance or behavior criteria, such as response time or status code.
Violations for Average Response Time: Indicates how frequently the rolling average response time surpasses the defined threshold for average response time.
Violations for Response Time: Indicates the frequency of instances when the response time of an API call exceeds the specified threshold for a single response time.
To conclude monitoring for the API, simply click the Stop button. You will receive a message confirming the cessation of API monitoring. The Stop button will revert to Play, and the thumbs-up or thumbs-down icon will transition back to the offline status.