add daemon killcount and lastpoll
This commit is contained in:
parent
9dfcbb0432
commit
13159b5b64
|
@ -22,6 +22,10 @@ func (c *Cluster) GetDropletsPB() *Droplets {
|
||||||
return c.d
|
return c.d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Cluster) GetEventsPB() *Events {
|
||||||
|
return c.e
|
||||||
|
}
|
||||||
|
|
||||||
// adds a new droplet. enforce unique hostnames
|
// adds a new droplet. enforce unique hostnames
|
||||||
func (c *Cluster) AddDroplet(newd *Droplet) bool {
|
func (c *Cluster) AddDroplet(newd *Droplet) bool {
|
||||||
c.Lock()
|
c.Lock()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package virtpb;
|
package virtpb;
|
||||||
|
|
||||||
// global settings for autogenpb `autogenpb:mutex`
|
import "google/protobuf/timestamp.proto";
|
||||||
|
|
||||||
message Hypervisors { // `autogenpb:marshal` `autogenpb:gui`
|
message Hypervisors { // `autogenpb:marshal` `autogenpb:gui`
|
||||||
string uuid = 1; // `autogenpb:uuid:6e3aa8b9-cf98-40f6-af58-3c6ad1edf4d4`
|
string uuid = 1; // `autogenpb:uuid:6e3aa8b9-cf98-40f6-af58-3c6ad1edf4d4`
|
||||||
|
@ -18,6 +18,8 @@ message Hypervisor {
|
||||||
string comment = 6;
|
string comment = 6;
|
||||||
bool autoscan = 7; // to scan or not to scan by virtigo
|
bool autoscan = 7; // to scan or not to scan by virtigo
|
||||||
HypervisorArch arch = 8;
|
HypervisorArch arch = 8;
|
||||||
|
int64 killcount = 9; // in bytes
|
||||||
|
google.protobuf.Timestamp lastPoll = 10; // the last time we heard anything
|
||||||
}
|
}
|
||||||
|
|
||||||
// think about this more
|
// think about this more
|
||||||
|
|
Loading…
Reference in New Issue