amazonka-codeguruprofiler-2.0: Amazon CodeGuru Profiler SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeGuruProfiler.Types.Metric

Description

 
Synopsis

Documentation

data Metric Source #

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.

See: newMetric smart constructor.

Constructors

Metric' 

Fields

  • frameName :: Text

    The name of the method that appears as a frame in any stack in a profile.

  • threadStates :: [Text]

    The list of application runtime thread states that is used to calculate the metric value for the frame.

  • type' :: 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.

Instances

Instances details
FromJSON Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Generic Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Associated Types

type Rep Metric :: Type -> Type #

Methods

from :: Metric -> Rep Metric x #

to :: Rep Metric x -> Metric #

Read Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Show Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

NFData Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Methods

rnf :: Metric -> () #

Eq Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Methods

(==) :: Metric -> Metric -> Bool #

(/=) :: Metric -> Metric -> Bool #

Hashable Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Methods

hashWithSalt :: Int -> Metric -> Int #

hash :: Metric -> Int #

type Rep Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

type Rep Metric = D1 ('MetaData "Metric" "Amazonka.CodeGuruProfiler.Types.Metric" "amazonka-codeguruprofiler-2.0-DsjyOqDx8Zb8uCUpe33U62" 'False) (C1 ('MetaCons "Metric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "frameName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "threadStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MetricType))))

newMetric Source #

Create a value of Metric with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:frameName:Metric', metric_frameName - The name of the method that appears as a frame in any stack in a profile.

$sel:threadStates:Metric', metric_threadStates - The list of application runtime thread states that is used to calculate the metric value for the frame.

$sel:type':Metric', metric_type - 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.

metric_frameName :: Lens' Metric Text Source #

The name of the method that appears as a frame in any stack in a profile.

metric_threadStates :: Lens' Metric [Text] Source #

The list of application runtime thread states that is used to calculate the metric value for the frame.

metric_type :: Lens' Metric MetricType Source #

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.