mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
27 lines
773 B
TypeScript
27 lines
773 B
TypeScript
import URL from 'Common/Types/API/URL';
|
|
import logger from 'CommonServer/Utils/Logger';
|
|
import ObjectID from 'Common/Types/ObjectID';
|
|
|
|
if (!process.env['PROBE_API_URL']) {
|
|
logger.error('PROBE_API_URL is not set');
|
|
process.exit();
|
|
}
|
|
|
|
export const PROBE_API_URL: URL = URL.fromString(process.env['PROBE_API_URL']);
|
|
|
|
export const PROBE_NAME: string | null = process.env['PROBE_NAME'] || null;
|
|
|
|
export const PROBE_DESCRIPTION: string | null =
|
|
process.env['PROBE_DESCRIPTION'] || null;
|
|
|
|
export const PROBE_ID: ObjectID | null = process.env['PROBE_ID']
|
|
? new ObjectID(process.env['PROBE_ID'])
|
|
: null;
|
|
|
|
if (!process.env['PROBE_KEY']) {
|
|
logger.error('PROBE_KEY is not set');
|
|
process.exit();
|
|
}
|
|
|
|
export const PROBE_KEY: string = process.env['PROBE_KEY'];
|