]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/models/devices.ts
90817c89f9d06f519017fbda93320fdf669257fe
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / models / devices.ts
1 /**
2 * Fields returned by the back-end.
3 */
4 export interface CephDevice {
5 devid: string;
6 location: { host: string; dev: string }[];
7 daemons: string[];
8 life_expectancy_min?: string;
9 life_expectancy_max?: string;
10 life_expectancy_stamp?: string;
11 }
12
13 /**
14 * Fields added by the front-end. Fields may be empty if no expectancy is provided for the
15 * CephDevice interface.
16 */
17 export interface CdDevice extends CephDevice {
18 life_expectancy_weeks?: {
19 max: number;
20 min: number;
21 };
22 state?: 'good' | 'warning' | 'bad' | 'stale' | 'unknown';
23 readableDaemons?: string; // Human readable daemons (which can wrap lines inside the table cell)
24 }