InsightRule
¶
Source code in docs_src/capo_cloudwatch/types/insight_rule.py
apply_on_transformed_logs
instance-attribute
¶
apply_on_transformed_logs: NotRequired[InsightRuleOnTransformedLogs]
Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log transformation enabled. If this is false, log events are evaluated before they are transformed.
definition
instance-attribute
¶
definition: NotRequired[InsightRuleDefinition]
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.
managed_rule
instance-attribute
¶
managed_rule: NotRequired[InsightRuleIsManaged]
An optional built-in rule that Amazon Web Services manages.
schema
instance-attribute
¶
schema: NotRequired[InsightRuleSchema]
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For managed rules, this is {"Name": "ServiceLogRule", "Version": 1}
state
instance-attribute
¶
state: NotRequired[InsightRuleState]
Indicates whether the rule is enabled or disabled.