Repository navigation
feat: 增加本机资源采集能力(1/4) - #559
Open
baishiyaya-cmd wants to merge 1 commit into
Open
baishiyaya-cmd wants to merge 1 commit into
baishiyaya-cmd wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
用户结果
为资源监控提供本机采集能力:CPU、内存、网络、文件系统容量、进程使用情况、NVIDIA GPU 和 Docker 容器及端口映射。本 PR 只实现类型化采集接口和相关行为测试,尚未增加用户可见的侧栏入口。
这是资源监控系列的第 1/4 阶段,针对上游 main 的计入改动为 1,064 行,低于 1,500 行限制。
设计边界
验证依据
已执行定向 Rust 格式化、暂存差异空白检查,以及针对 upstream/main 的架构静态检查,均通过。
本阶段保留进程排序、Docker 查询范围和端口语义、GPU 缺失值、取消及网卡变化等行为测试。本地尚未执行 Cargo 编译、Rust 测试或真实 GPU/Docker 集成验证。
GitHub 在提交 e959804 上显示 pr-size、lint、architecture-contracts 和五个平台的 Native tests 检查均通过。实际设备集成验证尚未完成;已转为正式待审阅 PR,不表示已获合并批准。
本地 AGENTS.md 和开发指南已排除。
后续阶段
后续行数针对各自前一阶段计算。各阶段依次合入上游后再提交下一阶段,避免将尚未合并的前置代码重复计入。完整原始草稿为 #558,拆分后由本系列取代。
必须确认