#[non_exhaustive]pub struct QueryInsightsInstanceConfig {
pub record_application_tags: Option<bool>,
pub record_client_address: Option<bool>,
pub query_string_length: u32,
pub query_plans_per_minute: Option<u32>,
/* private fields */
}Expand description
QueryInsights Instance specific configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.Record application tags for an instance. This flag is turned “on” by default.
record_client_address: Option<bool>Record client address for an instance. Client address is PII information. This flag is turned “on” by default.
query_string_length: u32Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.
query_plans_per_minute: Option<u32>Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid.
Implementations§
Source§impl QueryInsightsInstanceConfig
impl QueryInsightsInstanceConfig
pub fn new() -> Self
Sets the value of record_application_tags.
§Example
let x = QueryInsightsInstanceConfig::new().set_record_application_tags(true);Sets or clears the value of record_application_tags.
§Example
let x = QueryInsightsInstanceConfig::new().set_or_clear_record_application_tags(Some(false));
let x = QueryInsightsInstanceConfig::new().set_or_clear_record_application_tags(None::<bool>);Sourcepub fn set_record_client_address<T>(self, v: T) -> Self
pub fn set_record_client_address<T>(self, v: T) -> Self
Sets the value of record_client_address.
§Example
let x = QueryInsightsInstanceConfig::new().set_record_client_address(true);Sourcepub fn set_or_clear_record_client_address<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_record_client_address<T>(self, v: Option<T>) -> Self
Sets or clears the value of record_client_address.
§Example
let x = QueryInsightsInstanceConfig::new().set_or_clear_record_client_address(Some(false));
let x = QueryInsightsInstanceConfig::new().set_or_clear_record_client_address(None::<bool>);Sourcepub fn set_query_string_length<T: Into<u32>>(self, v: T) -> Self
pub fn set_query_string_length<T: Into<u32>>(self, v: T) -> Self
Sets the value of query_string_length.
§Example
let x = QueryInsightsInstanceConfig::new().set_query_string_length(42_u32);Sourcepub fn set_query_plans_per_minute<T>(self, v: T) -> Self
pub fn set_query_plans_per_minute<T>(self, v: T) -> Self
Sets the value of query_plans_per_minute.
§Example
let x = QueryInsightsInstanceConfig::new().set_query_plans_per_minute(42_u32);Sourcepub fn set_or_clear_query_plans_per_minute<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_query_plans_per_minute<T>(self, v: Option<T>) -> Self
Sets or clears the value of query_plans_per_minute.
§Example
let x = QueryInsightsInstanceConfig::new().set_or_clear_query_plans_per_minute(Some(42_u32));
let x = QueryInsightsInstanceConfig::new().set_or_clear_query_plans_per_minute(None::<u32>);Trait Implementations§
Source§impl Clone for QueryInsightsInstanceConfig
impl Clone for QueryInsightsInstanceConfig
Source§fn clone(&self) -> QueryInsightsInstanceConfig
fn clone(&self) -> QueryInsightsInstanceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more