Skip to content

feat(monit): add typed datasource tools and preserve configuration intent - #68

Merged
ysyneu merged 2 commits into
mainfrom
feat/monit-datasource-skills
Sep 6, 2026
Merged

feat(monit): add typed datasource tools and preserve configuration intent#68
ysyneu merged 2 commits into
mainfrom
feat/monit-datasource-skills

Conversation

@UlricQin

@UlricQin UlricQin commented Sep 6, 2026

Copy link
Copy Markdown
Member

新增 DataSources.ToolsInvoke,消费正式 OpenAPI 契约。请求 params 与结果 data 使用 json.RawMessage,保留整数和小数精度;错误携带并显示 reason 与 request ID,不自动重放。

补齐数据源新类型与配置。Enabled/AlertingEnabled 使用 *bool,区分遗漏与显式 false;相关秘密字段同样保留遗漏与清空语义。兼容提示:手写 DataSourceUpsertRequest.Enabled 赋值需要改为指针。旧 diagnose 方法保留并标记弃用,Agent 说明限定 host。

只同步本次 Monitors 契约增量,未捎带上游既有 RUM/Schedules 漂移或全量排序变化。

验证:go test ./...、go test -race ./...、生成无漂移、focused HTTP roundtrip(JSON精度、错误不重放、false/遗漏/秘密字段)。

配套 PR:

@ysyneu
ysyneu merged commit 35f0cb1 into main Sep 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants