The Anypoint Functional Monitoring solution enables developers and operators to perform consistent testing of the functional behaviour and performance of their APIs. This can be done throughout the API lifecycle, in testing and production environments.
Anypoint Functional Monitoring keeps track of the health of public and private APIs that are being used in application networks to ensure the applications are integrated correctly, with appropriate alerts set up to warn the developers in case of a failure.
Anypoint Functional Monitoring can address the following questions:
You monitor APIs by accessing the Functional Monitoring section of Management Center, from the home page of Anypoint Platform.
There are three steps to create a Monitor.
Give the monitor a specific name, select the location and schedule the time for the Monitor to run. Toggle the Validate SSL Certificate to specify if the monitor needs to use self-signed certifications. Then click Next, as shown in the picture below.
We need to specify the API we want to test by providing the API’s Endpoint URL along with its http method, optional Headers and give Assertions to verify the response. Multiple assertions can also be added to validate the response. The Assertions could be Status code, Response header and Response body. You can also preview the test by clicking Run now under preview the result of your monitor. Then, click on Next.
We can configure a notification alert via an Email, Sumologic etc. Then, click on Create Monitor.
After successfully creating a Monitor, the monitor detail’s view appears, where the bar graph shows the daily average response time of all the tests scheduled.
Monitor details view also have the following actions:
Monitor History:
If the Scheduler test run fails or if any issue exists with the API’s performance, an email alert will be sent to the Configured email.
Notification email received for a test failure scenario:
These alerts ensure you are always kept up to date on any issues, so you can resolve them quickly.