5 #ifndef vnsw_agent_vm_stat_h
6 #define vnsw_agent_vm_stat_h
9 #include <sandesh/common/vns_types.h>
10 #include <virtual_machine_types.h>
11 #include <boost/uuid/uuid_io.hpp>
22 typedef boost::function<void(void)>
DoneCb;
34 void ReadData(
const boost::system::error_code &ec,
size_t read_bytes,
57 boost::asio::posix::stream_descriptor
input_;
72 #endif // vnsw_agent_vm_stat_h
std::vector< double > vcpu_usage_percent_
time_t prev_cpu_snapshot_time_
void ExecCmd(std::string cmd, DoneCb cb)
bool BuildVmMsg(UveVirtualMachineAgent *uve)
VrouterAgentVmState::type vm_state_
static const uint32_t kRetryCount
bool BuildVmStatsMsg(VirtualMachineStats *uve)
void ReadData(const boost::system::error_code &ec, size_t read_bytes, DoneCb &cb)
uint16_t prev_vm_cpu_count_
VrouterAgentVmState::type prev_vm_state_
DISALLOW_COPY_AND_ASSIGN(VmStat)
uint32_t virt_memory_peak_
VmStat(Agent *agent, const boost::uuids::uuid &vm_uuid)
std::vector< double > prev_vcpu_usage_
uint32_t vm_memory_quota_
virtual bool TimerExpiry()
boost::asio::posix::stream_descriptor input_
static const uint16_t kInvalidCpuCount
bool marked_delete() const
boost::function< void(void)> DoneCb
static const size_t kBufLen
const boost::uuids::uuid vm_uuid_
time_t prev_vcpu_snapshot_time_