@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InsightRule extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
InsightRule() |
| Modifier and Type | Method and Description |
|---|---|
InsightRule |
clone() |
boolean |
equals(Object obj) |
Boolean |
getApplyOnTransformedLogs()
Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log
transformation enabled.
|
String |
getDefinition()
The definition of the rule, as a JSON object.
|
Boolean |
getManagedRule()
An optional built-in rule that Amazon Web Services manages.
|
String |
getName()
The name of the rule.
|
String |
getSchema()
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}. |
String |
getState()
Indicates whether the rule is enabled or disabled.
|
int |
hashCode() |
Boolean |
isApplyOnTransformedLogs()
Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log
transformation enabled.
|
Boolean |
isManagedRule()
An optional built-in rule that Amazon Web Services manages.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setApplyOnTransformedLogs(Boolean applyOnTransformedLogs)
Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log
transformation enabled.
|
void |
setDefinition(String definition)
The definition of the rule, as a JSON object.
|
void |
setManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
|
void |
setName(String name)
The name of the rule.
|
void |
setSchema(String schema)
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}. |
void |
setState(String state)
Indicates whether the rule is enabled or disabled.
|
String |
toString()
Returns a string representation of this object.
|
InsightRule |
withApplyOnTransformedLogs(Boolean applyOnTransformedLogs)
Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log
transformation enabled.
|
InsightRule |
withDefinition(String definition)
The definition of the rule, as a JSON object.
|
InsightRule |
withManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
|
InsightRule |
withName(String name)
The name of the rule.
|
InsightRule |
withSchema(String schema)
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}. |
InsightRule |
withState(String state)
Indicates whether the rule is enabled or disabled.
|
public void setName(String name)
The name of the rule.
name - The name of the rule.public String getName()
The name of the rule.
public InsightRule withName(String name)
The name of the rule.
name - The name of the rule.public void setState(String state)
Indicates whether the rule is enabled or disabled.
state - Indicates whether the rule is enabled or disabled.public String getState()
Indicates whether the rule is enabled or disabled.
public InsightRule withState(String state)
Indicates whether the rule is enabled or disabled.
state - Indicates whether the rule is enabled or disabled.public void setSchema(String schema)
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For managed
rules, this is {"Name": "ServiceLogRule", "Version": 1}
schema - For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For
managed rules, this is {"Name": "ServiceLogRule", "Version": 1}public String getSchema()
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For managed
rules, this is {"Name": "ServiceLogRule", "Version": 1}
{"Name": "CloudWatchLogRule", "Version": 1}. For
managed rules, this is {"Name": "ServiceLogRule", "Version": 1}public InsightRule withSchema(String schema)
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For managed
rules, this is {"Name": "ServiceLogRule", "Version": 1}
schema - For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For
managed rules, this is {"Name": "ServiceLogRule", "Version": 1}public void setDefinition(String 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.
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.public String getDefinition()
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.
public InsightRule withDefinition(String 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.
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.public void setManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
managedRule - An optional built-in rule that Amazon Web Services manages.public Boolean getManagedRule()
An optional built-in rule that Amazon Web Services manages.
public InsightRule withManagedRule(Boolean managedRule)
An optional built-in rule that Amazon Web Services manages.
managedRule - An optional built-in rule that Amazon Web Services manages.public Boolean isManagedRule()
An optional built-in rule that Amazon Web Services manages.
public void setApplyOnTransformedLogs(Boolean 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.
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.public Boolean getApplyOnTransformedLogs()
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.
false, log events are evaluated before they are
transformed.public InsightRule withApplyOnTransformedLogs(Boolean 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.
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.public Boolean isApplyOnTransformedLogs()
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.
false, log events are evaluated before they are
transformed.public String toString()
toString in class ObjectObject.toString()public InsightRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.