@App:name("VehicleCountCheckApp")
@source(type='kafka',topic.list='vehicle_data',....)
define stream TrafficStream (vehicleCount int, location string);
@sink(type='kafka',topic='vehicle_output', .....)
define stream AlertStream (vehicleCount int, location string);
@info(name = 'CheckVehicleCount')
from TrafficStream[vehicleCount > {{HIGH_DENSITY_VEHICLE_COUNT}}]
select vehicleCount, location
insert into AlertStream;
I'm getting an error:
no viable alternative at input 'TrafficStream[vehicleCount > {{HIGH_DENSITY_VEHICLE_COUNT}}
So in this I take kafka input Json and based on this siddhi query I will check output in separate kafka topic bit this HIGH_DENSITY_VEHICLE_COUNT value will declare in deployment file