mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 03:51:23 +00:00
Add disk stats to host endpoint (#49)
This commit is contained in:
parent
71aeb066fb
commit
f2013b461a
1 changed files with 24 additions and 0 deletions
24
lib/host.sh
24
lib/host.sh
|
@ -141,3 +141,27 @@ function bashio::host.cpe() {
|
|||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::host 'host.info.cpe' '.cpe'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Returns the available diskspace on the host.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::host.disk_free() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::host 'host.info.disk_free' '.disk_free'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Returns the total diskspace on the host.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::host.disk_total() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::host 'host.info.disk_total' '.disk_total'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Returns the available diskspace on the host.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::host.disk_used() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::host 'host.info.disk_used' '.disk_used'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue