pub struct ObservabilityInstanceConfig {
pub enabled: Option<bool>,
pub preserve_comments: Option<bool>,
pub track_wait_events: Option<bool>,
pub track_wait_event_types: Option<bool>,
pub max_query_string_length: Option<i32>,
pub record_application_tags: Option<bool>,
pub query_plans_per_minute: Option<i32>,
pub track_active_queries: Option<bool>,
pub track_client_address: Option<bool>,
}
Expand description
Observability Instance specific configuration.
Fields§
§enabled: Option<bool>
Observability feature status for an instance. This flag is turned “off” by default.
preserve_comments: Option<bool>
Preserve comments in query string for an instance. This flag is turned “off” by default.
track_wait_events: Option<bool>
Track wait events during query execution for an instance. This flag is turned “on” by default but tracking is enabled only after observability enabled flag is also turned on.
track_wait_event_types: Option<bool>
Output only. Track wait event types during query execution for an instance. This flag is turned “on” by default but tracking is enabled only after observability enabled flag is also turned on. This is read-only flag and only modifiable by producer API.
max_query_string_length: Option<i32>
Query string length. The default value is 10k.
Record application tags for an instance. This flag is turned “off” by default.
query_plans_per_minute: Option<i32>
Number of query execution plans captured by Insights per minute for all queries combined. The default value is 200. Any integer between 0 to 200 is considered valid.
track_active_queries: Option<bool>
Track actively running queries on the instance. If not set, this flag is “off” by default.
track_client_address: Option<bool>
Track client address for an instance. If not set, default value is “off”.
Implementations§
Source§impl ObservabilityInstanceConfig
impl ObservabilityInstanceConfig
Sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Returns the value of enabled
, or the default value if enabled
is unset.
Sourcepub fn preserve_comments(&self) -> bool
pub fn preserve_comments(&self) -> bool
Returns the value of preserve_comments
, or the default value if preserve_comments
is unset.
Sourcepub fn track_wait_events(&self) -> bool
pub fn track_wait_events(&self) -> bool
Returns the value of track_wait_events
, or the default value if track_wait_events
is unset.
Sourcepub fn track_wait_event_types(&self) -> bool
pub fn track_wait_event_types(&self) -> bool
Returns the value of track_wait_event_types
, or the default value if track_wait_event_types
is unset.
Sourcepub fn max_query_string_length(&self) -> i32
pub fn max_query_string_length(&self) -> i32
Returns the value of max_query_string_length
, or the default value if max_query_string_length
is unset.
Returns the value of record_application_tags
, or the default value if record_application_tags
is unset.
Sourcepub fn query_plans_per_minute(&self) -> i32
pub fn query_plans_per_minute(&self) -> i32
Returns the value of query_plans_per_minute
, or the default value if query_plans_per_minute
is unset.
Sourcepub fn track_active_queries(&self) -> bool
pub fn track_active_queries(&self) -> bool
Returns the value of track_active_queries
, or the default value if track_active_queries
is unset.
Sourcepub fn track_client_address(&self) -> bool
pub fn track_client_address(&self) -> bool
Returns the value of track_client_address
, or the default value if track_client_address
is unset.
Trait Implementations§
Source§impl Clone for ObservabilityInstanceConfig
impl Clone for ObservabilityInstanceConfig
Source§fn clone(&self) -> ObservabilityInstanceConfig
fn clone(&self) -> ObservabilityInstanceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ObservabilityInstanceConfig
impl Debug for ObservabilityInstanceConfig
Source§impl Message for ObservabilityInstanceConfig
impl Message for ObservabilityInstanceConfig
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
.impl Copy for ObservabilityInstanceConfig
impl StructuralPartialEq for ObservabilityInstanceConfig
Auto Trait Implementations§
impl Freeze for ObservabilityInstanceConfig
impl RefUnwindSafe for ObservabilityInstanceConfig
impl Send for ObservabilityInstanceConfig
impl Sync for ObservabilityInstanceConfig
impl Unpin for ObservabilityInstanceConfig
impl UnwindSafe for ObservabilityInstanceConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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