Skip to content

Instantly share code, notes, and snippets.

@jrecursive
Created August 5, 2014 21:03
Show Gist options
  • Select an option

  • Save jrecursive/f50040631f673eb6cb57 to your computer and use it in GitHub Desktop.

Select an option

Save jrecursive/f50040631f673eb6cb57 to your computer and use it in GitHub Desktop.
create circuit ipviking;
use ipviking;
alter circuit ipviking set {"refresh-hz":5.0};
create channel #notify;
create channel #ui;
create device ipviking-reader as websocket-reader {"x":10,"y":10,"url":"ws://XXXXXX:PPPP/","w":117,"h":79};
create device hz-slider as slider {"x":190,"y":190,"field":"hz","min":"1.0","max":"10.0","value":3.0,"w":45,"h":170};
create device svc-lru as lru {"x":360,"y":560,"field":"svc","size":"100","expire":"1","w":271,"h":339};
create device rate1 as rate {"x":50,"y":260,"w":98,"h":110};
create device from-to-lru as lru {"x":50,"y":550,"field":"country_country","size":"100","expire":"1","w":270,"h":231};
create device sa1 as state-sampler {"x":1720,"y":550,"w":290,"h":535};
create device country-lru as lru {"x":1410,"y":540,"field":"country","size":"100","expire":"1","w":255,"h":315};
create device dport-lru as lru {"x":700,"y":940,"field":"dport","size":"100","expire":"1","w":272,"h":230};
create device ip-lru as lru {"x":360,"y":940,"field":"md5","size":"100","expire":"1","w":281,"h":227};
create device ipv-graph-parser as simple-function {"x":220,"y":410,"filename":"functions/ipviking-graph.java"};
create device ip-block-clusters as carrot2-cluster {"x":1070,"y":950,"window-size":"100","title-field":"org","content-field":"org","url-field":"org","algorithm":"stc",
"w":282,"h":219};
create device p1 as pulse {"x":290,"y":260,"hz":3.0};
create device ipv-msg-parser as simple-function {"x":240,"y":20,"filename":"functions/ipviking-parser.java","w":193,"h":122};
create device org-lru as lru {"x":1060,"y":540,"field":"org","size":"100","expire":"1","w":283,"h":334};
create device country-city-lru as lru {"x":50,"y":810,"field":"country_city","size":"100","expire":"1","w":273,"h":346};
create device ipviking-map as google-map {"x":480,"y":20,"field":"latlon","max":"100","w":583,"h":495,"refresh-hz":0.25};
create device cluster-label-lru as lru {"x":700,"y":550,"field":"label","size":"100","expire":"1","w":288,"h":348};
create device country-graph as temporal-graph {"x":1080,"y":20,"w":857,"h":487,"refresh-hz":0.5};
create device a1 as led {"x":60,"y":140,"w":76,"h":79};
create wire w-82158aa0-7595-4ea3-aa87-b30ff7a132eb from ipv-msg-parser.output to ip-block-clusters.input;
create wire w-8ae35e02-8c9e-45e3-bdc2-81d3373006d6 from ipv-msg-parser.output to dport-lru.data;
create wire w-8d74c736-6bbc-4daf-a243-94dc6396b37e from ipv-msg-parser.output to sa1.input;
create wire w-ef9d769c-a9f7-4237-bb25-da0e2d731809 from ip-block-clusters.labels to cluster-label-lru.data;
create wire w-09920f43-4b08-4ba7-a568-71c934e9967e from ipv-msg-parser.output to from-to-lru.data;
create wire w-df9b71c9-0e25-4aa1-87cf-9f05963d1a52 from ipv-msg-parser.output to country-lru.data;
create wire w-bd7be139-de39-47ac-b2f8-0ccff6227bd7 from ipv-msg-parser.output to country-city-lru.data;
create wire w-21e1519f-6829-4544-99e7-a920179b3fbf from ipv-msg-parser.output to ip-lru.data;
create wire w-c4ec293a-3a0a-4a3c-a130-2bbb8ede1b19 from p1.pulse to ip-block-clusters.pulse;
create wire w-3e139593-3905-4241-8c8b-e204aaf384c6 from ipv-msg-parser.output to ipviking-map.in;
create wire w-71ef4a09-296e-4cb6-9fda-4d1a58726832 from p1.pulse to sa1.pulse;
create wire w-e78d165e-33dc-4dc3-8ab3-ab587a2e6a70 from ipviking-reader.messages to rate1.input;
create wire w-a99c81eb-b7f2-4b82-be87-fc5e194c0317 from p1.pulse to ip-block-clusters.pulse;
create wire w-d9822bd4-574f-4da7-8a06-a335f7ad10ef from ipviking-reader.messages to a1.input;
create wire w-cd67af04-d1c6-4046-896c-3aeaabefdfca from ipv-msg-parser.output to ip-block-clusters.input;
create wire w-6738b56f-34cf-48a3-8ff6-9d88ceff4e3a from ipv-graph-parser.output to country-graph.input;
create wire w-adb70e21-d9f0-44da-81f6-86fcd2a8c815 from ipviking-reader.messages to ipv-graph-parser.input;
create wire w-500d15dd-9548-49f3-868e-b3f40d6285a0 from ipv-msg-parser.output to svc-lru.data;
create wire w-bf91760b-eb4f-47c7-8dd9-8d853c1063d3 from ipv-msg-parser.output to org-lru.data;
create wire w-ccefb23a-4771-40e1-a040-d47645642626 from ipviking-reader.messages to ipv-msg-parser.input;
create wire w-ab0254f8-40a3-4244-8147-fff12a2d32a8 from hz-slider.hz to p1.hz;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment