cmvr-es/protos/cmvr/config/monitor_config/monitor_config.proto
2026-06-17 13:52:49 +08:00

22 lines
601 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; // 磁盘监控配置
}