Rename diagnostics metric "uptime" to "Uptime" to be consistent with other diagnostics metrics.

This commit is contained in:
Cody Soyland 2017-12-21 07:57:08 -06:00
parent ed14ddf4d6
commit 24a0c76ba5
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ func (d *Diagnostics) schedule() {
// Flush sends the current metrics.
func (d *Diagnostics) Flush() error {
d.mu.Lock()
d.metrics["uptime"] = (time.Now().Unix() - d.startTime)
d.metrics["Uptime"] = (time.Now().Unix() - d.startTime)
buf, _ := d.Encode()
d.mu.Unlock()

View file

@ -49,7 +49,7 @@ func TestDiagnosticsClient(t *testing.T) {
t.Fatal(err)
}
output2 := []byte(`{"gg":10,"ss":"ss","uptime":0}`)
output2 := []byte(`{"gg":10,"ss":"ss","Uptime":0}`)
if eq, err = compareJSON(data, output2); err != nil {
t.Fatal(err)
}