mirror of https://github.com/nicolargo/glances.git
|
|
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| alert | ||
| amps | ||
| cloud | ||
| connections | ||
| containers | ||
| core | ||
| cpu | ||
| diskio | ||
| folders | ||
| fs | ||
| gpu | ||
| help | ||
| ip | ||
| irq | ||
| load | ||
| mem | ||
| memswap | ||
| network | ||
| now | ||
| percpu | ||
| plugin | ||
| ports | ||
| processcount | ||
| processlist | ||
| programlist | ||
| psutilversion | ||
| quicklook | ||
| raid | ||
| sensors | ||
| smart | ||
| system | ||
| uptime | ||
| version | ||
| vms | ||
| wifi | ||
| README.rst | ||
| __init__.py | ||
README.rst
=============== Glances plugins =============== This is the Glances plugins folder. A Glances plugin is a Python module hosted in a folder. It should implement a Class named <plugin name>Plugin inherited from GlancesPluginModel (example for foo plugin: FooPlugin). This class should be based on the MVC model. - model: where the stats are updated (update method) - view: where the stats are prepare to be displayed (update_views) - controller: where the stats are displayed (msg_curse method) A plugin should define the following global variables: - fields_description: a dict twith the field description/option - items_history_list (optional): define items history Have a look of all Glances plugin's methods in the plugin folder (where the GlancesPluginModel is defined).