Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { // A label used to categorize events Category types.Category `json:"category"` // A label used to identify the event type Action types.Action `json:"action"` // Labels that annotate the event Labels map[string]string `json:"labels"` }
Event defines information necessary to process a metric event
type MetricRegistry ¶ added in v0.1.4
type MetricRegistry struct {
// contains filtered or unexported fields
}
func NewMetricRegistry ¶ added in v0.1.4
func NewMetricRegistry() *MetricRegistry
func (*MetricRegistry) Add ¶ added in v0.1.4
func (m *MetricRegistry) Add(d types.Definition)
func (*MetricRegistry) Increment ¶ added in v0.1.4
func (m *MetricRegistry) Increment(userAgent string, event Event) error
func (*MetricRegistry) Reset ¶ added in v0.1.4
func (m *MetricRegistry) Reset()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.