Hi,
I have 2 methods:
the Report class has a getter to get its name : report.getReportName
Since the fist method output.call is used by different process, I would like to create a Business transaction based on output.call but avec a Report name equals to a given value.
At present time I can create a measure on a method and select it according a parameter, but in my case it is not the parameter itself but a; attribute taken by a method on the object given in parameter.
So in method generate(Report) I want to evaluate Report.getReportName= 'daily' for instance.
How handle this ?
Regards.
Pierre
Answer by Andreas G. ·
In your sensor for generate(Report) you need to specify to capture the method argument Report. But additoinally specify the accessor "getReportName". This will capture the output of the getter. Now you can create a BUsiness Transaction based on that method Argument Value by creating a "Methods - Argument Value" measure. Define "daily" in the value and then select "occurence" in the Evaluation field. Then specify 1 as upper severe threshold.
Andi
JANUARY 15, 3:00 PM GMT / 10:00 AM ET