feat(monit-query): add data command, deprecate rows - #151
Merged
Conversation
- New curated 'monit-query data' for the structured /monit/query/data endpoint (query_result.v1: frames/records/samples); flags mirror the rows command plus --delay-seconds, ds-type enum covers all 9 sources. - 'monit-query rows' marked Deprecated (runtime warning), kept for the migration period. - Bump go-flashduty v0.12.0 -> v0.13.1: adopt the *bool notification fields (explicit follow_preference=false sent whenever channels are given; template-only keeps the server default) and regenerate the command layer + skill cards. - monit-query card routes agents to data; rows documented as migration fallback.
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-query data— 结构化查询POST /monit/query/data,返回稳定query_result.v1(frames/records/samples):--delay-seconds;rows 标记 Deprecated(运行时有 warning 提示迁移),并行期保留可用。
SDK bump v0.12.0 → v0.13.1:
FollowPreference *bool:给定了--notify-channel时显式发follow_preference=false(新服务端契约下频道生效);仅--template-id时保持服务端默认(个人偏好),不会静默抑制通知;验证
go build/go vet/go test ./...全绿go run ./internal/cmd/skilldoc checkcards OK