Skip to content

Commit 78a9fe8

Browse files
authored
feat: add FATAL log level (#80)
Customer request to add FATAL into the log levels. Does not have impact in this library but it is needed in our internal facade. --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_
1 parent 69074cb commit 78a9fe8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

API.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46447,6 +46447,7 @@ Level of a given log.
4644746447
| --- | --- |
4644846448
| <code><a href="#cdk-monitoring-constructs.LogLevel.ERROR">ERROR</a></code> | *No description.* |
4644946449
| <code><a href="#cdk-monitoring-constructs.LogLevel.CRITICAL">CRITICAL</a></code> | *No description.* |
46450+
| <code><a href="#cdk-monitoring-constructs.LogLevel.FATAL">FATAL</a></code> | *No description.* |
4645046451

4645146452
---
4645246453

@@ -46460,6 +46461,11 @@ Level of a given log.
4646046461
---
4646146462

4646246463

46464+
##### `FATAL` <a name="FATAL" id="cdk-monitoring-constructs.LogLevel.FATAL"></a>
46465+
46466+
---
46467+
46468+
4646346469
### MetricStatistic <a name="MetricStatistic" id="cdk-monitoring-constructs.MetricStatistic"></a>
4646446470

4646546471
Metric aggregation statistic to be used with the IMetric objects.

lib/common/monitoring/alarms/LogLevelAlarmFactory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { MetricWithAlarmSupport } from "../../metric";
99
export enum LogLevel {
1010
ERROR = "ERROR",
1111
CRITICAL = "CRITICAL",
12+
FATAL = "FATAL",
1213
}
1314

1415
export interface LogLevelCountThreshold extends CustomAlarmThreshold {

0 commit comments

Comments
 (0)