I am new to Dynatrace API’s , we have one use case were currently our team is manually retrieving the service calls count from Dynatrace UI every 15 days from view web request options provide in UI.
Instead of manual work we are planning to automate this process using one program which will communicate to Dynatrace API’s and will return the data, but i am not sure which API’s need to be used .
Note:- Team search the entity in webservices search box user application observability section using controller class name (that is how the services is configured in Dynatrace)
You can query the metrics using Metrics v2 API easily. Don’t forget it is possible to query multiple metrics in one single call (request count and failed request count for example).
Sure, you find the list of builtin metrics here: Built-in classic metrics — Dynatrace Docs you probably want builtin:service.requestCount.total
If you need to find your services by display name, use the entitySelector parameter, such as:
However with metrics you can’t have it split by the webservice:method. If this is required, you need to define all your service methods as key requests or define calculated metrics. If you are on SaaS with Grail, then it will soon be possible to get this data using DQL when traces on grail are available.
Another solution is to export that in the MDA (what you have in your screen), on the bottom there is a menu for that: