explorer

package
v1.4.36 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Канал для передачи флага принудительного обновления данных из REST
	CForce chan struct{}
)

Functions

func Continue

func Continue(metrics *Metrics) http.Handler

func Pause

func Pause(metrics *Metrics) http.Handler

Types

type BaseExplorer

type BaseExplorer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

базовый класс для всех метрик

func (*BaseExplorer) Continue

func (exp *BaseExplorer) Continue()

func (*BaseExplorer) GetName

func (exp *BaseExplorer) GetName() string

func (*BaseExplorer) Pause

func (exp *BaseExplorer) Pause()

func (*BaseExplorer) Start

func (exp *BaseExplorer) Start(explorers model.IExplorers)

Своеобразный middleware

func (*BaseExplorer) StartExplore

func (exp *BaseExplorer) StartExplore()

func (*BaseExplorer) Stop

func (exp *BaseExplorer) Stop()

type BaseRACExplorer

type BaseRACExplorer struct {
	BaseExplorer
	// contains filtered or unexported fields
}

базовый класс для всех метрик собираемых через RAC

func (*BaseRACExplorer) GetClusterID

func (exp *BaseRACExplorer) GetClusterID() string

type CPU added in v1.4.19

type CPU struct {
	BaseExplorer
}

func (*CPU) Construct added in v1.4.19

func (exp *CPU) Construct(s model.Isettings, cerror chan error) *CPU

func (*CPU) GetName added in v1.4.19

func (exp *CPU) GetName() string

func (*CPU) StartExplore added in v1.4.19

func (exp *CPU) StartExplore()

type ExplorerAvailablePerformance

type ExplorerAvailablePerformance struct {
	BaseRACExplorer
	// contains filtered or unexported fields
}

func (*ExplorerAvailablePerformance) Construct

func (*ExplorerAvailablePerformance) GetName

func (exp *ExplorerAvailablePerformance) GetName() string

func (*ExplorerAvailablePerformance) StartExplore

func (exp *ExplorerAvailablePerformance) StartExplore()

type ExplorerCheckSheduleJob

type ExplorerCheckSheduleJob struct {
	BaseRACExplorer
	// contains filtered or unexported fields
}

func (*ExplorerCheckSheduleJob) Construct

func (exp *ExplorerCheckSheduleJob) Construct(s model.Isettings, cerror chan error) *ExplorerCheckSheduleJob

func (*ExplorerCheckSheduleJob) GetName

func (exp *ExplorerCheckSheduleJob) GetName() string

func (*ExplorerCheckSheduleJob) StartExplore

func (exp *ExplorerCheckSheduleJob) StartExplore()

type ExplorerClientLic

type ExplorerClientLic struct {
	BaseRACExplorer
}

func (*ExplorerClientLic) Construct

func (exp *ExplorerClientLic) Construct(s model.Isettings, cerror chan error) *ExplorerClientLic

func (*ExplorerClientLic) GetName

func (exp *ExplorerClientLic) GetName() string

func (*ExplorerClientLic) StartExplore

func (exp *ExplorerClientLic) StartExplore()

type ExplorerConnects

type ExplorerConnects struct {
	ExplorerCheckSheduleJob
}

func (*ExplorerConnects) Construct

func (exp *ExplorerConnects) Construct(s model.Isettings, cerror chan error) *ExplorerConnects

func (*ExplorerConnects) GetName

func (exp *ExplorerConnects) GetName() string

func (*ExplorerConnects) StartExplore

func (exp *ExplorerConnects) StartExplore()

type ExplorerDisk

type ExplorerDisk struct {
	BaseExplorer
}

func (*ExplorerDisk) Construct

func (exp *ExplorerDisk) Construct(s model.Isettings, cerror chan error) *ExplorerDisk

func (*ExplorerDisk) GetName

func (exp *ExplorerDisk) GetName() string

func (*ExplorerDisk) StartExplore

func (exp *ExplorerDisk) StartExplore()

type ExplorerProc

type ExplorerProc struct {
	BaseExplorer
}

func (*ExplorerProc) Construct

func (exp *ExplorerProc) Construct(s model.Isettings, cerror chan error) *ExplorerProc

func (*ExplorerProc) ContainsProc

func (exp *ExplorerProc) ContainsProc(procname string) bool

func (*ExplorerProc) GetName

func (exp *ExplorerProc) GetName() string

func (*ExplorerProc) StartExplore

func (exp *ExplorerProc) StartExplore()

type ExplorerSessions

type ExplorerSessions struct {
	ExplorerCheckSheduleJob
}

func (*ExplorerSessions) Construct

func (exp *ExplorerSessions) Construct(s model.Isettings, cerror chan error) *ExplorerSessions

func (*ExplorerSessions) GetName

func (exp *ExplorerSessions) GetName() string

func (*ExplorerSessions) StartExplore

func (exp *ExplorerSessions) StartExplore()

type ExplorerSessionsMemory

type ExplorerSessionsMemory struct {
	ExplorerSessions
}

func (*ExplorerSessionsMemory) Construct

func (exp *ExplorerSessionsMemory) Construct(s model.Isettings, cerror chan error) *ExplorerSessionsMemory

func (*ExplorerSessionsMemory) GetName

func (exp *ExplorerSessionsMemory) GetName() string

func (*ExplorerSessionsMemory) StartExplore

func (exp *ExplorerSessionsMemory) StartExplore()

type Iproc

type Iproc interface {
	PID() int
	Name() string
	ResidentMemory() int
	CPUTime() float64
	VirtualMemory() int
	GetAllProc() []Iproc
}

type Metrics

type Metrics struct {
	Explorers []model.Iexplorer
	Metrics   []string // метрики
}

func (*Metrics) Append

func (exp *Metrics) Append(ex ...model.Iexplorer)

func (*Metrics) Construct

func (exp *Metrics) Construct(set model.Isettings) *Metrics

func (*Metrics) Contains

func (exp *Metrics) Contains(name string) bool

Directories

Path Synopsis
Package mock_model is a generated GoMock package.
Package mock_model is a generated GoMock package.

Jump to

Keyboard shortcuts

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