blob: 69ab3f5f3ca14427ca258e7080372b29a3bc9200 (
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
25
|
/**
* Fields returned by the back-end.
*/
export interface CephDevice {
devid: string;
location: { host: string; dev: string }[];
daemons: string[];
life_expectancy_min?: string;
life_expectancy_max?: string;
life_expectancy_stamp?: string;
life_expectancy_enabled?: boolean;
}
/**
* Fields added by the front-end. Fields may be empty if no expectancy is provided for the
* CephDevice interface.
*/
export interface CdDevice extends CephDevice {
life_expectancy_weeks?: {
max: number;
min: number;
};
state?: 'good' | 'warning' | 'bad' | 'stale' | 'unknown';
readableDaemons?: string; // Human readable daemons (which can wrap lines inside the table cell)
}
|