15768: moved all current functionality to data-table.tsx Arvados-DCO-1.1-Signed-off...
[arvados.git] / src / models / node.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Resource } from 'models/resource';
6
7 export interface NodeResource extends Resource {
8     slotNumber: number;
9     hostname: string;
10     domain: string;
11     ipAddress: string;
12     jobUuid: string;
13     firstPingAt: string;
14     lastPingAt: string;
15     status: string;
16     info: NodeInfo;
17     properties: NodeProperties;
18 }
19
20 export interface NodeInfo {
21     last_action: string;
22     ping_secret: string;
23     ec2_instance_id: string;
24     slurm_state?: string;
25 }
26
27 export interface NodeProperties {
28     cloud_node: CloudNode;
29     total_ram_mb: number;
30     total_cpu_cores: number;
31     total_scratch_mb: number;
32 }
33
34 interface CloudNode {
35     size: string;
36     price: number;
37 }