flows

package
v0.0.0-...-02ab0c4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportableValue

type ExportableValue interface {
	// contains filtered or unexported methods
}

type Metric

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

func NewMetric

func NewMetric(samplingRate int64, computeRRPs bool, exportBufferSize uint) *Metric

func (*Metric) ExportRoutine

func (m *Metric) ExportRoutine(directory string)

Should always be called as a goroutine. Writes serialized metrics directly to disk.

func (*Metric) Flush

func (m *Metric) Flush()

Closes the exportChannel, which causes all buffered metrics to be flushed.

func (*Metric) OnTCPFlush

func (m *Metric) OnTCPFlush(flow *flows.TCPFlow)

Callback that is called by the pools, once reconstruction for a flow is done. This means that this method runs concurrently.

func (*Metric) OnUDPFlush

func (m *Metric) OnUDPFlush(flow *flows.UDPFlow)

Callback that is called by the pools, once reconstruction for a flow is done. This means that this method runs concurrently.

func (*Metric) Wait

func (m *Metric) Wait()

Waits until all metrics have been written to file.

type MetricFlowDuration

type MetricFlowDuration struct{}

type MetricFlowRate

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

type MetricFlowSize

type MetricFlowSize struct{}

type MetricPackets

type MetricPackets struct{}

type MetricProtocol

type MetricProtocol struct{}

type MetricRRPs

type MetricRRPs struct{}

type ValueFlowDuration

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

type ValueFlowRate

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

type ValueFlowSize

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

type ValuePackets

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

type ValueProtocol

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

type ValueRRPairs

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

Jump to

Keyboard shortcuts

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