From a529f75c189ab4200c0af3ef51dba8b9986174b7 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Mon, 14 Oct 2019 14:24:24 +1030 Subject: [PATCH] improvement(schema:array/array): add boot and parity to array --- app/graphql/schema/types/array/array.graphql | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/graphql/schema/types/array/array.graphql b/app/graphql/schema/types/array/array.graphql index 0dc980802..38fb30e7a 100644 --- a/app/graphql/schema/types/array/array.graphql +++ b/app/graphql/schema/types/array/array.graphql @@ -45,10 +45,14 @@ type Array { state: ArrayState! """Current array capacity""" capacity: ArrayCapacity! - """Disks in the current array""" - disks: [ArrayDisk] + """Current boot disk""" + boot: ArrayDataDisk + """Parity disks in the current array""" + parities: [ArrayDataDisk] + """Data disks in the current array""" + disks: [ArrayDataDisk] """Caches in the current array""" - caches: [ArrayDisk] + caches: [ArrayDataDisk] } enum ArrayState { @@ -76,7 +80,7 @@ type Capacity { total: Long } -type ArrayDisk { +type ArrayDataDisk { """Array slot number. Parity1 is always 0 and Parity2 is always 29. Array slots will be 1 - 28. Cache slots are 30 - 53. Flash is 54.""" slot: Long! name: String! @@ -112,6 +116,9 @@ type ArrayDisk { sizeSb: Long } +# type ArrayParityDisk {} +# type ArrayCacheDisk {} + enum ArrayDiskStatus { DISK_OK }