Merge branch 'master' into 14452-my-account
[arvados-workbench2.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     lastAction: string;
22     pingSecret: string;
23     ec2InstanceId: string;
24     slurmState?: string;
25 }
26
27 export interface NodeProperties {
28     cloudNode: CloudNode;
29     totalRamMb: number;
30     totalCpuCores: number;
31     totalScratchMb: number;
32 }
33
34 interface CloudNode {
35     size: string;
36     price: number;
37 }