RulePoint
- RulePoint 6.1.2
- All Products
WHEN 1 stock WITH symbol="XYZ" THEN TransformStockResponse
WHEN 1 stock WITH symbol="XYZ" THEN TransformStockResponse WITH params="volume=${volume}"
When stock, 1 news with stock.symbol in news.title and count(stock.price) as total > 0 slide within 60 minutes then TransformsEvent with topic="stock(1) as matchedstock", properties="stock.*", params="last_hour_count=${total}, news_title=${news.title}"
WHEN sensor group by sensor.id,sensor.status WITH sensor.status ='down' ANDcount(sensor.status) = 5 slide within 5 minutes then TransformsEvent with topic="sensor(4:5) as FailedSensor", properties="*", detection_time="${drql_timestamp(rel), date hh:mm:ss.SSSSS}"
WHEN sensor WITH match(sensor.id) AND match(sensor.status) AND sensor.status ='down' AND count(sensor.status) = 5 slide within 5 minutes then TransformsEvent with topic="sensor(4:5) as Failed Sensor", properties="*", detection_time="${drql_timestamp(rel), date hh:mm:ss.SSSSS}"