gleam/os_mon/disk

Types

pub type Disk {
  Disk(id: String, size: Int, capacity: Int)
}

Constructors

  • Disk(id: String, size: Int, capacity: Int)
pub type Errors {
  ValueTooSmall(Int)
  ValueTooLarge(Int)
  Crash(erlang.Crash)
}

Constructors

  • ValueTooSmall(Int)
  • ValueTooLarge(Int)
  • Crash(erlang.Crash)

Functions

pub external fn get_almost_full_threshold() -> Int
pub fn get_check_interval() -> Int
pub fn get_disk_data() -> Map(String, Disk)
pub fn set_almost_full_threshold(percent: Int) -> Result(
  Int,
  Errors,
)
pub fn set_check_interval(minutes: Int) -> Result(Int, Errors)
Search Document