DFE includeSpec property


What does the includeSpec property of a DFE annotation do, and what’s an example of use/how might I use it?



the includeSpec allows the specification of fields on the source type to be passed on the ‘source’ object to the various process* functions. This is helpful if you want to use the value of a field on your srcType in addition to the results of metric evaluations in your analytic.

E.g. maybe you want to include the “name” (field) of a person in addition to their ‘net worth’ (metric) and ‘age’ (metric) when deciding how whether to alert them that they won’t have enough for retirement so you can include their ‘name’ in the email alert you send