Last active
August 9, 2019 13:50
-
-
Save minudika/89b65f09137d43096a5bab8200297848 to your computer and use it in GitHub Desktop.
This file contains 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
@Source(type = 'http-request', source.id='login-request', | |
receiver.url="https://localhost:8280/analytics", | |
@map(type='json', | |
@attributes(messageId='trp:messageId', | |
username='$.username', loginTime='$.loginTime', loginIp = '$.loginIp'))) | |
define stream InputStream ( | |
messageId string, | |
username string, | |
loginIp string, | |
loginTime long); | |
@sink(type='http-response', source.id='login-request', | |
message.id='{{messageId}}', @map(type='json')) | |
define stream OutputStream ( | |
messageId string, | |
username string, | |
risk double); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment