gather

package
v9.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuStater

type CpuStater interface {
	GetPercentage() (int, error)
}

type DatabaseClient

type DatabaseClient interface {
	ShowGlobalStatus() (map[string]string, error)
	ShowGlobalVariables() (map[string]string, error)
	ShowSlaveStatus() (map[string]string, error)
	HeartbeatStatus() (map[string]string, error)
	ServicePlansDiskAllocated() (map[string]string, error)
	IsAvailable() bool
	IsFollower() (bool, error)
}

type Gatherer

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

func NewGatherer

func NewGatherer(client DatabaseClient, stater Stater, cpuStater CpuStater) *Gatherer

func (Gatherer) BrokerStats

func (g Gatherer) BrokerStats() (map[string]string, error)

func (Gatherer) CPUStats

func (g Gatherer) CPUStats() (map[string]string, error)

func (*Gatherer) DatabaseMetadata

func (g *Gatherer) DatabaseMetadata() (globalStatus map[string]string, globalVariables map[string]string, err error)

func (Gatherer) DiskStats

func (g Gatherer) DiskStats() (map[string]string, error)

func (Gatherer) FollowerMetadata

func (g Gatherer) FollowerMetadata() (slaveStatus map[string]string, heartbeatStatus map[string]string, err error)

func (Gatherer) IsDatabaseAvailable

func (g Gatherer) IsDatabaseAvailable() bool

func (Gatherer) IsDatabaseFollower

func (g Gatherer) IsDatabaseFollower() (bool, error)

type Stater

type Stater interface {
	Stats(path string) (bytesFree, bytesTotal, inodesFree, inodesTotal uint64, err error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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