mirror of
https://github.com/unraid/api.git
synced 2026-01-14 04:29:51 -06:00
add more array and disk descriptions
Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user