-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add alert and warning to module.exports
- Loading branch information
Showing
2 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
export type PrometheusMetricsExporter = { | ||
/** | ||
* ! Use this function if you want to export the logs without any kind of alert | ||
*/ | ||
Alert: (message: string) => void; | ||
/** | ||
* ! Use this function if you want to export the logs and warn of a possible error | ||
*/ | ||
Warning: (message: string) => void; | ||
}; | ||
/** | ||
* ! Use this function if you want to export the logs without any kind of alert | ||
*/ | ||
export function Alert(message: string): void; | ||
|
||
/** | ||
* ! Use this function if you want to export the logs and warn of a possible error | ||
*/ | ||
export function Warning(message: string): void; | ||
|
||
/** | ||
* ! Start a new Gauge in prom-client | ||
*/ | ||
export function InitElvenAlertManager(): PrometheusMetricsExporter; | ||
export function InitElvenAlertManager(): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters