Last active
October 24, 2015 02:07
-
-
Save kentquirk/4d96160da521a2cadfa7 to your computer and use it in GitHub Desktop.
test of bl.ocks.org
This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.chart div { | |
font: 10px sans-serif; | |
background-color: green; | |
text-align: right; | |
padding: 3px; | |
margin: 1px; | |
color: white; | |
} | |
</style> | |
<div class="chart"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
<script src="../status.json"></script> | |
<script> | |
console.log(statusdata) | |
var data = [4, 8, 15, 16, 39, 42]; | |
var x = d3.scale.linear() | |
.domain([0, d3.max(data)]) | |
.range([0, 420]); | |
d3.select(".chart") | |
.selectAll("div") | |
.data(data) | |
.enter().append("div") | |
.style("width", function(d) { return x(d) + "px"; }) | |
.text(function(d) { return d; }); | |
</script> |
This file contains hidden or 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
statusdata = [ | |
{ | |
"Address": "http://localhost:9020", | |
"Name": "config", | |
"Port": "9020", | |
"StatusBody": "", | |
"StatusCode": 200 | |
}, | |
{ | |
"Address": "http://10.11.12.218:9102", | |
"Name": "passageserver", | |
"Port": "9102", | |
"StatusCode": 200, | |
"configtype": "devel", | |
"configversion": "passage-2015-10-07a", | |
"deploytag": "v0.15.1", | |
"ip": "10.11.12.218", | |
"requests": 14354, | |
"requestslast5min": 5, | |
"requestslasthour": 52, | |
"revision": "461e7b17bb56dc7271414543afd9201f3cc0697d", | |
"servererrors": 0, | |
"uptime": "262h41m50.244467542s", | |
"usererrors": 28 | |
}, | |
{ | |
"Address": "http://10.11.12.218:9106", | |
"Name": "reflectosity", | |
"Port": "9106", | |
"StatusCode": 200, | |
"configtype": "devel", | |
"configversion": "reflectosity-2015-07-30", | |
"deploytag": "v0.13.0", | |
"ip": "10.11.12.218", | |
"requests": 14318, | |
"requestslast5min": 5, | |
"requestslasthour": 53, | |
"revision": "77a8d354c7fe43050263129d52a2a70d3e4cc660", | |
"servererrors": 0, | |
"uptime": "262h39m35.779566826s", | |
"usererrors": 1 | |
}, | |
{ | |
"Address": "http://10.11.12.218:9103", | |
"Name": "standardsserver", | |
"Port": "9103", | |
"StatusCode": 200, | |
"configtype": "devel", | |
"configversion": "standards-2015-08-04a", | |
"deploytag": "v0.10.0", | |
"ip": "10.11.12.218", | |
"requests": 14317, | |
"requestslast5min": 4, | |
"requestslasthour": 51, | |
"revision": "ca8b57037d70ee1a7261c8cd86c7d7f1db8e3298", | |
"servererrors": 0, | |
"uptime": "262h40m41.238904855s", | |
"usererrors": 0 | |
}, | |
{ | |
"Address": "http://10.11.12.218:9104", | |
"Name": "staticserver", | |
"Port": "9104", | |
"StatusCode": 200, | |
"configtype": "devel", | |
"configversion": "static-2015-08-29", | |
"deploytag": "v0.10.0", | |
"ip": "10.11.12.218", | |
"requests": 24017, | |
"requestslast5min": 5, | |
"requestslasthour": 52, | |
"revision": "cabc5b623a69c49bc153e1a090527219848a1bbc", | |
"servererrors": 0, | |
"uptime": "262h40m26.547300808s", | |
"usererrors": 0 | |
}, | |
{ | |
"Address": "http://10.11.12.218:9101", | |
"Name": "tagserver", | |
"Port": "9101", | |
"StatusCode": 200, | |
"configtype": "devel", | |
"configversion": "tag-2015-10-07e", | |
"deploytag": "v0.15.1", | |
"ip": "10.11.12.218", | |
"requests": 13985, | |
"requestslast5min": 5, | |
"requestslasthour": 52, | |
"revision": "461e7b17bb56dc7271414543afd9201f3cc0697d", | |
"servererrors": 0, | |
"uptime": "262h43m22.93038941s", | |
"usererrors": 13 | |
}, | |
{ | |
"Address": "http://10.11.12.218:9105", | |
"Name": "userserver", | |
"Port": "9105", | |
"StatusCode": 200, | |
"configtype": "devel", | |
"configversion": "user-2015-10-05", | |
"deploytag": "v0.8.0", | |
"ip": "10.11.12.218", | |
"requests": 15600, | |
"requestslast5min": 4, | |
"requestslasthour": 52, | |
"revision": "a970460965b5e03b07c1ba56ff53890cd77f8a8b", | |
"servererrors": 0, | |
"uptime": "262h40m10.511968434s", | |
"usererrors": 360 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment