mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-17 17:50:49 +00:00
api: datastore_status: restore api/gui compatibility
the latest changes to this api call changed/removed some things that were actually necessary for the gui. Readd those and document them this time. The change from u64 to i64 limits us to 8EiB of Datastore sizes (instead if 16EiB) but if we reach that, we must adapt most other parts to use 128bit sizes anyway Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
fdcb2694b4
commit
24a10d107a
@ -653,25 +653,30 @@ pub struct DataStoreStatus {
|
|||||||
/// Status of a Datastore
|
/// Status of a Datastore
|
||||||
pub struct DataStoreStatusListItem {
|
pub struct DataStoreStatusListItem {
|
||||||
pub store: String,
|
pub store: String,
|
||||||
/// The Size of the underlying storage in bytes.
|
/// The Size of the underlying storage in bytes. (-1 on error)
|
||||||
pub total: u64,
|
pub total: i64,
|
||||||
/// The used bytes of the underlying storage.
|
/// The used bytes of the underlying storage. (-1 on error)
|
||||||
pub used: u64,
|
pub used: i64,
|
||||||
/// The available bytes of the underlying storage.
|
/// The available bytes of the underlying storage. (-1 on error)
|
||||||
pub avail: u64,
|
pub avail: i64,
|
||||||
/// A list of usages of the past (last Month).
|
/// A list of usages of the past (last Month).
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub history: Option<Vec<Option<f64>>>,
|
pub history: Option<Vec<Option<f64>>>,
|
||||||
/// History start time (epoch)
|
/// History start time (epoch)
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub history_start: Option<u64>,
|
pub history_start: Option<u64>,
|
||||||
/// History resolution (seconds)
|
/// History resolution (seconds)
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub history_delta: Option<u64>,
|
pub history_delta: Option<u64>,
|
||||||
/// Estimation of the UNIX epoch when the storage will be full.
|
/// Estimation of the UNIX epoch when the storage will be full.
|
||||||
/// This is calculated via a simple Linear Regression (Least
|
/// This is calculated via a simple Linear Regression (Least
|
||||||
/// Squares) of RRD data of the last Month. Missing if there are
|
/// Squares) of RRD data of the last Month. Missing if there are
|
||||||
/// not enough data points yet. If the estimate lies in the past,
|
/// not enough data points yet. If the estimate lies in the past,
|
||||||
/// the usage is decreasing.
|
/// the usage is decreasing or not changing.
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub estimated_full_date: Option<i64>,
|
pub estimated_full_date: Option<i64>,
|
||||||
/// An error description, for example, when the datastore could not be looked up
|
/// An error description, for example, when the datastore could not be looked up
|
||||||
|
#[serde(skip_serializing_if="Option::is_none")]
|
||||||
pub error: Option<String>,
|
pub error: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user