Skip to content

Instantly share code, notes, and snippets.

@friej715
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save friej715/d74a601fbee9c4485c48 to your computer and use it in GitHub Desktop.
Save friej715/d74a601fbee9c4485c48 to your computer and use it in GitHub Desktop.
Crisis.net + Streamtools
{
"Blocks":[
{
"Id":"1",
"Type":"webRequest",
"Rule":{
"BodyPath":".",
"Headers":{
"Content-Type":"'application/json'"
},
"Method":"GET",
"Url":"http://api.crisis.net/item?apikey=YOUR_API_KEY&text=Ebola",
"UrlPath":""
},
"Position":{
"X":337,
"Y":197
}
},
{
"Id":"20",
"Type":"unpack",
"Rule":{
"Path":".body.data"
},
"Position":{
"X":369,
"Y":273
}
},
{
"Id":"16",
"Type":"histogram",
"Rule":{
"Path":".name",
"Window":"1h40m0s"
},
"Position":{
"X":493,
"Y":533
}
},
{
"Id":"5",
"Type":"bang",
"Rule":null,
"Position":{
"X":306,
"Y":120
}
},
{
"Id":"8",
"Type":"tolog",
"Rule":null,
"Position":{
"X":320,
"Y":511
}
},
{
"Id":"23",
"Type":"unpack",
"Rule":{
"Path":".tags"
},
"Position":{
"X":452,
"Y":434
}
},
{
"Id":"26",
"Type":"filter",
"Rule":{
"Filter":"$exists(., 'tags')"
},
"Position":{
"X":407,
"Y":346
}
}
],
"Connections":[
{
"Id":"11",
"FromId":"5",
"ToId":"1",
"ToRoute":"in"
},
{
"Id":"21",
"FromId":"1",
"ToId":"20",
"ToRoute":"in"
},
{
"Id":"27",
"FromId":"20",
"ToId":"26",
"ToRoute":"in"
},
{
"Id":"28",
"FromId":"26",
"ToId":"23",
"ToRoute":"in"
},
{
"Id":"29",
"FromId":"23",
"ToId":"8",
"ToRoute":"in"
},
{
"Id":"30",
"FromId":"23",
"ToId":"16",
"ToRoute":"in"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment