client_golang/metrics/base.go

18 lines
487 B
Go
Raw Normal View History

2012-05-20 01:59:25 +04:00
// Copyright (c) 2012, Matt T. Proud
// All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// base.go provides fundamental interface expectations for the various metrics.
package metrics
type Metric interface {
// Produce a human-consumable representation of the metric.
Humanize() string
// Produce a JSON-consumable representation of the metric.
// TODO(mtp):
Marshallable() map[string]interface{}
}