amazonka-application-insights-2.0: Amazon CloudWatch Application Insights 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.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
ToJSON CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.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

AWSRequest CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Associated Types

type AWSResponse CreateLogPattern #

Generic CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Associated Types

type Rep CreateLogPattern :: Type -> Type #

Read CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Show CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

NFData CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Methods

rnf :: CreateLogPattern -> () #

Eq CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Hashable CreateLogPattern Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

type AWSResponse 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" "amazonka-application-insights-2.0-HJv8DARmsLI1hpMeOEjP38" '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)))))

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:

CreateLogPattern, createLogPattern_resourceGroupName - The name of the resource group.

CreateLogPattern, createLogPattern_patternSetName - The name of the log pattern set.

CreateLogPattern, createLogPattern_patternName - The name of the log pattern.

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

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
Generic CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Associated Types

type Rep CreateLogPatternResponse :: Type -> Type #

Read CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Show CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

NFData CreateLogPatternResponse Source # 
Instance details

Defined in Amazonka.ApplicationInsights.CreateLogPattern

Eq 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" "amazonka-application-insights-2.0-HJv8DARmsLI1hpMeOEjP38" '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.

CreateLogPattern, createLogPatternResponse_resourceGroupName - The name of the resource group.

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

Response Lenses