Emit computed events
Select and filter output events for publishing
Overview
Using the select expression
Query
stream:
...
emit:
eventType: buy_alert
select:
"
venue.name 'venue',
symbol,
ask,
bid,
ask - bid 'spread',
details.*,
BidMovingAverage.avg_ask|avg_bid;where symbol = {symbol}
"
having: "symbol =='IBM' && spread > 0.05"Source event
Output event
Using metrics
Example
Attributes schema
Format
Result
Description
having clause
retain
Example
Attributes schema
Attribute
Description
Data Type
Required
Last updated