src/interfaces/Cluster.ts
export interface Node {
name: string;
}
export interface NodePools {
nodes: Node[];
}
export interface Status {
state: string;
}
// note - if an error occurs check for message field
export interface Cluster {
id: string;
name: string;
node_pools: NodePools[];
status: Status;
state: string;
message?: string;
}