Documentation ¶
Overview ¶
Package publisher manages the publishing of metrics.
Index ¶
Constants ¶
View Source
const ( TypeStdout = "stdout" TypeDatadog = "datadog" )
Set of possible publisher types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
Collector defines a contract a collector must support so a consumer can retrieve metrics.
type Publish ¶
type Publish struct {
// contains filtered or unexported fields
}
Publish provides the ability to receive metrics on an interval.
type Publisher ¶
type Publisher func(map[string]interface{})
Publisher defines a handler function that will be called on each interval.
Click to show internal directories.
Click to hide internal directories.