feat(monit): add datasource tool invocation and refresh investigation commands - #180
Merged
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.
新增生成命令 fduty monit datasource-tools-invoke,通过 SDK 单工具请求调用新版诊断。params 使用 --data(支持 stdin),自由查询继续 monit-query data;旧 diagnose 保留供既有调用者,Agent 入口限定 host。
生成器将 RawMessage 参数保持为 body-only;JSON 参数解析保留数字精度。输出保留工具身份和嵌套证据,TOON 中无法无损表示的数值使用十进制字符串。create/update 在 SDK 绑定前拒绝 enabled/alerting_enabled 的显式 null,false 和遗漏保持独立语义。同步相关命令卡片和路由说明。
依赖已固定到 SDK v0.15.0 正式版本,无本地 replace 或 workspace 依赖。
验证:GOWORK=off go test -race ./...、构建、命令卡片校验、生成无漂移、静态检查通过。使用新 CLI 经生产公开网关完成授权 Redis 只读 E2E:发现数据源、overview 成功、超限 slowlog 正确失败并显示 reason/request ID。
发布依赖:先合入 SDK,再合入并正式发布 CLI;随后 runner 更新真实 CLI 版本及四平台官方校验和,按既有流程构建发布。不要以本 PR 合并推定运行中的 Safari CLI 已更新。
配套 PR: