github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/src/server/proto/fleetspeak_server/resource.proto (about) 1 syntax = "proto3"; 2 3 package fleetspeak.server; 4 5 import "google/protobuf/timestamp.proto"; 6 7 option go_package = "github.com/google/fleetspeak/fleetspeak/src/server/proto/fleetspeak_server"; 8 9 // Represents client resource-usage data in the data-store. 10 // Next id: 15 11 message ClientResourceUsageRecord { 12 // Name of the client service that resource usage is charged/attributed to 13 // e.g 'system' for the system Fleetspeak service, or the name of a daemon 14 // service as specified in its config. 15 string scope = 1; 16 17 int64 pid = 2; 18 google.protobuf.Timestamp process_start_time = 3; 19 20 // When the resource-usage metrics were measured on the client. 21 google.protobuf.Timestamp client_timestamp = 4; 22 23 // When the resource usage record was written to the data-store. 24 google.protobuf.Timestamp server_timestamp = 5; 25 26 // If true, indicates that the process has terminated, and that this is 27 // the final resource-usage record for that process. 28 bool process_terminated = 12; 29 30 // CPU-usage is in millis per second. 31 float mean_user_cpu_rate = 6; 32 float max_user_cpu_rate = 7; 33 float mean_system_cpu_rate = 8; 34 float max_system_cpu_rate = 9; 35 36 int32 mean_resident_memory_mib = 10; 37 int32 max_resident_memory_mib = 11; 38 39 int32 mean_num_fds = 13; 40 int32 max_num_fds = 14; 41 }