20 Jun 2024 01:26 PM
Hi,
Let's say we have the following metric expression:
(calc:service.getloyaltycalls:splitBy():sort(value(auto,descending)):limit(20) / builtin:service.requestCount.total:filter(and(or(in("dt.entity.service",entitySelector("type(service),entityName.equals(~"BookingService~")"))))):splitBy():sort(value(auto,descending)):limit(20)) * 100
The first metric (getloyaltycalls) is defined for a service under the same management zone of the bookingService. However, since this expression doesn't have a specific entity to split by, it is not linked to the entities management zones.
Can you think of any creative way that will allow for such linkage? this is needed to be included as part of users permissions.
Solved! Go to Solution.
21 Jun 2024 06:09 AM
Hey,
If it is for a problem then consider this as a workaround.
You can add properties to a event when you create metric events under anomaly detection. There are certain event properties which help you achieve what you are thinking to. You can refer to them here Events API v2 - GET all event properties - Dynatrace Docs
As an example, I can show you how relate your event to a particular host.
The dimension key allows the event to prioritize and entity and link the related event to it. Let's say you have defined both process_group and host in the properties, the default thing Davis does is that it relates your problem to the process_group but if you want to override that and want this at a host level you can select the dimension.
Hope this helps 😀
Regards,
@Maheedhar_T