Documentation
¶
Overview ¶
Package metrics provides a library to post status metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
Value bool
Data *MetricData
// contains filtered or unexported fields
}
Bool implements a Bool-type metric.
type Int ¶
type Int struct {
Value int64
Data *MetricData
// contains filtered or unexported fields
}
Int implements a Int-type metric.
func NewCounter ¶
NewCounter sets the metric to a new Int value.
type MetricData ¶ added in v1.0.2
type MetricData struct {
Name string
Fields map[string]interface{}
// contains filtered or unexported fields
}
MetricData stores metric information.
func (*MetricData) AddBoolField ¶ added in v1.0.3
func (m *MetricData) AddBoolField(name string, value bool)
AddBoolField adds a bool field to a metric.
func (*MetricData) AddStringField ¶ added in v1.0.3
func (m *MetricData) AddStringField(name, value string)
AddStringField adds a string field to a metric.
Click to show internal directories.
Click to hide internal directories.