#[non_exhaustive]pub struct InsightsConfig {
pub query_insights_enabled: bool,
pub record_client_address: bool,
pub record_application_tags: bool,
pub query_string_length: Option<Int32Value>,
pub query_plans_per_minute: Option<Int32Value>,
/* private fields */
}
Expand description
Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional 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.query_insights_enabled: bool
Whether Query Insights feature is enabled.
record_client_address: bool
Whether Query Insights will record client address when enabled.
Whether Query Insights will record application tags from query when enabled.
query_string_length: Option<Int32Value>
Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
query_plans_per_minute: Option<Int32Value>
Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
Implementations§
Source§impl InsightsConfig
impl InsightsConfig
pub fn new() -> Self
Sourcepub fn set_query_insights_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_query_insights_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of query_insights_enabled.
Sourcepub fn set_record_client_address<T: Into<bool>>(self, v: T) -> Self
pub fn set_record_client_address<T: Into<bool>>(self, v: T) -> Self
Sets the value of record_client_address.
Sets the value of record_application_tags.
Sourcepub fn set_query_string_length<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_query_string_length<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of query_string_length.
Sourcepub fn set_or_clear_query_string_length<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_query_string_length<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of query_string_length.
Sourcepub fn set_query_plans_per_minute<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_query_plans_per_minute<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of query_plans_per_minute.
Sourcepub fn set_or_clear_query_plans_per_minute<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_query_plans_per_minute<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of query_plans_per_minute.
Trait Implementations§
Source§impl Clone for InsightsConfig
impl Clone for InsightsConfig
Source§fn clone(&self) -> InsightsConfig
fn clone(&self) -> InsightsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more