mo

package
v0.0.0-...-f7687f2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	GetTotalConsumer() map[string]uint64
	GetTotalConn() uint64
	GetTotalTopic() uint64
	GetMessageIn() uint64
	GetMessageOut() uint64
}

DataSource DataSource

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor Monitor

func NewMonitor

func NewMonitor(dataSource DataSource) *Monitor

NewMonitor NewMonitor

func (*Monitor) Monitor

func (mo *Monitor) Monitor(duration time.Duration) *Snapshot

Monitor Monitor

type Snapshot

type Snapshot struct {
	CPUPercent        float64
	MemPercent        float64
	AverageNetIn      uint64
	AverageNetOut     uint64
	Thread            uint64
	Goroutine         uint64
	TotalConn         uint64
	TotalTopic        uint64
	TotalConsumer     uint64
	MaxConsumer       uint64
	TotalMessageIn    uint64
	AverageMessageIn  uint64
	TotalMessageOut   uint64
	AverageMessageOut uint64
}

Snapshot Snapshot

Jump to

Keyboard shortcuts

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