Skip to content

Instantly share code, notes, and snippets.

@jacqui
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacqui/1da5bfe59ea91f6893e7 to your computer and use it in GitHub Desktop.
Save jacqui/1da5bfe59ea91f6893e7 to your computer and use it in GitHub Desktop.
monitor crisis.net for events reported in syria
{
"Blocks": [
{
"Id": "1",
"Type": "webRequest",
"Rule": {
"BodyPath": ".",
"Headers": {
"Content-Type": "'application/json'"
},
"Method": "GET",
"Url": "http://api.crisis.net/item?placeName=Syria&apikey=535a9fa06a2165d01fabc678",
"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": "2",
"FromId": "26",
"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