beater

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0 Imports: 10 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)

New creates an instance of couchdbbeat.

Types

type Couchdb

type Couchdb struct {
	OpenOsFiles     General `json:"open_os_files"`
	OpenDatabases   General `json:"open_databases"`
	AuthCacheHits   General `json:"auth_cache_hits"`
	RequestTime     General `json:"request_time"`
	DatabaseReads   General `json:"database_reads"`
	DatabaseWrites  General `json:"database_writes"`
	AuthCacheMisses General `json:"auth_cache_misses"`
}

Couchdb type defines couchdb fields of the Couchdbbeat

type Couchdbbeat

type Couchdbbeat struct {
	CbConfig config.ConfigSettings
	// contains filtered or unexported fields
}

Couchdbbeat configuration.

func (*Couchdbbeat) CheckConfig

func (cb *Couchdbbeat) CheckConfig(b *beat.Beat) error

func (*Couchdbbeat) Run

func (cb *Couchdbbeat) Run(b *beat.Beat) error

Run starts couchdbbeat.

func (*Couchdbbeat) Stop

func (cb *Couchdbbeat) Stop()

Stop stops couchdbbeat.

type General

type General struct {
	Description string  `json:"description"`
	Current     float64 `json:"current"`
	Sum         float64 `json:"sum"`
	Mean        float64 `json:"mean"`
	Stddev      float64 `json:"stddev"`
	Min         float64 `json:"min"`
	Max         float64 `json:"max"`
}

General type defines common fields of the Couchdbbeat

type Httpd

type Httpd struct {
	ViewReads                General `json:"view_reads"`
	BulkRequests             General `json:"bulk_requests"`
	ClientsRequestingChanges General `json:"clients_requesting_changes"`
	TemporaryViewReads       General `json:"temporary_view_reads"`
	Requests                 General `json:"requests"`
}

Httpd type defines httpd fields of the Couchdbbeat

type HttpdRequestMethods

type HttpdRequestMethods struct {
	Copy   General `json:"COPY"`
	Head   General `json:"HEAD"`
	Post   General `json:"POST"`
	Delete General `json:"DELETE"`
	Get    General `json:"GET"`
	Put    General `json:"PUT"`
}

HttpdRequestMethods type defines httpd requests methods fields of the Couchdbbeat

type HttpdStatusCodes

type HttpdStatusCodes struct {
	Num200 General `json:"200"`
	Num201 General `json:"201"`
	Num202 General `json:"202"`
	Num301 General `json:"301"`
	Num304 General `json:"304"`
	Num400 General `json:"400"`
	Num401 General `json:"401"`
	Num403 General `json:"403"`
	Num404 General `json:"404"`
	Num405 General `json:"405"`
	Num409 General `json:"409"`
	Num412 General `json:"412"`
	Num500 General `json:"500"`
}

HttpdStatusCodes type defines httpd status codes fields of the Couchdbbeat

type Server

type Server struct {
	Httpd               Httpd               `json:"httpd"`
	HttpdRequestMethods HttpdRequestMethods `json:"httpd_request_methods"`
	HttpdStatusCodes    HttpdStatusCodes    `json:"httpd_status_codes"`
	Couchdb             Couchdb             `json:"couchdb"`
}

Server type defines all fields of the Couchdbbeat

Jump to

Keyboard shortcuts

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