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 InsightRule = InsightRule' {}
- newInsightRule :: Text -> Text -> Text -> Text -> InsightRule
- insightRule_managedRule :: Lens' InsightRule (Maybe Bool)
- insightRule_name :: Lens' InsightRule Text
- insightRule_state :: Lens' InsightRule Text
- insightRule_schema :: Lens' InsightRule Text
- insightRule_definition :: Lens' InsightRule Text
Documentation
data InsightRule Source #
This structure contains the definition for a Contributor Insights rule. For more information about this rule, see Using Constributor Insights to analyze high-cardinality data in the Amazon CloudWatch User Guide.
See: newInsightRule
smart constructor.
InsightRule' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> InsightRule |
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:managedRule:InsightRule'
, insightRule_managedRule
- An optional built-in rule that Amazon Web Services manages.
$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 managed 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_managedRule :: Lens' InsightRule (Maybe Bool) Source #
An optional built-in rule that Amazon Web Services manages.
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 managed 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.