Skip to main content

hardware

TOC

Attributes

🅰 hardware

hardware = Hardware() #watch updates in daemon

Functions

🅵 return_default_config

def return_default_config() -> dict:

🅵 load_monit_hardware

def load_monit_hardware():

Classes

🅲 CpuStatus

class CpuStatus:

🅼 __init__

def __init__(self, id=-1, percentage=0.0, frequency=0.0):

🅼 __str__

def __str__(self) -> str:

🅼 json

def json(self):

🅲 CpuStatistics

class CpuStatistics:

🅼 __init__

def __init__(self, ctx_switches, interrupts, soft_interrupts, syscalls) -> None:

🅼 json

def json(self):

🅼 __str__

def __str__(self) -> str:

🅲 MemoryStatus

class MemoryStatus:

🅼 __init__

def __init__(self, total, available, used, free) -> None:

🅼 json

def json(self):

🅼 __str__

def __str__(self) -> str:

🅲 NvGpuStatus

class NvGpuStatus(GPU):

🅼 parse

def parse(cls, other: GPU):

🅼 json

def json(self):

🅼 __str__

def __str__(self) -> str:

🅲 Hardware

class Hardware:

🅼 __init__

def __init__(self) -> None:

🅼 cpus

def cpus(self):

🅼 cpu_statistics

def cpu_statistics(self):

🅼 memory

def memory(self):

🅼 gpus

def gpus(self):

🅼 with_gpu

def with_gpu(self):

🅼 json

def json(self):

🅼 add_on_update_call_back

def add_on_update_call_back(self, func: Callable):

🅼 set_start_update_intervel

def set_start_update_intervel(self, intervel=1.0) -> None: