add monitor statuses
This commit is contained in:
1 parent
82c8122a5a
commit
d296aec02e
1 file changed
+4
-2
@@ -1,10 +1,12 @@
|
|||||||
import type { Check } from "@/types/check.js";
|
|
||||||
import type { CheckSnapshot } from "@/types/check.js";
|
import type { CheckSnapshot } from "@/types/check.js";
|
||||||
export type { CheckSnapshot } from "@/types/check.js";
|
export type { CheckSnapshot } from "@/types/check.js";
|
||||||
|
|
||||||
export const MonitorTypes = ["http", "ping", "pagespeed", "hardware", "docker", "port", "game", "unknown"] as const;
|
export const MonitorTypes = ["http", "ping", "pagespeed", "hardware", "docker", "port", "game", "unknown"] as const;
|
||||||
export type MonitorType = (typeof MonitorTypes)[number];
|
export type MonitorType = (typeof MonitorTypes)[number];
|
||||||
|
|
||||||
|
export const MonitorStatuses = ["up", "down", "paused", "initializing", "maintenance"] as const;
|
||||||
|
export type MonitorStatus = (typeof MonitorStatuses)[number];
|
||||||
|
|
||||||
export interface MonitorThresholds {
|
export interface MonitorThresholds {
|
||||||
usage_cpu?: number;
|
usage_cpu?: number;
|
||||||
usage_memory?: number;
|
usage_memory?: number;
|
||||||
@@ -20,7 +22,7 @@ export interface Monitor {
|
|||||||
teamId: string;
|
teamId: string;
|
||||||
name: string;
|
name: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
status?: boolean;
|
status?: MonitorStatus;
|
||||||
statusWindow: boolean[];
|
statusWindow: boolean[];
|
||||||
statusWindowSize: number;
|
statusWindowSize: number;
|
||||||
statusWindowThreshold: number;
|
statusWindowThreshold: number;
|
||||||
|
|||||||
Reference in new issue
Block a user