20 Nov 2020 07:10 PM - last edited on 12 May 2021 02:31 PM by MaciejNeumann
Our application is manually reporting user actions with custom string properties appended to each. We have also created a custom metric so that we could make multidimensional charts based on those string properties as dimensions. The multidimensional chart tool as well as USQL are both able to count those user actions and filter based on the string properties. However when we try to create a custom event for alerting based the Static threshold setting for that metric, it only shows time units (of the metric) to trigger the alert; even-though 'Count' is selected under the aggregate dropdown. I'm wondering if this is due to the type of our metric being a 'User action duration' metric. But the RumMetricDefinition object doesnt seem to have anything that could describe a user action count. Is there a way to create an alert that would trigger based on a certain count of custom user actions?
Solved! Go to Solution.
24 Nov 2020 08:53 PM
Hi Tim,
Another way to accomplish this would be to mark the particular user action of interest as a key user action.
Then when you create a custom event, you may filter to this (or several) key user actions using the action name rule-based filter.
This has the static threshold set against the count of the user actions, rather than the performance metric.
Regards,
Andrew M.
24 Nov 2020 09:00 PM
Thanks for your response @Andrew M. But it seems like the Metric in your screenshot is "by browser". So I wouldn't be able to split by my custom dimensions) which are the action string properties that i define with custom Metric).
02 Dec 2020 05:57 AM
Hi Tim A.,
I was just using a generic example. I believe for your particular case, actually the property can only be applied as a filter when you create the metric. As the property cannot be a dimension (splitting value), then it could not be used in the alerting dimensions selection.
I may be wrong and would need to understand your exact metric and use case in more detail.
Andrew M.
02 Dec 2020 06:11 PM
We are actually using those string properties as dimensions in multidimensional charts as well as USQL widgets. And when trying to create a custom event for alerting those properties do come up as dimensions. However the static threshold values can only be set as a time unit.
27 Jan 2021 09:55 PM
Hi Tim,
I believe you will need to create the metric based on Request Count or similar metric, instead of Response Time. Then only will you get the count and/or sum aggregation that you will need. For response time metric will have the time based aggregations, like average (time), min (time), max (time), etc.
24 Nov 2020 09:01 PM
Would the rule-based filter allow me to look at string properties?
02 Dec 2020 05:54 AM
Hi Tim A.,
If your string property is also a frontend property (not a server-side request attribute) and you also don't mind renaming the actions to contain that value, then yes it's possible using user action naming with custom placeholders.
Regards,
Andrew M.
24 Nov 2020 08:56 PM
Hi @Tim A.,
Just to let you know that I have moved your question to the Dynatrace Open Q&A forum, as your question relates to the Dynatrace SaaS & Managed Platform.
Regards,
Andrew M.
02 Dec 2020 08:48 PM
Seems like reporting a Custom Error for that userAction id and then creating an ErrorCount metric with the same string properties as dimensions worked.