types

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UInt64Stat

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

func NewUInt64Stat added in v0.7.11

func NewUInt64Stat(aggr, delta uint64) *UInt64Stat

func (*UInt64Stat) AddNewDelta

func (s *UInt64Stat) AddNewDelta(newDelta uint64) error

AddNewDelta add a new read (process) delta value (e.g., from bpf table that is reset, computed delta energy)

func (*UInt64Stat) GetAggr

func (s *UInt64Stat) GetAggr() uint64

func (*UInt64Stat) GetDelta

func (s *UInt64Stat) GetDelta() uint64

func (*UInt64Stat) ResetDeltaValues

func (s *UInt64Stat) ResetDeltaValues()

ResetDelta resets current value

func (*UInt64Stat) SetNewAggr

func (s *UInt64Stat) SetNewAggr(newAggr uint64) error

SetNewAggr set new read aggregated value (e.g., from cgroup, energy files)

func (*UInt64Stat) SetNewDelta

func (s *UInt64Stat) SetNewDelta(newDelta uint64) error

SetNewDelta replace the delta value with a new (node) read delta value (e.g., from bpf table that is reset, computed delta energy)

func (*UInt64Stat) SetNewDeltaValue

func (s *UInt64Stat) SetNewDeltaValue(newDelta uint64, sum bool) error

SetNewDeltaValue sum or replace the delta value with a new read delta value

func (*UInt64Stat) String

func (s *UInt64Stat) String() string

type UInt64StatCollection

type UInt64StatCollection map[string]*UInt64Stat

func NewUInt64StatCollection

func NewUInt64StatCollection() UInt64StatCollection

func (UInt64StatCollection) AddDeltaStat

func (s UInt64StatCollection) AddDeltaStat(key string, newDelta uint64)

func (UInt64StatCollection) ResetDeltaValues

func (s UInt64StatCollection) ResetDeltaValues()

func (UInt64StatCollection) SetAggrStat

func (s UInt64StatCollection) SetAggrStat(key string, newAggr uint64)

func (UInt64StatCollection) SetDeltaStat

func (s UInt64StatCollection) SetDeltaStat(key string, newDelta uint64)

func (UInt64StatCollection) String

func (s UInt64StatCollection) String() string

func (UInt64StatCollection) SumAllAggrValues

func (s UInt64StatCollection) SumAllAggrValues() uint64

SumAllAggrValues aggregates the aggregated metrics of all sources (i.e., stat keys)

func (UInt64StatCollection) SumAllDeltaValues

func (s UInt64StatCollection) SumAllDeltaValues() uint64

SumAllDeltaValues aggregates the delta metrics of all sources (i.e., stat keys)

Jump to

Keyboard shortcuts

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