You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/01/05 19:47:11 UTC

[10/11] incubator-trafficcontrol git commit: Fix TM2 /publish/stats to strings to match TM1

Fix TM2 /publish/stats to strings to match TM1


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

Branch: refs/heads/master
Commit: f8e77398f0e32acf8d4291ceb9713d1654f3fe3c
Parents: 11e869e
Author: Robert Butts <ro...@gmail.com>
Authored: Fri Dec 9 15:42:48 2016 -0700
Committer: Dave Neuman <ne...@apache.org>
Committed: Thu Jan 5 12:46:32 2017 -0700

----------------------------------------------------------------------
 .../traffic_monitor/manager/datarequest.go      | 22 ++++++++++----------
 1 file changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/f8e77398/traffic_monitor/experimental/traffic_monitor/manager/datarequest.go
----------------------------------------------------------------------
diff --git a/traffic_monitor/experimental/traffic_monitor/manager/datarequest.go b/traffic_monitor/experimental/traffic_monitor/manager/datarequest.go
index 478f9b4..3d4e7c6 100644
--- a/traffic_monitor/experimental/traffic_monitor/manager/datarequest.go
+++ b/traffic_monitor/experimental/traffic_monitor/manager/datarequest.go
@@ -979,23 +979,23 @@ func createAPIPeerStates(peerStates map[enum.TrafficMonitorName]peer.Crstates, f
 
 // Stats contains statistics data about this running app. Designed to be returned via an API endpoint.
 type Stats struct {
-	MaxMemoryMB         uint64 `json:"Max Memory (MB)"`
+	MaxMemoryMB         uint64 `json:"Max Memory (MB),string"`
 	GitRevision         string `json:"git-revision"`
-	ErrorCount          uint64 `json:"Error Count"`
-	Uptime              uint64 `json:"uptime"`
-	FreeMemoryMB        uint64 `json:"Free Memory (MB)"`
-	TotalMemoryMB       uint64 `json:"Total Memory (MB)"`
+	ErrorCount          uint64 `json:"Error Count,string"`
+	Uptime              uint64 `json:"uptime,string"`
+	FreeMemoryMB        uint64 `json:"Free Memory (MB),string"`
+	TotalMemoryMB       uint64 `json:"Total Memory (MB),string"`
 	Version             string `json:"version"`
 	DeployDir           string `json:"deploy-dir"`
-	FetchCount          uint64 `json:"Fetch Count"`
-	QueryIntervalDelta  int    `json:"Query Interval Delta"`
-	IterationCount      uint64 `json:"Iteration Count"`
+	FetchCount          uint64 `json:"Fetch Count,string"`
+	QueryIntervalDelta  int    `json:"Query Interval Delta,string"`
+	IterationCount      uint64 `json:"Iteration Count,string"`
 	Name                string `json:"name"`
 	BuildTimestamp      string `json:"buildTimestamp"`
-	QueryIntervalTarget int    `json:"Query Interval Target"`
-	QueryIntervalActual int    `json:"Query Interval Actual"`
+	QueryIntervalTarget int    `json:"Query Interval Target,string"`
+	QueryIntervalActual int    `json:"Query Interval Actual,string"`
 	SlowestCache        string `json:"Slowest Cache"`
-	LastQueryInterval   int    `json:"Last Query Interval"`
+	LastQueryInterval   int    `json:"Last Query Interval,string"`
 	Microthreads        int    `json:"Goroutines"`
 	LastGC              string `json:"Last Garbage Collection"`
 	MemAllocBytes       uint64 `json:"Memory Bytes Allocated"`