mackerel

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	sync.Mutex

	Snapshot []collector.MetricsDutum
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(qa *QueueArg) *Queue

func (*Queue) Enqueue

func (q *Queue) Enqueue(rawMetrics []collector.MetricsDutum)

func (*Queue) Init

func (q *Queue) Init(ifs []collector.Interface) (*string, error)

return host ID when create.

func (*Queue) SendTicker

func (q *Queue) SendTicker(ctx context.Context, wg *sync.WaitGroup)

type QueueArg

type QueueArg struct {
	Apikey     string
	HostID     string
	TargetAddr string
	Name       string
	Snapshot   []collector.MetricsDutum
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL