Get metric config for a DFE

#1

Given a type that mixes TSDataFlowEvent, how could I program to get its metric?

For example, given following DFE,

@DFE(period='MONTH', interval='MONTH', metric='TheMetric')
type myDFE mixes TSDataFlowEvent<Source>

how could I get its metric in the code?

#2

Figured it out.

myDFE.extensions().DFE.metric works!