feat: add proxy and statistics features
This commit is contained in:
@ -95,14 +95,50 @@ message UpdateCheckResult {
|
||||
string error = 6;
|
||||
}
|
||||
|
||||
message ProcessInfo {
|
||||
uint32 pid = 1;
|
||||
string name = 2;
|
||||
string cmd = 3;
|
||||
double cpu_pct = 4;
|
||||
uint64 mem_rss = 5;
|
||||
}
|
||||
|
||||
message NetworkInterfaceStats {
|
||||
string name = 1;
|
||||
uint64 bytes_recv = 2;
|
||||
uint64 bytes_sent = 3;
|
||||
uint64 bytes_recv_rate = 4; // bytes/s since last snapshot
|
||||
uint64 bytes_sent_rate = 5;
|
||||
}
|
||||
|
||||
message DiskStats {
|
||||
string path = 1;
|
||||
uint64 total = 2;
|
||||
uint64 used = 3;
|
||||
uint64 free = 4;
|
||||
}
|
||||
|
||||
message StatsSnapshot {
|
||||
double cpu_pct = 1;
|
||||
repeated double cpu_per_core = 2;
|
||||
uint64 mem_total = 3;
|
||||
uint64 mem_used = 4;
|
||||
uint64 mem_available = 5;
|
||||
repeated NetworkInterfaceStats net_interfaces = 6;
|
||||
repeated ProcessInfo processes = 7;
|
||||
repeated DiskStats disks = 8;
|
||||
int64 timestamp = 9;
|
||||
}
|
||||
|
||||
message AgentMessage {
|
||||
oneof payload {
|
||||
AgentHandshake handshake = 1;
|
||||
ContainerSnapshot snapshot = 2;
|
||||
CommandResult result = 3;
|
||||
LogChunk log_chunk = 4;
|
||||
FileResult file_result = 5;
|
||||
AgentHandshake handshake = 1;
|
||||
ContainerSnapshot snapshot = 2;
|
||||
CommandResult result = 3;
|
||||
LogChunk log_chunk = 4;
|
||||
FileResult file_result = 5;
|
||||
UpdateCheckResult update_check_result = 6;
|
||||
StatsSnapshot stats_snapshot = 7;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user