libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Methods

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

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

Read Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Show 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 #

NFData Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Methods

rnf :: Metric -> () #

Hashable Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

Methods

hashWithSalt :: Int -> Metric -> Int #

hash :: Metric -> Int #

FromJSON Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

type Rep Metric Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Metric

type Rep Metric = D1 ('MetaData "Metric" "Amazonka.CodeGuruProfiler.Types.Metric" "libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler" '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.