Custom API definitions

For some languages like Node.js and Golang, DESK provides detection based on modules and packages. It uses a basic set of predefined APIs for Java and .NET. However, for others, DESK allows you to create custom API definitions for the various frameworks in your environment. Custom API definitions are used to further segment the API breakdown and make it easier to quickly see which frameworks contain hotspots.

By using a custom-created API definition called easyTravel, DESK will be able to identify all easyTravel-related method calls as part of the easyTravel-specific code.

To add a user-defined API detection rule:

  1. Go to Settings > Server-side service monitoring > API detection rules.

  2. Click the Create API detection rule button.

API detection rules

  1. Type the name of the API. The API name in this example is easyTravel.

  2. Click the Add new condition button. The pattern to be used for identifying the API in this example is com.desk.easytravel.

  3. Click Confirm to save the new API detection rule.

add API detection rule

The user-defined easyTravel API has now been included in the code-level analysis.

example