I am trying to get the analysis associated with a particular notification rule using the sdk, but I cannot find a straightforward way..
Let's say I have an AFElement el. I can get hold of its notification rules using el.NotificationRules, and its analyses using el.Analyses, but is there a way from el.NotificationRules to get its AFAnalysis?
I saw that I can do something like el.Analyses[el.NotificationRules.Criteria.Replace("AnalysisName:", "").Replace("\"", "")], which would give me what I am looking for, but I don't feel like this is the best way....
What is your advice?