Documentation ¶
Index ¶
- type UInt64Stat
- func (s *UInt64Stat) AddNewDelta(newDelta uint64) error
- func (s *UInt64Stat) GetAggr() uint64
- func (s *UInt64Stat) GetDelta() uint64
- func (s *UInt64Stat) ResetDeltaValues()
- func (s *UInt64Stat) SetNewAggr(newAggr uint64) error
- func (s *UInt64Stat) SetNewDelta(newDelta uint64) error
- func (s *UInt64Stat) SetNewDeltaValue(newDelta uint64, sum bool) error
- func (s UInt64Stat) String() string
- type UInt64StatCollection
- func (s *UInt64StatCollection) AddDeltaStat(key string, newDelta uint64)
- func (s *UInt64StatCollection) ResetDeltaValues()
- func (s *UInt64StatCollection) SetAggrStat(key string, newAggr uint64)
- func (s *UInt64StatCollection) SetDeltaStat(key string, newDelta uint64)
- func (s UInt64StatCollection) String() string
- func (s *UInt64StatCollection) SumAllAggrValues() uint64
- func (s *UInt64StatCollection) SumAllDeltaValues() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type 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 struct {
Stat map[string]*UInt64Stat
}
UInt64StatCollection keeps a collection of 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)