Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorEntry ¶
type CollectorEntry struct {
Category api.MetricCategory
Interval time.Duration
Collector CollectorFunc
}
type CollectorFunc ¶
type CollectorFunc func(at time.Time) (api.MetricSample, error)
type ControllerEntry ¶
type ControllerEntry struct {
Type api.CommandType
Controller ControllerFunc
}
type ControllerFunc ¶
type Module ¶
type Module interface {
Name() string
Registration() any
CollectorEntries() []CollectorEntry
ControllerEntries() []ControllerEntry
}
type RegisteredCollectorEntry ¶
type RegisteredCollectorEntry struct {
Module string
Category api.MetricCategory
Interval time.Duration
Collector CollectorFunc
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) CollectorEntries ¶
func (r *Registry) CollectorEntries() []RegisteredCollectorEntry
func (*Registry) ModuleMetadata ¶
Click to show internal directories.
Click to hide internal directories.