Struct usiem::components::command::QueryInfo
source · pub struct QueryInfo {
pub user: String,
pub is_native: bool,
pub query_id: Option<String>,
pub from: i64,
pub to: i64,
pub limit: usize,
pub offset: usize,
pub ttl: i64,
pub query: String,
pub fields: Vec<String>,
}
Fields
user: String
The user that created the query pettition
is_native: bool
Use storage native query language: SQL, Elastic
query_id: Option<String>
If there are alredy a query resolved, make a query agaist it
from: i64
Starting time for event_created: Unix datetime from 1970
to: i64
Ending time for event_created: Unix datetime from 1970
limit: usize
Number of rows returned
offset: usize
Offseting the query
ttl: i64
Time to live of the query results
query: String
If empty and query_id has something, then return the stored query
fields: Vec<String>
List of fields to be returned, empty for all
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for QueryInfo
impl Send for QueryInfo
impl Sync for QueryInfo
impl Unpin for QueryInfo
impl UnwindSafe for QueryInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more