-
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathinstance.d.ts
More file actions
47 lines (44 loc) · 1.14 KB
/
instance.d.ts
File metadata and controls
47 lines (44 loc) · 1.14 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
44
45
46
47
declare type TInstanceListRequestParams = TBaseRequestListParams & {
project_names?: string[];
fleet_ids?: string[];
only_active?: boolean;
include_imported?: boolean;
};
declare type TInstanceStatus =
| 'pending'
| 'creating'
| 'starting'
| 'provisioning'
| 'idle'
| 'busy'
| 'terminating'
| 'terminated';
declare type THealthStatus = 'healthy' | 'warning' | 'failure';
declare interface IInstance {
id: string;
fleet_name: string;
fleet_id: string;
backend: TBackendType;
instance_num: number;
instance_type: {
name: string;
resources: IResources;
} | null;
name: string;
job_name: string | null;
project_name: string | null;
job_status: TJobStatus | null;
hostname: string;
status: TInstanceStatus;
unreachable: boolean;
health_status: THealthStatus;
termination_reason: string | null;
termination_reason_message: string | null;
created: DateTime;
finished_at: DateTime | null;
region: string;
availability_zone: string | null;
price: number | null;
total_blocks: number | null;
busy_blocks: number;
}