Interface InsightRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InsightRule.Builder,
,InsightRule> SdkBuilder<InsightRule.Builder,
,InsightRule> SdkPojo
- Enclosing class:
InsightRule
-
Method Summary
Modifier and TypeMethodDescriptionapplyOnTransformedLogs
(Boolean applyOnTransformedLogs) Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log transformation enabled.definition
(String definition) The definition of the rule, as a JSON object.managedRule
(Boolean managedRule) An optional built-in rule that Amazon Web Services manages.The name of the rule.For rules that you create, this is always{"Name": "CloudWatchLogRule", "Version": 1}
.Indicates whether the rule is enabled or disabled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the rule.
- Parameters:
name
- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Indicates whether the rule is enabled or disabled.
- Parameters:
state
- Indicates whether the rule is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schema
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}
. For managed rules, this is{"Name": "ServiceLogRule", "Version": 1}
- Parameters:
schema
- For rules that you create, this is always{"Name": "CloudWatchLogRule", "Version": 1}
. For managed rules, this is{"Name": "ServiceLogRule", "Version": 1}
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedRule
An optional built-in rule that Amazon Web Services manages.
- Parameters:
managedRule
- An optional built-in rule that Amazon Web Services manages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applyOnTransformedLogs
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.- Parameters:
applyOnTransformedLogs
- Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log transformation enabled. If this isfalse
, log events are evaluated before they are transformed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-