Merge ticket 045: timeline/log ordering by declared param
This commit is contained in:
+9
-1
@@ -78,8 +78,16 @@ pub struct LogsParams {
|
||||
pub start_ms: Option<i64>,
|
||||
pub end_ms: Option<i64>,
|
||||
pub limit: Option<usize>,
|
||||
/// Raw FilterBar query string, e.g. `regex("error") and sequence<5`.
|
||||
/// Raw FilterBar query string, e.g. `regex("error") and ottyl_seq<5`.
|
||||
pub filter: Option<String>,
|
||||
/// Ticket 045: an already-declared param name to order the returned entries by, in place of the
|
||||
/// default ingest order (which tracks `ottyl_ts`). `None` (the default) leaves ordering
|
||||
/// unchanged.
|
||||
pub sort_by: Option<String>,
|
||||
/// Ticket 045: only meaningful alongside `sort_by`. `true` (the default) orders lines missing
|
||||
/// that param among themselves by `ottyl_seq` and appends them after the sorted lines; `false`
|
||||
/// drops those lines from the response entirely.
|
||||
pub sort_missing_fallback: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user