22 lines
601 B
Protocol Buffer
22 lines
601 B
Protocol Buffer
|
|
syntax = "proto3";
|
|||
|
|
|
|||
|
|
package cmvr.config;
|
|||
|
|
|
|||
|
|
// 文件夹监控配置
|
|||
|
|
message FolderConfig {
|
|||
|
|
string fileDir = 1; // 文件夹路径
|
|||
|
|
int32 maxVolume = 2; // 最大容量(MB)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 磁盘监控配置
|
|||
|
|
message DiskMonitorConfig {
|
|||
|
|
string id = 1; // 监控器ID,如 "file_monitor"
|
|||
|
|
int32 freq = 2; // 监控频率(Hz)
|
|||
|
|
repeated FolderConfig folders = 3; // 要监控的文件夹列表
|
|||
|
|
bool enable = 4; // 是否启用
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
// 监控管理器配置
|
|||
|
|
message MonitorManagerConfig {
|
|||
|
|
DiskMonitorConfig disk_monitor = 1; // 磁盘监控配置
|
|||
|
|
}
|