17 #include <glibtop/cpu.h>
18 #include <glibtop/mem.h>
19 #include <glibtop/netlist.h>
20 #include <glibtop/netload.h>
37 std::string
json(
const std::string
name = {
"static"})
const override;
void process() override
Process function.
void speed(ObSensor *s1, ObSensor *s2, int timeout=1000) override
Calculate time change (speed)
System Obmon sensor class.
ObSensorSystem(std::string name={"sys"})
glibtop_mem mem() const
returns glibtop_mem
std::vector< std::string > _netnames
list of network names
glibtop_netlist netlist() const
returns glibtop_netlist
std::string name() const
Returns name of sensor.
std::vector< glibtop_netload * > netloads() const
returns netloads
glibtop_mem _mem
Mem info from glitop.
std::string json(const std::string name={"static"}) const override
glibtop_cpu _cpu
Cpu info from glitop.
glibtop_cpu cpu() const
returns glibtop_cpu
virtual ~ObSensorSystem()
glibtop_netlist _netlist
NetList from glitop.
std::vector< glibtop_netload * > _netloads
List of netload.