Apollo
11.0
自动驾驶开放平台
resource_statistic.proto
浏览该文件的文档.
1
syntax
=
"proto2"
;
2
3
package
apollo.resource_statistic;
4
5
import
"
modules/common_msgs/basic_msgs/header.proto
";
6
7
message
ResourceStatisticConf
{
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
21
message
CpuMetric
{
22
// cpu average usage percent
23
optional
float
usage = 1;
24
// maximum temperature of all cpu cores
25
optional
float
temperature = 2;
26
}
27
message
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
}
37
message
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
}
52
message
GpuMetric
{
53
// gpu average usage percent
54
optional
float
usage = 2;
55
// gpu device temperature
56
optional
float
temperature = 3;
57
}
58
message
ResourceMetrics
{
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
}
device
first check imutoantoffset saved in device
Definition
readme.txt:2
header.proto
apollo::common
apollo::common
apollo
class register implement
Definition
arena_queue.h:37
syntax
syntax
Definition
resource_statistic.proto:1
apollo::common::Header
Definition
header.proto:7
apollo::resource_statistic::CpuMetric
Definition
resource_statistic.proto:21
apollo::resource_statistic::DiskMetric::Metric
Definition
resource_statistic.proto:38
apollo::resource_statistic::DiskMetric
Definition
resource_statistic.proto:37
apollo::resource_statistic::GpuMetric
Definition
resource_statistic.proto:52
apollo::resource_statistic::MemoryMetric
Definition
resource_statistic.proto:27
apollo::resource_statistic::ResourceMetrics
Definition
resource_statistic.proto:58
apollo::resource_statistic::ResourceStatisticConf::DiskConf
Definition
resource_statistic.proto:8
apollo::resource_statistic::ResourceStatisticConf
Definition
resource_statistic.proto:7
modules
statistics_msgs
resource_statistic.proto