Created
December 2, 2017 23:30
-
-
Save nambrot/126ff92d32d9bb22c06e04a3fe511d8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val alertStream = combinedStream | |
| .filter { | |
| case (_, (bloodPressureEvents, heartRateEvents)) => | |
| bloodPressureEvents.exists(_.systolic < 100) && heartRateEvents.exists(_.heartRate > 100) | |
| case _ => false | |
| }.map { | |
| case (id, (_, _)) => (id, s"User $id has a problem") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment