generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
43 lines (39 loc) · 1 KB
/
types.ts
File metadata and controls
43 lines (39 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import React from 'react';
export interface Cluster {
id: string;
name: string;
engine: string;
version: string;
architecture: string; // e.g., "Real-time Primary" (实时主备)
status: 'Running' | 'Degraded' | 'Stopped' | 'Creating';
environment: string; // e.g., "KB1.0"
specs: string; // e.g., "1C2G"
storage: string; // e.g., "200Gi"
organization: string; // e.g., "wangyelei"
createdTime: string; // e.g., "3 hours ago"
}
export interface ClusterInstance {
id: string;
role: 'primary' | 'secondary' | 'leader' | 'follower';
cpuRequest: string;
memoryRequest: string;
storageRequest: string;
cpuUsage: number; // percentage
memoryUsage: number; // percentage
storageUsage: number; // percentage
node: string;
zone: string;
}
export interface ClusterConnection {
addressType: string;
networkType: string;
title: string;
instance: string;
address: string;
}
export interface MenuItem {
id: string;
label: string;
icon: React.ElementType;
active?: boolean;
}