CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/comm/project-status/const.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
export const ALERT_HIGH_PCT = 90;
7
export const ALERT_MEDIUM_PCT = 75;
8
export const ALERT_LOW_PCT = 50; // not really an alert, more a gentle indicator
9
export const ALERT_DISK_FREE = 100; // MiB
10
export const RAISE_ALERT_AFTER_MIN = 1; // after that many minutes of alert state, raise the alert
11
export const STATUS_UPDATES_INTERVAL_S = parseInt(
12
process.env.COCALC_STATUS_UPDATES_INTERVAL_S ?? "60"
13
);
14
15