beater

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

Types

type Etcdbeat

type Etcdbeat struct {
	EbConfig config.ConfigSettings
	// contains filtered or unexported fields
}

func (*Etcdbeat) CheckConfig

func (eb *Etcdbeat) CheckConfig(b *beat.Beat) error

func (*Etcdbeat) Run

func (eb *Etcdbeat) Run(b *beat.Beat) error

func (*Etcdbeat) StatisticsCheck

func (eb *Etcdbeat) StatisticsCheck(b *beat.Beat)

func (*Etcdbeat) Stop

func (eb *Etcdbeat) Stop()

type LeaderStats

type LeaderStats struct {
	Followers map[string]struct {
		Counts struct {
			Fail    int `json:"fail"`
			Success int `json:"success"`
		} `json:"counts"`
		Latency struct {
			Average           float64 `json:"average"`
			Current           float64 `json:"current"`
			Maximum           float64 `json:"maximum"`
			Minimum           int     `json:"minimum"`
			StandardDeviation float64 `json:"standardDeviation"`
		} `json:"latency"`
	} `json:"followers"`
	Leader string `json:"leader"`
}

type SelfStats

type SelfStats struct {
	ID         string `json:"id"`
	LeaderInfo struct {
		Leader    string `json:"leader"`
		StartTime string `json:"startTime"`
		Uptime    string `json:"uptime"`
	} `json:"leaderInfo"`
	Name                 string  `json:"name"`
	RecvAppendRequestCnt int     `json:"recvAppendRequestCnt"`
	RecvBandwidthRate    float64 `json:"recvBandwidthRate"`
	RecvPkgRate          float64 `json:"recvPkgRate"`
	SendAppendRequestCnt int     `json:"sendAppendRequestCnt"`
	StartTime            string  `json:"startTime"`
	State                string  `json:"state"`
}

type StoreStats

type StoreStats struct {
	GetsSuccess             int `json:"getsSuccess"`
	GetsFail                int `json:"getsFail"`
	SetsSuccess             int `json:"setsSuccess"`
	SetsFail                int `json:"setsFail"`
	DeleteSuccess           int `json:"deleteSuccess"`
	DeleteFail              int `json:"deleteFail"`
	UpdateSuccess           int `json:"updateSuccess"`
	UpdateFail              int `json:"updateFail"`
	CreateSuccess           int `json:"createSuccess"`
	CreateFail              int `json:"createFail"`
	CompareAndSwapSuccess   int `json:"compareAndSwapSuccess"`
	CompareAndSwapFail      int `json:"compareAndSwapFail"`
	CompareAndDeleteSuccess int `json:"compareAndDeleteSuccess"`
	CompareAndDeleteFail    int `json:"compareAndDeleteFail"`
	ExpireCount             int `json:"expireCount"`
	Watchers                int `json:"watchers"`
}

Jump to

Keyboard shortcuts

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