Apply metrics
Apply metrics within stream processing functions
Last updated
-- Simple lookup
WHERE symbol='IBM'
-- Parameter replace using the corresponding the event object symbol value
WHERE symbol=${symbol}
-- Apply additonal filtering criteria
WHERE symbol=${symbol} AND avg_bid_max > 120.88-- Get all metrics from the BidMovingAverage metrics family for IBM
BidMovingAverage.*;WHERE symbol='IBM'
-- Get the avg_bid_max metric from the BidMovingAverage metrics family all symbols matching the reference ${symbol} variable
BidMovingAverage.avg_bid_max;WHERE symbol=${symbol}
-- Same as above with the ability to define a custom name for the resulting field
BidMovingAverage.avg_bid_max;WHERE symbol=${symbol} 'avg_bid_max'
-- Get the avg_bid_max and avg_bid_min metric from the BidMovingAverage metrics family
BidMovingAverage.avg_bid_max,avg_bid_min;WHERE symbol=${symbol}