WhyLabs interview question

How do you calculate a metric from streaming data?