davsclaus opened a new pull request, #153: URL: https://github.com/apache/camel-jbang-examples/pull/153
Closes #152 A new example on the `connect-service` rung, building on the cold rooms of `connect-service/mqtt`: three simulated sensors publish a reading every second to Mosquitto (`camel infra run mosquitto`), and the shop subscribes to `warehouse/+/temperature`. - `average`: an `aggregate` per room with `completionInterval` logs one average per ten-second window. Groovy formats it with `Locale.ROOT`, so it prints `10.0` on any machine. - `alert`: a `filter` and a `throttle` per room (`correlationExpression`, `rejectExecution: true`) give at most one alert per room per window. - `offline`: an `aggregate` per room with `completionTimeout` warns when a sensor goes silent (cold-room-2 stops after five readings). - `sensors.camel.yaml` plays the sensors, so only the broker is needed. Checked locally: `camel validate yaml --canonical` reports nothing, `camel run *` logs what the README shows, and `camel test run` passes with Camel 4.23.0 (the version CI uses). The test starts Mosquitto and runs the shop and the sensors as two integrations. It is added to `build.yml`, and `./generate-catalog.sh` updated the catalog and the README tables. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
