monitor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InboundSubject             = chanPrefix + "Inbound"
	StackListSubject           = chanPrefix + "Stack.List"
	StackServiceHistorySubject = chanPrefix + "Stack.ServiceHistory"
)

Variables

View Source
var (
	ErrAddProcessInfo = errors.New("AddProcessInfo")
	ErrInternalError  = errors.New("InternalError")
)

Functions

This section is empty.

Types

type Clock

type Clock struct {
	Start time.Time
	Clock time.Duration
}

func (*Clock) CPU

func (p *Clock) CPU() float64

func (*Clock) Init

func (p *Clock) Init()

type Grabber added in v0.1.0

type Grabber int

func (*Grabber) Run added in v0.1.0

func (p *Grabber) Run(ctx context.Context)

type ProcessusGrabber added in v0.1.0

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

func NewProcessusGrabber added in v0.1.0

func NewProcessusGrabber(ctx context.Context, interval time.Duration) *ProcessusGrabber

func (*ProcessusGrabber) Run added in v0.1.0

func (p *ProcessusGrabber) Run(ctx context.Context, numWorkers int)

type StackListService added in v0.1.0

type StackListService struct {
	Since       time.Duration
	Services    []string
	ProcessInfo []model.ProcessInfo
}

func (*StackListService) Decode added in v0.1.0

func (p *StackListService) Decode(data []byte) error

func (*StackListService) Encode added in v0.1.0

func (p *StackListService) Encode() ([]byte, error)

type StackServiceHistory added in v0.1.0

type StackServiceHistory struct {
	AppName string
	From    time.Time
	To      time.Time
	Step    time.Duration
	Round   time.Duration
	History []model.ProcessInfo
}

func (*StackServiceHistory) Decode added in v0.1.0

func (p *StackServiceHistory) Decode(data []byte) error

func (*StackServiceHistory) Encode added in v0.1.0

func (p *StackServiceHistory) Encode() ([]byte, error)

Directories

Path Synopsis
cmd
monitor
Logger grabber fetch entries from redis
Logger grabber fetch entries from redis

Jump to

Keyboard shortcuts

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