2012-05-24 22:02:44 +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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
constants.go provides package-level constants for metrics.
|
|
|
|
*/
|
|
|
|
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
|
|
|
)
|