Values.PutInsightRuleInputSourceCreates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs log group, enabling you to find contributor data for the log events in that log group. For more information, see Using Contributor Insights to Analyze High-Cardinality Data. If you create a rule, delete it, and then re-create it with the same name, historical data from the first time the rule was created might not be available.
type nonrec t = {ruleName : InsightRuleName.t;A unique name for the rule.
*)ruleState : InsightRuleState.t option;The state of the rule. Valid values are ENABLED and DISABLED.
*)ruleDefinition : InsightRuleDefinition.t;The definition of the rule, as a JSON object. For details on the valid syntax, see Contributor Insights Rule Syntax.
*)applyOnTransformedLogs : InsightRuleOnTransformedLogs.t option;Specify true to have this rule evaluate log events after they have been transformed by Log transformation. If you specify true, then the log events in log groups that have transformers will be evaluated by Contributor Insights after being transformed. Log groups that don't have transformers will still have their original log events evaluated by Contributor Insights. The default is false If a log group has a transformer, and transformation fails for some log events, those log events won't be evaluated by Contributor Insights. For information about investigating log transformation failures, see Transformation metrics and errors.
*)}val make :
?ruleState:??? ->
?tags:??? ->
?applyOnTransformedLogs:??? ->
ruleName:InsightRuleName.t ->
ruleDefinition:InsightRuleDefinition.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of InsightRuleOnTransformedLogs.t
| `List of
[> `Structure of (string * [> `String of TagKey.t ]) list ] list
| `String of InsightRuleName.t ])
list ]