Struct aws_sdk_codeguruprofiler::model::Metric
source · #[non_exhaustive]pub struct Metric { /* private fields */ }
Expand description
Details about the metric that the analysis used when it detected the anomaly. The metric what is analyzed to create recommendations. It includes the name of the frame that was analyzed and the type and thread states used to derive the metric value for that frame.
Implementations§
source§impl Metric
impl Metric
sourcepub fn frame_name(&self) -> Option<&str>
pub fn frame_name(&self) -> Option<&str>
The name of the method that appears as a frame in any stack in a profile.
sourcepub fn type(&self) -> Option<&MetricType>
pub fn type(&self) -> Option<&MetricType>
A type that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is calculated across the occurences of all frames in a profile.
sourcepub fn thread_states(&self) -> Option<&[String]>
pub fn thread_states(&self) -> Option<&[String]>
The list of application runtime thread states that is used to calculate the metric value for the frame.