Skip to content

Instantly share code, notes, and snippets.

@jacqui
Created August 16, 2014 23:42
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/4ea7b086d8da688b7385 to your computer and use it in GitHub Desktop.
Save jacqui/4ea7b086d8da688b7385 to your computer and use it in GitHub Desktop.
streamtools pattern to monitor edits to wikipedia
{
"Blocks": [
{
"Id": "2",
"Type": "fromwebsocket",
"Rule": {
"url": "ws://wikimon.hatnote.com:80/en/"
},
"Position": {
"X": 143,
"Y": 55
}
},
{
"Id": "5",
"Type": "filter",
"Rule": {
"Filter": "(.is_minor == false) && (.is_bot == false)"
},
"Position": {
"X": 171,
"Y": 139
}
},
{
"Id": "41",
"Type": "histogram",
"Rule": {
"Path": ".user",
"Window": "1h0m0s"
},
"Position": {
"X": 410,
"Y": 482
}
},
{
"Id": "27",
"Type": "tofile",
"Rule": {
"Filename": "/tmp/wiki.json"
},
"Position": {
"X": 288,
"Y": 498
}
},
{
"Id": "33",
"Type": "mask",
"Rule": {
"Mask": {
"summary": {},
"user": {}
}
},
"Position": {
"X": 335,
"Y": 407
}
},
{
"Id": "18",
"Type": "filter",
"Rule": {
"Filter": ".is_anon == false"
},
"Position": {
"X": 225,
"Y": 231
}
},
{
"Id": "38",
"Type": "filter",
"Rule": {
"Filter": ".summary != null"
},
"Position": {
"X": 262,
"Y": 320
}
}
],
"Connections": [
{
"Id": "43",
"FromId": "33",
"ToId": "27",
"ToRoute": "in"
},
{
"Id": "6",
"FromId": "2",
"ToId": "5",
"ToRoute": "in"
},
{
"Id": "20",
"FromId": "5",
"ToId": "18",
"ToRoute": "in"
},
{
"Id": "44",
"FromId": "18",
"ToId": "38",
"ToRoute": "in"
},
{
"Id": "40",
"FromId": "38",
"ToId": "33",
"ToRoute": "in"
},
{
"Id": "42",
"FromId": "33",
"ToId": "41",
"ToRoute": "in"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment