#[non_exhaustive]pub struct AgentConfigurationBuilder { /* private fields */ }Expand description
A builder for AgentConfiguration.
Implementations§
source§impl AgentConfigurationBuilder
impl AgentConfigurationBuilder
sourcepub fn should_profile(self, input: bool) -> Self
pub fn should_profile(self, input: bool) -> Self
A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.
sourcepub fn set_should_profile(self, input: Option<bool>) -> Self
pub fn set_should_profile(self, input: Option<bool>) -> Self
A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.
sourcepub fn get_should_profile(&self) -> &Option<bool>
pub fn get_should_profile(&self) -> &Option<bool>
A Boolean that specifies whether the profiling agent collects profiling data or not. Set to true to enable profiling.
sourcepub fn period_in_seconds(self, input: i32) -> Self
pub fn period_in_seconds(self, input: i32) -> Self
How long a profiling agent should send profiling data using ConfigureAgent . For example, if this is set to 300, the profiling agent calls ConfigureAgent every 5 minutes to submit the profiled data collected during that period.
sourcepub fn set_period_in_seconds(self, input: Option<i32>) -> Self
pub fn set_period_in_seconds(self, input: Option<i32>) -> Self
How long a profiling agent should send profiling data using ConfigureAgent . For example, if this is set to 300, the profiling agent calls ConfigureAgent every 5 minutes to submit the profiled data collected during that period.
sourcepub fn get_period_in_seconds(&self) -> &Option<i32>
pub fn get_period_in_seconds(&self) -> &Option<i32>
How long a profiling agent should send profiling data using ConfigureAgent . For example, if this is set to 300, the profiling agent calls ConfigureAgent every 5 minutes to submit the profiled data collected during that period.
sourcepub fn agent_parameters(
self,
k: AgentParameterField,
v: impl Into<String>
) -> Self
pub fn agent_parameters( self, k: AgentParameterField, v: impl Into<String> ) -> Self
Adds a key-value pair to agent_parameters.
To override the contents of this collection use set_agent_parameters.
Parameters used by the profiler. The valid parameters are:
-
MaxStackDepth- The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a methodA, which calls methodB, which calls methodC, which calls methodD, then the depth is 4. If themaxDepthis set to 2, then the profiler evaluatesAandB. -
MemoryUsageLimitPercent- The percentage of memory that is used by the profiler. -
MinimumTimeForReportingInMilliseconds- The minimum time in milliseconds between sending reports. -
ReportingIntervalInMilliseconds- The reporting interval in milliseconds used to report profiles. -
SamplingIntervalInMilliseconds- The sampling interval in milliseconds that is used to profile samples.
sourcepub fn set_agent_parameters(
self,
input: Option<HashMap<AgentParameterField, String>>
) -> Self
pub fn set_agent_parameters( self, input: Option<HashMap<AgentParameterField, String>> ) -> Self
Parameters used by the profiler. The valid parameters are:
-
MaxStackDepth- The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a methodA, which calls methodB, which calls methodC, which calls methodD, then the depth is 4. If themaxDepthis set to 2, then the profiler evaluatesAandB. -
MemoryUsageLimitPercent- The percentage of memory that is used by the profiler. -
MinimumTimeForReportingInMilliseconds- The minimum time in milliseconds between sending reports. -
ReportingIntervalInMilliseconds- The reporting interval in milliseconds used to report profiles. -
SamplingIntervalInMilliseconds- The sampling interval in milliseconds that is used to profile samples.
sourcepub fn get_agent_parameters(
&self
) -> &Option<HashMap<AgentParameterField, String>>
pub fn get_agent_parameters( &self ) -> &Option<HashMap<AgentParameterField, String>>
Parameters used by the profiler. The valid parameters are:
-
MaxStackDepth- The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a methodA, which calls methodB, which calls methodC, which calls methodD, then the depth is 4. If themaxDepthis set to 2, then the profiler evaluatesAandB. -
MemoryUsageLimitPercent- The percentage of memory that is used by the profiler. -
MinimumTimeForReportingInMilliseconds- The minimum time in milliseconds between sending reports. -
ReportingIntervalInMilliseconds- The reporting interval in milliseconds used to report profiles. -
SamplingIntervalInMilliseconds- The sampling interval in milliseconds that is used to profile samples.
sourcepub fn build(self) -> Result<AgentConfiguration, BuildError>
pub fn build(self) -> Result<AgentConfiguration, BuildError>
Consumes the builder and constructs a AgentConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AgentConfigurationBuilder
impl Clone for AgentConfigurationBuilder
source§fn clone(&self) -> AgentConfigurationBuilder
fn clone(&self) -> AgentConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AgentConfigurationBuilder
impl Debug for AgentConfigurationBuilder
source§impl Default for AgentConfigurationBuilder
impl Default for AgentConfigurationBuilder
source§fn default() -> AgentConfigurationBuilder
fn default() -> AgentConfigurationBuilder
source§impl PartialEq for AgentConfigurationBuilder
impl PartialEq for AgentConfigurationBuilder
source§fn eq(&self, other: &AgentConfigurationBuilder) -> bool
fn eq(&self, other: &AgentConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.