pub struct Metadata {
pub start_date: Option<Timestamp>,
pub end_date: Option<Timestamp>,
pub default_source: Option<String>,
pub tier: Option<i32>,
pub syntax: Option<i32>,
pub limit: Option<i32>,
pub strict_fields_validation: Option<bool>,
pub now_date: Option<Timestamp>,
}
Expand description
configuration of query execution
Fields§
§start_date: Option<Timestamp>
beginning of the time range for the query, default: end - 15 min or current time - 15 min if end is not defined
end_date: Option<Timestamp>
end of the time range for the query, default: start + 15 min or current time if start is not defined
default_source: Option<String>
default value for source to be used when source is omitted in a query
tier: Option<i32>
tier on which query runs
syntax: Option<i32>
which syntax query is written in
limit: Option<i32>
limit number of results, default: 2000; max for TIER_FREQUENT_SEARCH: 12000; max for TIER_ARCHIVE: 50000
strict_fields_validation: Option<bool>
prohibit using unknown fields, ones which were not detected in the ingested data, default = false
now_date: Option<Timestamp>
contextual now
for the query, default: current time
Implementations§
source§impl Metadata
impl Metadata
sourcepub fn tier(&self) -> Tier
pub fn tier(&self) -> Tier
Returns the enum value of tier
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn syntax(&self) -> QuerySyntax
pub fn syntax(&self) -> QuerySyntax
Returns the enum value of syntax
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_syntax(&mut self, value: QuerySyntax)
pub fn set_syntax(&mut self, value: QuerySyntax)
Sets syntax
to the provided enum value.
sourcepub fn strict_fields_validation(&self) -> bool
pub fn strict_fields_validation(&self) -> bool
Returns the value of strict_fields_validation
, or the default value if strict_fields_validation
is unset.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Metadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Metadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Message for Metadata
impl Message for Metadata
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl Serialize for Metadata
impl Serialize for Metadata
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request