Last active
January 3, 2019 16:20
-
-
Save PierreZ/a0c12fe7388aba15949fbc80f99e48ea 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
final DataStream<Tuple4<PlanIdentifier, Alert, Plan, Operation>> alertStream = | |
// Partitioning Stream per AlertIdentifier | |
cleanedAlertsStream.keyBy(0) | |
// Applying a Map Operation which is setting since when an alert is triggered | |
.map(new SetSinceOnSelector()) | |
.name("setting-since-on-selector").uid("setting-since-on-selector") | |
// Partitioning again Stream per AlertIdentifier | |
.keyBy(0) | |
// Applying another Map Operation which is setting State and Trend | |
.map(new SetStateAndTrend()) | |
.name("setting-state").uid("setting-state"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment