Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Emitter will emit a gauge with runtime stats via the sender on the given interval. default interval is 15 seconds.
func New ¶
func New(sender Sender, opts ...RuntimeEmitterOption) *Emitter
New returns an Emitter that is configured with the given sender and RuntimeEmitterOptions.
func NewV1 ¶
func NewV1(sender V1Sender, opts ...RuntimeEmitterOption) *Emitter
NewV1 returns an Emitter that is configured with the given v1 sender and RuntimeEmitterOptions.
type RuntimeEmitterOption ¶
type RuntimeEmitterOption func(e *Emitter)
RuntimeEmitterOption is the option provides configuration for an Emitter.
func WithInterval ¶
func WithInterval(d time.Duration) RuntimeEmitterOption
WithInterval returns a RuntimeEmitterOption to configure the interval at which the runtime emitter emits gauges.
Click to show internal directories.
Click to hide internal directories.