pub struct PerformanceCaptureConfig {
pub enabled: Option<bool>,
pub probing_interval_seconds: Option<i32>,
pub probe_threshold: Option<i32>,
pub running_threads_threshold: Option<i32>,
pub seconds_behind_source_threshold: Option<i32>,
pub transaction_duration_threshold: Option<i32>,
}Expand description
Performance Capture configuration.
Fields§
§enabled: Option<bool>Optional. Enable or disable the Performance Capture feature.
probing_interval_seconds: Option<i32>Optional. The time interval in seconds between any two probes.
probe_threshold: Option<i32>Optional. The minimum number of consecutive readings above threshold that triggers instance state capture.
running_threads_threshold: Option<i32>Optional. The minimum number of server threads running to trigger the capture on primary.
seconds_behind_source_threshold: Option<i32>Optional. The minimum number of seconds replica must be lagging behind primary to trigger capture on replica.
transaction_duration_threshold: Option<i32>Optional. The amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
Implementations§
Source§impl PerformanceCaptureConfig
impl PerformanceCaptureConfig
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 probing_interval_seconds(&self) -> i32
pub fn probing_interval_seconds(&self) -> i32
Returns the value of probing_interval_seconds, or the default value if probing_interval_seconds is unset.
Sourcepub fn probe_threshold(&self) -> i32
pub fn probe_threshold(&self) -> i32
Returns the value of probe_threshold, or the default value if probe_threshold is unset.
Sourcepub fn running_threads_threshold(&self) -> i32
pub fn running_threads_threshold(&self) -> i32
Returns the value of running_threads_threshold, or the default value if running_threads_threshold is unset.
Sourcepub fn seconds_behind_source_threshold(&self) -> i32
pub fn seconds_behind_source_threshold(&self) -> i32
Returns the value of seconds_behind_source_threshold, or the default value if seconds_behind_source_threshold is unset.
Sourcepub fn transaction_duration_threshold(&self) -> i32
pub fn transaction_duration_threshold(&self) -> i32
Returns the value of transaction_duration_threshold, or the default value if transaction_duration_threshold is unset.
Trait Implementations§
Source§impl Clone for PerformanceCaptureConfig
impl Clone for PerformanceCaptureConfig
Source§fn clone(&self) -> PerformanceCaptureConfig
fn clone(&self) -> PerformanceCaptureConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PerformanceCaptureConfig
impl Debug for PerformanceCaptureConfig
Source§impl Default for PerformanceCaptureConfig
impl Default for PerformanceCaptureConfig
Source§impl Hash for PerformanceCaptureConfig
impl Hash for PerformanceCaptureConfig
Source§impl Message for PerformanceCaptureConfig
impl Message for PerformanceCaptureConfig
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 PartialEq for PerformanceCaptureConfig
impl PartialEq for PerformanceCaptureConfig
impl Copy for PerformanceCaptureConfig
impl Eq for PerformanceCaptureConfig
impl StructuralPartialEq for PerformanceCaptureConfig
Auto Trait Implementations§
impl Freeze for PerformanceCaptureConfig
impl RefUnwindSafe for PerformanceCaptureConfig
impl Send for PerformanceCaptureConfig
impl Sync for PerformanceCaptureConfig
impl Unpin for PerformanceCaptureConfig
impl UnwindSafe for PerformanceCaptureConfig
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