Commit 36b908c
committed
fix: reject victorialogs raw rows query missing start/end args
monit-query rows dispatched --ds-type victorialogs with
--args victorialogs.type=raw straight to the backend without
checking for victorialogs.start/victorialogs.end. The backend
silently returns null (HTTP 200, exit 0) instead of an error,
which caused an agent session to retry the same broken call
~10+ times before finding the doc that explains the raw-mode
contract. Validate this known-bad combination client-side
before dispatch, mirroring the existing required-flags check
in the same RunE.1 parent 45677ff commit 36b908c
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
0 commit comments