exporter

package
v0.0.0-...-b3ece4c Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
}

func (*Exporter) Increment

func (exporter *Exporter) Increment(flow *flow.FlowMessage)

Increment updates the counters by one flow

func (*Exporter) IncrementCtrl

func (exporter *Exporter) IncrementCtrl(topic string, partition int32, offset int64)

IncrementCtrl updates the kafka offset counters

func (*Exporter) RemoveTopHost

func (exporter *Exporter) RemoveTopHost(topHostType TopHostType, cid uint32, ipSrc string, ipDst string, peer string)

RemoveTopHost removes the host from the counter vector

func (*Exporter) TopHost

func (exporter *Exporter) TopHost(topHostType TopHostType, cid uint32, ipSrc string, ipDst string, peer string, value uint64)

TopHost updates one entry for Top Hosts

type TopHostType

type TopHostType int32

TopHostType defines whether the top host is bytes or connections

const (
	// TopHostTypeBytes defines type byte of TopHostType
	TopHostTypeBytes TopHostType = 0
	// TopHostTypeConnections defines type connections of TopHostType
	TopHostTypeConnections TopHostType = 1
)

Jump to

Keyboard shortcuts

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