libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch
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.CloudWatch.Types.InsightRule

Description

 
Synopsis

Documentation

data InsightRule Source #

This structure contains the definition for a Contributor Insights rule.

See: newInsightRule smart constructor.

Constructors

InsightRule' 

Fields

  • name :: Text

    The name of the rule.

  • state :: Text

    Indicates whether the rule is enabled or disabled.

  • schema :: Text

    For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}

  • definition :: Text

    The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.

Instances

Instances details
Eq InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Read InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Show InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Generic InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Associated Types

type Rep InsightRule :: Type -> Type #

NFData InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

Methods

rnf :: InsightRule -> () #

Hashable InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

FromXML InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

type Rep InsightRule Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.InsightRule

type Rep InsightRule = D1 ('MetaData "InsightRule" "Amazonka.CloudWatch.Types.InsightRule" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "InsightRule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "definition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newInsightRule Source #

Create a value of InsightRule 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:name:InsightRule', insightRule_name - The name of the rule.

$sel:state:InsightRule', insightRule_state - Indicates whether the rule is enabled or disabled.

$sel:schema:InsightRule', insightRule_schema - For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}

$sel:definition:InsightRule', insightRule_definition - The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.

insightRule_name :: Lens' InsightRule Text Source #

The name of the rule.

insightRule_state :: Lens' InsightRule Text Source #

Indicates whether the rule is enabled or disabled.

insightRule_schema :: Lens' InsightRule Text Source #

For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}

insightRule_definition :: Lens' InsightRule Text Source #

The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.