You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by el...@apache.org on 2017/01/24 15:39:24 UTC

[02/10] incubator-trafficcontrol git commit: add t/sec to goTM UI

add t/sec to goTM UI


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/37b6cf20
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/37b6cf20
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/37b6cf20

Branch: refs/heads/master
Commit: 37b6cf2010e29e1e82741b9e544e2105a4ec0f3a
Parents: 476c7ad
Author: David Neuman <da...@gmail.com>
Authored: Mon Jan 23 13:11:06 2017 -0700
Committer: Jeff Elsloo <je...@cable.comcast.com>
Committed: Tue Jan 24 08:38:45 2017 -0700

----------------------------------------------------------------------
 .../traffic_monitor/static/index.html             | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/37b6cf20/traffic_monitor/experimental/traffic_monitor/static/index.html
----------------------------------------------------------------------
diff --git a/traffic_monitor/experimental/traffic_monitor/static/index.html b/traffic_monitor/experimental/traffic_monitor/static/index.html
index 401cc6e..753f95d 100644
--- a/traffic_monitor/experimental/traffic_monitor/static/index.html
+++ b/traffic_monitor/experimental/traffic_monitor/static/index.html
@@ -370,15 +370,17 @@ under the License.
 						 row.insertCell(1).id = row.id + "-status";
 						 row.insertCell(2).id = row.id + "-caches-reporting";
 						 row.insertCell(3).id = row.id + "-bandwidth";
-						 row.insertCell(4).id = row.id + "-2xx";
-						 row.insertCell(5).id = row.id + "-3xx";
-						 row.insertCell(6).id = row.id + "-4xx";
-						 row.insertCell(7).id = row.id + "-5xx";
-						 row.insertCell(8).id = row.id + "-disabled-locations";
+						 row.insertCell(4).id = row.id + "-tps";
+						 row.insertCell(5).id = row.id + "-2xx";
+						 row.insertCell(6).id = row.id + "-3xx";
+						 row.insertCell(7).id = row.id + "-4xx";
+						 row.insertCell(8).id = row.id + "-5xx";
+						 row.insertCell(9).id = row.id + "-disabled-locations";
 						 document.getElementById(row.id + "-delivery-service").textContent = deliveryService;
 						 document.getElementById(row.id + "-delivery-service").style.whiteSpace = "nowrap";
 						 document.getElementById(row.id + "-caches-reporting").style.textAlign = "right";
 						 document.getElementById(row.id + "-bandwidth").style.textAlign = "right";
+						 document.getElementById(row.id + "-tps").style.textAlign = "right";
 						 document.getElementById(row.id + "-2xx").style.textAlign = "right";
 						 document.getElementById(row.id + "-3xx").style.textAlign = "right";
 						 document.getElementById(row.id + "-4xx").style.textAlign = "right";
@@ -397,6 +399,11 @@ under the License.
 					 } else {
 						 document.getElementById("deliveryservice-stats-" + deliveryService + "-bandwidth").textContent = "N/A";
 					 }
+					 if (jds[deliveryService].hasOwnProperty("total.tps_total")) {
+						 document.getElementById("deliveryservice-stats-" + deliveryService + "-tps").textContent = dsDisplayFloat(parseFloat(jds[deliveryService]['total.tps_total'][0].value));
+					 } else {
+						 document.getElementById("deliveryservice-stats-" + deliveryService + "-tps").textContent = "N/A";
+					 }
 					 if (jds[deliveryService].hasOwnProperty("total.tps_2xx")) {
 						 document.getElementById("deliveryservice-stats-" + deliveryService + "-2xx").textContent = dsDisplayFloat(parseFloat(jds[deliveryService]['total.tps_2xx'][0].value));
 					 } else {
@@ -525,6 +532,7 @@ under the License.
 					<th>Status</th>
 					<th align="right">Caches Reporting/Available/Configured</th>
 					<th align="right">Bandwidth (mbps)</th>
+					<th align="right">t/sec</th>
 					<th align="right">2xx/sec</th>
 					<th align="right">3xx/sec</th>
 					<th align="right">4xx/sec</th>