summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/models/osd-deployment-options.ts
blob: cae869efe17eab77185454927d880e29b16e3cf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export enum OsdDeploymentOptions {
  COST_CAPACITY = 'cost_capacity',
  THROUGHPUT = 'throughput_optimized',
  IOPS = 'iops_optimized'
}

export interface DeploymentOption {
  name: OsdDeploymentOptions;
  title: string;
  desc: string;
  capacity: number;
  available: boolean;
  hdd_used: number;
  used: number;
  nvme_used: number;
  ssd_used: number;
}

export interface DeploymentOptions {
  options: {
    [key in OsdDeploymentOptions]: DeploymentOption;
  };
  recommended_option: OsdDeploymentOptions;
}