libZSservicesZSamazonka-application-insightsZSamazonka-application-insights
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.ApplicationInsights.CreateLogPattern

Description

Adds an log pattern to a LogPatternSet.

Synopsis

Creating a Request

data CreateLogPattern Source #

See: newCreateLogPattern smart constructor.

Constructors

CreateLogPattern' 

Fields

  • resourceGroupName :: Text

    The name of the resource group.

  • patternSetName :: Text

    The name of the log pattern set.

  • patternName :: Text

    The name of the log pattern.

  • pattern' :: Text

    The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.

  • rank :: Int

    Rank of the log pattern. Must be a value between 1 and 1,000,000. The patterns are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank 1 will be the first to get matched to a log line. A pattern of rank 1,000,000 will be last to get matched. When you configure custom log patterns from the console, a Low severity pattern translates to a 750,000 rank. A Medium severity pattern translates to a 500,000 rank. And a High severity pattern translates to a 250,000 rank. Rank values less than 1 or greater than 1,000,000 are reserved for AWS-provided patterns.

Instances

Instances details
Eq CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Read CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Show CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Generic CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Associated Types

type Rep CreateLogPattern :: Type -> Type #

NFData CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Methods

rnf :: CreateLogPattern -> () #

Hashable CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

ToJSON CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

AWSRequest CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Associated Types

type AWSResponse CreateLogPattern #

ToHeaders CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

ToPath CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

ToQuery CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

type Rep CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

type Rep CreateLogPattern = D1 ('MetaData "CreateLogPattern" "Amazonka.ApplicationInsights.CreateLogPattern" "libZSservicesZSamazonka-application-insightsZSamazonka-application-insights" 'False) (C1 ('MetaCons "CreateLogPattern'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resourceGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "patternSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "patternName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "pattern'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "rank") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))
type AWSResponse CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

newCreateLogPattern Source #

Create a value of CreateLogPattern 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:resourceGroupName:CreateLogPattern', createLogPattern_resourceGroupName - The name of the resource group.

$sel:patternSetName:CreateLogPattern', createLogPattern_patternSetName - The name of the log pattern set.

$sel:patternName:CreateLogPattern', createLogPattern_patternName - The name of the log pattern.

$sel:pattern':CreateLogPattern', createLogPattern_pattern - The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.

$sel:rank:CreateLogPattern', createLogPattern_rank - Rank of the log pattern. Must be a value between 1 and 1,000,000. The patterns are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank 1 will be the first to get matched to a log line. A pattern of rank 1,000,000 will be last to get matched. When you configure custom log patterns from the console, a Low severity pattern translates to a 750,000 rank. A Medium severity pattern translates to a 500,000 rank. And a High severity pattern translates to a 250,000 rank. Rank values less than 1 or greater than 1,000,000 are reserved for AWS-provided patterns.

Request Lenses

createLogPattern_pattern :: Lens' CreateLogPattern Text Source #

The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.

createLogPattern_rank :: Lens' CreateLogPattern Int Source #

Rank of the log pattern. Must be a value between 1 and 1,000,000. The patterns are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank 1 will be the first to get matched to a log line. A pattern of rank 1,000,000 will be last to get matched. When you configure custom log patterns from the console, a Low severity pattern translates to a 750,000 rank. A Medium severity pattern translates to a 500,000 rank. And a High severity pattern translates to a 250,000 rank. Rank values less than 1 or greater than 1,000,000 are reserved for AWS-provided patterns.

Destructuring the Response

data CreateLogPatternResponse Source #

See: newCreateLogPatternResponse smart constructor.

Constructors

CreateLogPatternResponse' 

Fields

Instances

Instances details
Eq CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Read CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Show CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Generic CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Associated Types

type Rep CreateLogPatternResponse :: Type -> Type #

NFData CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

type Rep CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

type Rep CreateLogPatternResponse = D1 ('MetaData "CreateLogPatternResponse" "Amazonka.ApplicationInsights.CreateLogPattern" "libZSservicesZSamazonka-application-insightsZSamazonka-application-insights" 'False) (C1 ('MetaCons "CreateLogPatternResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logPattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogPattern)) :*: (S1 ('MetaSel ('Just "resourceGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateLogPatternResponse Source #

Create a value of CreateLogPatternResponse 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:logPattern:CreateLogPatternResponse', createLogPatternResponse_logPattern - The successfully created log pattern.

$sel:resourceGroupName:CreateLogPattern', createLogPatternResponse_resourceGroupName - The name of the resource group.

$sel:httpStatus:CreateLogPatternResponse', createLogPatternResponse_httpStatus - The response's http status code.

Response Lenses