Module Smaws_Client_CloudWatch.PutInsightRule

Creates 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.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `LimitExceededException of Types.limit_exceeded_exception | `MissingRequiredParameterException of Types.missing_required_parameter_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.put_insight_rule_input -> (Types.put_insight_rule_output, [> Smaws_Lib.Protocols.AwsQuery.error | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `LimitExceededException of Types.limit_exceeded_exception | `MissingRequiredParameterException of Types.missing_required_parameter_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.put_insight_rule_input -> (Types.put_insight_rule_output Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `LimitExceededException of Types.limit_exceeded_exception | `MissingRequiredParameterException of Types.missing_required_parameter_exception ] * Smaws_Lib.Response.metadata) Stdlib.result