cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use APIs to track the license usage of various system users?

ADbyCool
Newcomer

How to use APIs to track the license usage of various system users?

1 REPLY 1

mark_bley
Dynatrace Champion
Dynatrace Champion

You can leverage the DQL API: developer.dynatrace.com/platform-services/services/storage/

Then using a query like following will give you the DQL query usage.

fetch dt.system.events
| filter event.kind == "BILLING_USAGE_EVENT" and matchesPhrase(event.type, "Query")
| filter isNotNull(user.email)
| fields query_start, event.type, user.email, billed_bytes
| fieldsAdd query_cost = billed_bytes/1024/1024/1024*toDouble(0.0035)

mark_bley_0-1737968734517.png

 

Featured Posts