2013-02-12 05:36:06 +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.
|
2012-05-24 22:02:44 +04:00
|
|
|
|
2013-02-12 05:36:06 +04:00
|
|
|
// constants.go provides package-level constants for metrics.
|
2012-05-24 22:02:44 +04:00
|
|
|
package metrics
|
|
|
|
|
|
|
|
const (
|
2012-12-19 14:48:12 +04:00
|
|
|
counterTypeValue = "counter"
|
2013-01-19 17:48:30 +04:00
|
|
|
floatBitCount = 64
|
2012-05-24 22:02:44 +04:00
|
|
|
floatFormat = 'f'
|
|
|
|
floatPrecision = 6
|
2013-01-19 17:48:30 +04:00
|
|
|
gaugeTypeValue = "gauge"
|
|
|
|
histogramTypeValue = "histogram"
|
|
|
|
typeKey = "type"
|
|
|
|
valueKey = "value"
|
|
|
|
labelsKey = "labels"
|
2012-05-24 22:02:44 +04:00
|
|
|
)
|