CH-J Toolsserver management over SSH
Menu
Published source

CH-J Tools

Browse directories and files for a specific application release.

Download source ZIP
CH-J / Server Manager 1704 files
0.1.2-beta Added: · Built:
system.ts Added: Date not recorded 672 B · 9 lines
Code Download file
1/** System Monitor capabilities (`system.metrics.read`, `system.memory.manage`). */
2import { call } from "../transport";
3import type { Payload } from "../types";
5export const system = Object.freeze({
6 readMetrics: (sessionId: string) => call<Payload>("module_system_metrics", "plugin:system:metrics", { sessionId }),
7 virtualMemory: (sessionId: string, options: Payload = {}) => call<Payload>("module_system_virtual_memory", "plugin:system:virtualMemory", { ...options, sessionId }),
8 manageVirtualMemory: (sessionId: string, payload: Payload) => call<Payload>("module_system_manage_virtual_memory", "plugin:system:manageVirtualMemory", { ...payload, sessionId })
9});
SHA-2563377925d1d15b778b6f2b2560e34659e1b404cab7daccaa2d2b00494eaa064e4

CH-J Proprietary Software License 1.14 · Source is provided under the CH-J Proprietary Software License 1.14. Its availability does not change the license terms or grant additional rights.

Archive SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
Files