Add disk stats to host endpoint (#49)

This commit is contained in:
Franck Nijhof 2021-01-15 20:35:57 +01:00 committed by GitHub
parent 71aeb066fb
commit f2013b461a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,3 +141,27 @@ function bashio::host.cpe() {
bashio::log.trace "${FUNCNAME[0]}" bashio::log.trace "${FUNCNAME[0]}"
bashio::host 'host.info.cpe' '.cpe' 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'
}