Files
glances/glances/plugins
..
2021-09-26 17:47:57 +02:00
2024-05-17 03:37:22 +05:30
2024-10-04 20:20:12 +02:00
2024-12-23 10:58:34 +01:00
2025-01-04 11:20:08 +01:00
2024-10-04 20:20:12 +02:00
2024-05-17 03:37:22 +05:30
2024-05-17 03:37:22 +05:30
2024-05-17 03:37:22 +05:30
2024-05-17 03:37:22 +05:30
2024-05-17 03:37:22 +05:30
2024-07-24 15:52:04 +02:00
2024-05-17 03:37:22 +05:30
2024-05-17 03:37:22 +05:30
2024-10-04 20:20:12 +02:00
2014-01-12 20:59:06 +01:00
2024-06-29 19:19:26 +02:00

===============
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 PluginModel (inherited from GlancesPluginModel).

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).