add more array and disk descriptions

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-07-21 14:25:21 +09:30
parent 651293f13e
commit 0ff1e5d57e
2 changed files with 8 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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!