Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
}
export interface NodeInfo {
}
export interface NodeInfo {
- lastAction: string;
- pingSecret: string;
- ec2InstanceId: string;
- slurmState?: string;
+ last_action: string;
+ ping_secret: string;
+ ec2_instance_id: string;
+ slurm_state?: string;
}
export interface NodeProperties {
}
export interface NodeProperties {
- cloudNode: CloudNode;
- totalRamMb: number;
- totalCpuCores: number;
- totalScratchMb: number;
+ cloud_node: CloudNode;
+ total_ram_mb: number;
+ total_cpu_cores: number;
+ total_scratch_mb: number;
},
grid: {
padding: '8px 0 0 0'
},
grid: {
padding: '8px 0 0 0'
});
interface AttributesComputeNodeDialogDataProps {
});
interface AttributesComputeNodeDialogDataProps {
};
const renderInfo = (info: NodeInfo, classes: any) => {
};
const renderInfo = (info: NodeInfo, classes: any) => {
- const { lastAction, pingSecret, ec2InstanceId, slurmState } = info;
+ const { last_action, ping_secret, ec2_instance_id, slurm_state } = info;
return (
<Grid container direction="row" spacing={16} className={classnames([classes.root, classes.grid])}>
<Grid item xs={5}>Info - Last action</Grid>
return (
<Grid container direction="row" spacing={16} className={classnames([classes.root, classes.grid])}>
<Grid item xs={5}>Info - Last action</Grid>
- <Grid item xs={7}>{lastAction || '(none)'}</Grid>
+ <Grid item xs={7}>{last_action || '(none)'}</Grid>
<Grid item xs={5}>Info - Ping secret</Grid>
<Grid item xs={5}>Info - Ping secret</Grid>
- <Grid item xs={7}>{pingSecret || '(none)'}</Grid>
+ <Grid item xs={7}>{ping_secret || '(none)'}</Grid>
<Grid item xs={5}>Info - ec2 instance id</Grid>
<Grid item xs={5}>Info - ec2 instance id</Grid>
- <Grid item xs={7}>{ec2InstanceId || '(none)'}</Grid>
+ <Grid item xs={7}>{ec2_instance_id || '(none)'}</Grid>
<Grid item xs={5}>Info - Slurm state</Grid>
<Grid item xs={5}>Info - Slurm state</Grid>
- <Grid item xs={7}>{slurmState || '(none)'}</Grid>
+ <Grid item xs={7}>{slurm_state || '(none)'}</Grid>
</Grid>
);
};
const renderProperties = (properties: NodeProperties, classes: any) => {
</Grid>
);
};
const renderProperties = (properties: NodeProperties, classes: any) => {
- const { totalRamMb, totalCpuCores, totalScratchMb, cloudNode } = properties;
+ const { total_ram_mb, total_cpu_cores, total_scratch_mb, cloud_node } = properties;
return (
<Grid container direction="row" spacing={16} className={classnames([classes.root, classes.grid])}>
<Grid item xs={5}>Properties - Total ram mb</Grid>
return (
<Grid container direction="row" spacing={16} className={classnames([classes.root, classes.grid])}>
<Grid item xs={5}>Properties - Total ram mb</Grid>
- <Grid item xs={7}>{totalRamMb || '(none)'}</Grid>
+ <Grid item xs={7}>{total_ram_mb || '(none)'}</Grid>
<Grid item xs={5}>Properties - Total scratch mb</Grid>
<Grid item xs={5}>Properties - Total scratch mb</Grid>
- <Grid item xs={7}>{totalScratchMb || '(none)'}</Grid>
+ <Grid item xs={7}>{total_scratch_mb || '(none)'}</Grid>
<Grid item xs={5}>Properties - Total cpu cores</Grid>
<Grid item xs={5}>Properties - Total cpu cores</Grid>
- <Grid item xs={7}>{totalCpuCores || '(none)'}</Grid>
+ <Grid item xs={7}>{total_cpu_cores || '(none)'}</Grid>
<Grid item xs={5}>Properties - Cloud node size </Grid>
<Grid item xs={5}>Properties - Cloud node size </Grid>
- <Grid item xs={7}>{cloudNode ? cloudNode.size : '(none)'}</Grid>
+ <Grid item xs={7}>{cloud_node ? cloud_node.size : '(none)'}</Grid>
<Grid item xs={5}>Properties - Cloud node price</Grid>
<Grid item xs={5}>Properties - Cloud node price</Grid>
- <Grid item xs={7}>{cloudNode ? cloudNode.price : '(none)'}</Grid>
+ <Grid item xs={7}>{cloud_node ? cloud_node.price : '(none)'}</Grid>
</Grid>
);
};
\ No newline at end of file
</Grid>
);
};
\ No newline at end of file