Skip to content

InsightRule

Source: src/AWS/CloudWatch/InsightRule.ts

A CloudWatch Contributor Insights rule.

const rule = yield* InsightRule("TopContributors", {
RuleState: "ENABLED",
RuleDefinition: {
Schema: {
Name: "CloudWatchLogRule",
Version: 1,
},
LogFormat: "JSON",
Contribution: {
Keys: ["$.ip"],
},
AggregateOn: "Count",
},
});