Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutInsightRuleCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { CloudWatchClient, PutInsightRuleCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
// const { CloudWatchClient, PutInsightRuleCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
const client = new CloudWatchClient(config);
const command = new PutInsightRuleCommand(input);
const response = await client.send(command);
see

PutInsightRuleCommandInput for command's input shape.

see

PutInsightRuleCommandOutput for command's response shape.

see

config for CloudWatchClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PutInsightRuleCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<PutInsightRuleCommandInput, PutInsightRuleCommandOutput>