Class InsightRule
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InsightRule.Builder,InsightRule>
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 Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanDisplays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log transformation enabled.static InsightRule.Builderbuilder()final StringThe definition of the rule, as a JSON object.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanAn optional built-in rule that Amazon Web Services manages.final Stringname()The name of the rule.final Stringschema()For rules that you create, this is always{"Name": "CloudWatchLogRule", "Version": 1}.static Class<? extends InsightRule.Builder>final Stringstate()Indicates whether the rule is enabled or disabled.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The name of the rule.
- Returns:
- The name of the rule.
-
state
Indicates whether the rule is enabled or disabled.
- Returns:
- Indicates whether the rule is enabled or disabled.
-
schema
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}. For managed rules, this is{"Name": "ServiceLogRule", "Version": 1}- Returns:
- For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}. For managed rules, this is{"Name": "ServiceLogRule", "Version": 1}
-
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:
- 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.
-
managedRule
An optional built-in rule that Amazon Web Services manages.
- Returns:
- An optional built-in rule that Amazon Web Services manages.
-
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.- Returns:
- 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.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<InsightRule.Builder,InsightRule>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-