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.
Optional
action?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
Optional
alarmDescription?: stringOptional
enableOkAction?: 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.
Optional
targetHealthAlarm?: {Configuration for a composite alarm.
Optional
action?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
Optional
description?: stringOptional
enabled?: booleanOptional
evaluationPeriods?: numberOptional
period?: DurationOptional
threshold?: numberOptional
targetResponseTimeAlarm?: {Configuration for an alarm.
Optional
action?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
Optional
description?: stringOptional
enabled?: booleanOptional
evaluationPeriods?: numberOptional
period?: DurationOptional
threshold?: DurationOptional
tooMany5xxResponsesFromTargetsAlarm?: {Configuration for an alarm.
Optional
action?: IAlarmActionAn action to use for CloudWatch alarm state changes instead of the default action
Optional
description?: stringOptional
enabled?: booleanOptional
evaluationPeriods?: numberOptional
period?: DurationOptional
threshold?: numberStatic
isChecks 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.