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

Can a mathematical queries be used for new metric?

fstekelenburg
DynaMight Pro
DynaMight Pro

Wondering if the calculation that works as statement in USQL, can be turned into a (custom/calculated) metric:

select (duration/userActionCount) as uad FROM usersession

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner
2 REPLIES 2

Julius_Loman
DynaMight Legend
DynaMight Legend

Yes it is, see https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/setup-and-configura...

However, check the limitations.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Yes, thanks I have seen that.

As stated in there:

  1. Under Value type to be extracted, select one of the following options:
    • User session counter to count the number of user sessions, which is similar to COUNT(*) when using USQL.
    • User session field value to extract a value of a user session field. Also, specify the Field name, which must match the USQL field name. For possible values, see Value field names.

(duration/userActionCount) from usersession is an exact value (time), not a count or extraction. So struggling with that.

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner

Featured Posts