For logs stored as JSON, monitor log entries logged with level ERROR or higher, as well as any requests that causes 500 for logging with liflig-logging.
Optionalaction?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
OptionalalarmDescription?: stringOptionalenableOkAction?: booleanSet to false to stop the alarm from sending OK events.
Sets up three CloudWatch Alarms for monitoring an ECS service behind a target group:
The full name of the application load balancer.
The full name of the target group.
OptionaltargetHealthAlarm?: {Configuration for a composite alarm.
Optionalaction?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
Optionaldescription?: stringOptionalenabled?: booleanOptionalevaluationPeriods?: numberOptionalperiod?: DurationOptionalthreshold?: numberOptionaltargetResponseTimeAlarm?: {Configuration for an alarm.
Optionalaction?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
Optionaldescription?: stringOptionalenabled?: booleanOptionalevaluationPeriods?: numberOptionalperiod?: DurationOptionalthreshold?: DurationOptionaltooMany5xxResponsesFromTargetsAlarm?: {Configuration for an alarm.
Optionalaction?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
Optionaldescription?: stringOptionalenabled?: booleanOptionalevaluationPeriods?: numberOptionalperiod?: DurationOptionalthreshold?: numberReturns a string representation of this construct.
StaticisChecks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
Any object
true if x is an object created from a class which extends Construct.
Various alarms and monitoring.
By itself no alarms is created. Use the methods available to add alarms.
See SlackAlarm construct for SNS Action.