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.Pattern

Description

 
Synopsis

Documentation

data Pattern Source #

A set of rules used to make a recommendation during an analysis.

See: newPattern smart constructor.

Constructors

Pattern' 

Fields

  • thresholdPercent :: Maybe Double

    The percentage of time an application spends in one method that triggers a recommendation. The percentage of time is the same as the percentage of the total gathered sample counts during analysis.

  • targetFrames :: Maybe [[Text]]

    A list of frame names that were searched during the analysis that generated a recommendation.

  • countersToAggregate :: Maybe [Text]

    A list of the different counters used to determine if there is a match.

  • name :: Maybe Text

    The name for this pattern.

  • resolutionSteps :: Maybe Text

    A string that contains the steps recommended to address the potential inefficiency.

  • id :: Maybe Text

    The universally unique identifier (UUID) of this pattern.

  • description :: Maybe Text

    The description of the recommendation. This explains a potential inefficiency in a profiled application.

Instances

Instances details
Eq Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

Methods

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

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

Read Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

Show Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

Generic Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

Associated Types

type Rep Pattern :: Type -> Type #

Methods

from :: Pattern -> Rep Pattern x #

to :: Rep Pattern x -> Pattern #

NFData Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

Methods

rnf :: Pattern -> () #

Hashable Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

Methods

hashWithSalt :: Int -> Pattern -> Int #

hash :: Pattern -> Int #

FromJSON Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

type Rep Pattern Source # 
Instance details

Defined in Amazonka.CodeGuruProfiler.Types.Pattern

type Rep Pattern = D1 ('MetaData "Pattern" "Amazonka.CodeGuruProfiler.Types.Pattern" "libZSservicesZSamazonka-codeguruprofilerZSamazonka-codeguruprofiler" 'False) (C1 ('MetaCons "Pattern'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thresholdPercent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "targetFrames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [[Text]])) :*: S1 ('MetaSel ('Just "countersToAggregate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resolutionSteps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newPattern :: Pattern Source #

Create a value of Pattern 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:thresholdPercent:Pattern', pattern_thresholdPercent - The percentage of time an application spends in one method that triggers a recommendation. The percentage of time is the same as the percentage of the total gathered sample counts during analysis.

$sel:targetFrames:Pattern', pattern_targetFrames - A list of frame names that were searched during the analysis that generated a recommendation.

$sel:countersToAggregate:Pattern', pattern_countersToAggregate - A list of the different counters used to determine if there is a match.

$sel:name:Pattern', pattern_name - The name for this pattern.

$sel:resolutionSteps:Pattern', pattern_resolutionSteps - A string that contains the steps recommended to address the potential inefficiency.

$sel:id:Pattern', pattern_id - The universally unique identifier (UUID) of this pattern.

$sel:description:Pattern', pattern_description - The description of the recommendation. This explains a potential inefficiency in a profiled application.

pattern_thresholdPercent :: Lens' Pattern (Maybe Double) Source #

The percentage of time an application spends in one method that triggers a recommendation. The percentage of time is the same as the percentage of the total gathered sample counts during analysis.

pattern_targetFrames :: Lens' Pattern (Maybe [[Text]]) Source #

A list of frame names that were searched during the analysis that generated a recommendation.

pattern_countersToAggregate :: Lens' Pattern (Maybe [Text]) Source #

A list of the different counters used to determine if there is a match.

pattern_name :: Lens' Pattern (Maybe Text) Source #

The name for this pattern.

pattern_resolutionSteps :: Lens' Pattern (Maybe Text) Source #

A string that contains the steps recommended to address the potential inefficiency.

pattern_id :: Lens' Pattern (Maybe Text) Source #

The universally unique identifier (UUID) of this pattern.

pattern_description :: Lens' Pattern (Maybe Text) Source #

The description of the recommendation. This explains a potential inefficiency in a profiled application.