Thank you very much Yosi, it works for now but I should add it to my code to see if it gives me the desired fields. Unfortunately, I still cannot get the display name and aggregation type from it, but I really appreciate your help.
Your are more than welcome @infotech
For entity name use
Regarding aggregation you can add transformation after the metric name
Check if resolution can give you any additional help
All the best and stay safe
Yos



