From 0ff1e5d57e16ac395fdc7b97669b210751d08b60 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Sun, 21 Jul 2019 14:25:21 +0930 Subject: [PATCH] add more array and disk descriptions Signed-off-by: Alexis Tyler --- app/graphql/schema/types/array/array.graphql | 3 +++ app/graphql/schema/types/disks/disk.graphql | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/app/graphql/schema/types/array/array.graphql b/app/graphql/schema/types/array/array.graphql index c338a05ea..42b5ac264 100644 --- a/app/graphql/schema/types/array/array.graphql +++ b/app/graphql/schema/types/array/array.graphql @@ -1,4 +1,5 @@ type Query { + """An Unraid array consisting of 1 or 2 Parity disks and a number of Data disks.""" array: Array @func(module: "get-array") } @@ -15,7 +16,9 @@ type Mutation { } input arrayDiskInput { + """Disk ID""" id: String! + """The slot for the disk""" slot: Int } diff --git a/app/graphql/schema/types/disks/disk.graphql b/app/graphql/schema/types/disks/disk.graphql index 09cfb7838..80c6a0a0b 100644 --- a/app/graphql/schema/types/disks/disk.graphql +++ b/app/graphql/schema/types/disks/disk.graphql @@ -13,6 +13,7 @@ type Mutation { } type Disk { + """Array slot number. Parity1 is always 0 and Parity2 is always 29. Array slots will be 1 - 28. Cache slots are 30 - 53.""" idx: String! name: String! device: String! @@ -22,8 +23,11 @@ type Disk { rotational: Boolean! format: String! temp: Int! + """Count of I/O read requests sent to the device I/O drivers. These statistics may be cleared at any time.""" numReads: Int! + """Count of I/O writes requests sent to the device I/O drivers. These statistics may be cleared at any time.""" numWrites: Int! + """Number of unrecoverable errors reported by the device I/O drivers. Missing data due to unrecoverable array read errors is filled in on-the-fly using parity reconstruct (and we attempt to write this data back to the sector(s) which failed). Any unrecoverable write error results in disabling the disk.""" numErrors: Int! type: DiskType! color: String! @@ -31,6 +35,7 @@ type Disk { luksState: String comment: String exportable: Boolean! + """Indicates the file system detected in partition 1 of the device.""" fsType: DiskFsType! fsColor: DiskFsColor! fsSize: Int!