Capture business metrics (from method return value)

Discussion created by prjvnd on May 7, 2018
Latest reply on May 9, 2018 by Lynn_Williams

I would like to capture the business metrics, If I have a class "FileProcess" that has method -countedFiles(), that returns 

integers- number of files processed, how can this is captured in CA APM