UNPKG

@cocalc/project

Version:
20 lines (16 loc) 580 B
/* * This file is part of CoCalc: Copyright © 2020 Sagemath, Inc. * License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details */ import { TypedMap } from "@cocalc/frontend/app-framework"; export interface UsageInfo { time: number; // server timestamp cpu: number; // % cpu_chld: number; // % (only children) mem: number; // MB mem_chld: number; // MB (only children) mem_limit?: number; // for the entire container cpu_limit?: number; // --*-- mem_free?: number; // free mem in container } export type ImmutableUsageInfo = TypedMap<UsageInfo>;