pub struct SlowQueryOptions {
pub enable: bool,
pub record_type: SlowQueriesRecordType,
pub threshold: Option<Duration>,
pub sample_ratio: Option<f64>,
pub ttl: Option<String>,
}
Expand description
The options of slow query.
Fields§
§enable: bool
Whether to enable slow query log.
record_type: SlowQueriesRecordType
The record type of slow queries.
threshold: Option<Duration>
The threshold of slow queries.
sample_ratio: Option<f64>
The sample ratio of slow queries.
ttl: Option<String>
The table TTL of slow_queries
system table. Default is “30d”.
It’s used when record_type
is SystemTable
.
Trait Implementations§
Source§impl Clone for SlowQueryOptions
impl Clone for SlowQueryOptions
Source§fn clone(&self) -> SlowQueryOptions
fn clone(&self) -> SlowQueryOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SlowQueryOptions
impl Debug for SlowQueryOptions
Source§impl Default for SlowQueryOptions
impl Default for SlowQueryOptions
Source§impl<'de> Deserialize<'de> for SlowQueryOptions
impl<'de> Deserialize<'de> for SlowQueryOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SlowQueryOptions
impl PartialEq for SlowQueryOptions
Source§impl Serialize for SlowQueryOptions
impl Serialize for SlowQueryOptions
impl StructuralPartialEq for SlowQueryOptions
Auto Trait Implementations§
impl Freeze for SlowQueryOptions
impl RefUnwindSafe for SlowQueryOptions
impl Send for SlowQueryOptions
impl Sync for SlowQueryOptions
impl Unpin for SlowQueryOptions
impl UnwindSafe for SlowQueryOptions
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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>
Wrap the input message
T
in a tonic::Request
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>
Wrap the input message
T
in a tonic::Request