You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short: "Structured datasource query (returns a stable query_result.v1: frames/records/samples)",
96
+
Long: curatedLong("Structured datasource query returning the stable query_result.v1 result — frames, records, or samples — instead of the legacy flattened rows.", "Diagnostics", "QueryData"),
cmd.Flags().Int64Var(&delaySeconds, "delay-seconds", 0, "Look-back offset in seconds for point-in-time queries (default 0)")
131
+
cmd.Flags().StringSliceVar(&argsKV, "args", nil, "Arg entries KEY=VALUE (repeatable; values must be strings per monit-query contract). "+
132
+
"For loki/victorialogs raw mode, <ds-type>.start/<ds-type>.end accept a relative duration ('15m'), 'now', a date/RFC3339 timestamp, "+
133
+
"or a unix epoch in seconds or milliseconds — normalized to the form the datasource requires before sending")
134
+
135
+
returncmd
136
+
}
137
+
85
138
funcnewMonitQueryRowsCmd() *cobra.Command {
86
139
var (
87
140
dsType, dsName, exprstring
88
141
argsKV []string
89
142
)
90
143
91
144
cmd:=&cobra.Command{
92
-
Use: "rows",
93
-
Short: "Raw datasource passthrough (returns values/rows as the datasource itself would)",
94
-
Long: curatedLong("Raw datasource passthrough returning values/rows as the datasource itself would.", "Diagnostics", "QueryRows"),
145
+
Use: "rows",
146
+
Short: "Raw datasource passthrough (returns values/rows as the datasource itself would). Deprecated — prefer 'monit-query data'",
147
+
Deprecated: "use 'monit-query data' instead",
148
+
Long: curatedLong("Deprecated. Raw datasource passthrough returning values/rows as the datasource itself would. Migrate to 'monit-query data', which preserves frames/records/samples without forcing results into legacy rows.", "Diagnostics", "QueryRows"),
0 commit comments