public static interface InsightRule.Builder extends SdkPojo, CopyableBuilder<InsightRule.Builder,InsightRule>
| Modifier and Type | Method and Description |
|---|---|
InsightRule.Builder |
definition(String definition)
The definition of the rule, as a JSON object.
|
InsightRule.Builder |
name(String name)
The name of the rule.
|
InsightRule.Builder |
schema(String schema)
For rules that you create, this is always
{"Name": "CloudWatchLogRule", "Version": 1}. |
InsightRule.Builder |
state(String state)
Indicates whether the rule is enabled or disabled.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInsightRule.Builder name(String name)
The name of the rule.
name - The name of the rule.InsightRule.Builder state(String state)
Indicates whether the rule is enabled or disabled.
state - Indicates whether the rule is enabled or disabled.InsightRule.Builder schema(String schema)
For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}. For
built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}
schema - For rules that you create, this is always {"Name": "CloudWatchLogRule", "Version": 1}.
For built-in rules, this is {"Name": "ServiceLogRule", "Version": 1}InsightRule.Builder definition(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.Copyright © 2020. All rights reserved.