Apollo 11.0
自动驾驶开放平台
resource_statistic.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.resource_statistic;
4
6
8 message DiskConf {
9 // note: support regular matching,
10 // such as sd[a-z].*, nvme.*
11 // as we use c++ regex function, you can not write a raw string,
12 // such as [\w]+ should be [\\w]+
13
14 // device name list that need statistic load, such as sda*, nvme0n1
15 repeated string device = 1;
16 }
17 // disk config
18 optional DiskConf disk_conf = 1;
19}
20
21message CpuMetric {
22 // cpu average usage percent
23 optional float usage = 1;
24 // maximum temperature of all cpu cores
25 optional float temperature = 2;
26}
27message MemoryMetric {
28 // memory used MB
29 optional uint64 used_mb = 1;
30 // memory available MB
31 optional uint64 available_mb = 2;
32 // memory total MB
33 optional uint64 total_mb = 3;
34 // memory use percent
35 optional float usage = 4;
36}
37message DiskMetric {
38 message Metric {
39 // device name
40 required string name = 1;
41 // in GB
42 optional uint32 used_gb = 2;
43 optional uint32 available_gb = 3;
44 optional uint32 total_gb = 4;
45 // use rate
46 optional float usage = 5;
47 // load rate
48 optional float load = 6;
49 }
50 repeated Metric devices = 1;
51}
52message GpuMetric {
53 // gpu average usage percent
54 optional float usage = 2;
55 // gpu device temperature
56 optional float temperature = 3;
57}
59 optional apollo.common.Header header = 1;
60 optional CpuMetric cpu = 2;
61 optional MemoryMetric memory = 3;
62 optional DiskMetric disk = 4;
63 optional GpuMetric gpu = 5;
64}
first check imutoantoffset saved in device
Definition readme.txt:2
apollo::common
class register implement
Definition arena_queue.h:37