Composite Alarm support on CDK #8462
Labels
@aws-cdk/aws-cloudwatch
Related to Amazon CloudWatch
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
in-progress
This issue is being actively worked on.
Use Case
we do not want to associate alarm action with each CW alarm. instead more commonly associate alarms with a group of CW Alarms joined by logical operators.
Proposed Solution
CW supports AND, OR and NOT operators and operands enclosed in ALARM, OK, INSUFFICIENT_DATA, TRUE, FALSE.
my thought process is to define an expression class, this would be implemented by binaryExpression, unaryExpression; binaryExpression would be further implemented by AndExpression and OrExpression; unaryExpression would be further implemented by NotExpression, TrueExpression and FalseExpression.
The constructors for the Expressions will accept an Alarm object and a State object to for an operand.
this class hierarchy will allow user to build valid composite alarm expressions.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: