fix: parse quality data

This commit is contained in:
jialin
2026-05-31 22:23:32 +08:00
committed by jialin
parent 16a97772d3
commit 55028cf3a3
8 changed files with 214 additions and 122 deletions
@@ -41,10 +41,10 @@ export interface FormData {
}[];
volumeMount: string;
resources: {
cpu?: string;
ram?: string;
localStorage?: string;
accelerator?: number | string;
cpu: string | null | number;
ram: string | null | number;
localStorage: string | null | number;
accelerator: number | string | null;
};
volume: {
ephemeral?: {
@@ -162,6 +162,18 @@ export interface InstanceTypeSpec {
cpu: QuanityCPU;
ram: QuanityMemory;
};
unitResourcesParsed?: {
cpu: {
cores?: number;
unit: string;
num: number;
} | null;
ram: {
value: number;
unit: string;
num: number;
} | null;
};
}
export interface InstanceTypeStatus {