Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Metric = Metric' {
- frameName :: Text
- threadStates :: [Text]
- type' :: MetricType
- newMetric :: Text -> MetricType -> Metric
- metric_frameName :: Lens' Metric Text
- metric_threadStates :: Lens' Metric [Text]
- metric_type :: Lens' Metric MetricType
Documentation
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.
Metric' | |
|
Instances
FromJSON Metric Source # | |
Generic Metric Source # | |
Read Metric Source # | |
Show Metric Source # | |
NFData Metric Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Metric | |
Eq Metric Source # | |
Hashable Metric Source # | |
Defined in Amazonka.CodeGuruProfiler.Types.Metric | |
type Rep Metric Source # | |
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)))) |
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.