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) Indicates whether some other object is "equal to" this one by SDK fields.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.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
-
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<InsightRule.Builder,InsightRule> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-