Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Changed from /analytics to /data for uBlock. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions buildstatus/inventory.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
<script src="static/js/jquery-2.1.1.min.js"></script>
<script src="static/js/buildstatus.js"></script>
<title>Build Status - inventory</title>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
//TODO (ventris): Currently analytics and buildstatus needs to be on the same host
// Change the request below to go to an external page instead.
$.getJSON('/analytics/inventory', function(objects) {
$.getJSON('/data/inventory', function(objects) {

sorted_keys = Object.keys(objects).sort()
for(var idx in sorted_keys) {
Expand Down
2 changes: 1 addition & 1 deletion buildstatus/snmp_errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script>
//TODO (ventris): Currently analytics and buildstatus needs to be on the same host
// Change the request below to go to an external page instead.
$.getJSON('/analytics/snmp.errors', function(objects) {
$.getJSON('/data/snmp.errors', function(objects) {

sorted_keys = Object.keys(objects).sort()
for(var idx in sorted_keys) {
Expand Down
14 changes: 7 additions & 7 deletions buildstatus/static/js/buildstatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,31 +265,31 @@ function renderStatus() {
}

function retrieveStatus() {
$.getJSON('/analytics/snmp.errors', function(objects) {
$.getJSON('/data/snmp.errors', function(objects) {
snmp_errors = objects;
updateStatus();
});
$.getJSON('/analytics/snmp.saves', function(objects) {
$.getJSON('/data/snmp.saves', function(objects) {
snmp_saves = objects;
updateStatus();
});
$.getJSON('/analytics/ping.status', function(objects) {
$.getJSON('/data/ping.status', function(objects) {
ping_status = objects;
updateStatus();
});
$.getJSON('/analytics/event.hosts', function(objects) {
$.getJSON('/data/event.hosts', function(objects) {
hosts = objects;
updateStatus();
});
$.getJSON('/analytics/rancid.status', function(objects) {
$.getJSON('/data/rancid.status', function(objects) {
rancid_status = objects;
updateStatus();
});
$.getJSON('/analytics/syslog.status', function(objects) {
$.getJSON('/data/syslog.status', function(objects) {
syslog_status = objects;
updateStatus();
});
$.getJSON('/analytics/mon.alerts', function(objects) {
$.getJSON('/data/mon.alerts', function(objects) {
mon_alerts = objects;
updateStatus();
});
Expand Down
5 changes: 2 additions & 3 deletions buildstatus/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
<head>
<script src="static/js/jquery-2.1.1.min.js"></script>
<title>Build Status - version</title>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
//TODO (ventris): Currently analytics and buildstatus needs to be on the same host
// Change the request below to go to an external page instead.
$.getJSON('/analytics/event.hosts', function(hosts) {
$.getJSON('/analytics/switch.version', function(objects) {
$.getJSON('/data/event.hosts', function(hosts) {
$.getJSON('/data/switch.version', function(objects) {
sorted_keys = Object.keys(objects).sort()
for(var idx in sorted_keys) {
host = sorted_keys[idx];
Expand Down