First pass on the Status Service
First pass on the Status Service

(optional, and disabled by default)

Inspired by the memcached "stats"

GET /.status returns something like:

{
  "Pid": 21732,
  "UpTime": "1m15.926272s",
  "UpTimeSec": 75.926272,
  "Time": "2013-03-04 08:00:27.152986 +0000 UTC",
  "TimeUnix": 1362384027,
  "StatusCodeCount": {
    "200": 53,
    "404": 11
  },
  "TotalCount": 64,
  "TotalResponseTime": "16.777ms",
  "TotalResponseTimeSec": 0.016777,
  "AverageResponseTime": "262.14us",
  "AverageResponseTimeSec": 0.00026214
}

zenoss/go-json-rest,jacobxk/go-json-rest,wingyplus/go-json-rest,ant0ine/go-json-rest,AnuchitPrasertsang/go-json-rest,unravelin/go-json-rest,syrohei/go-json-rest,thomasf/go-json-rest,beni55/go-json-rest,snowsnail/go-json-rest,zhengcongzhen/go-json-rest,hhy5861/go-json-rest,llaraujo/go-json-rest,thetooth/go-json-rest,observadorpt/go-json-rest,hiteshjoshi/go-json-rest,TuneLab/go-json-rest