本文整理汇总了Python中glances.plugins.glances_plugin.GlancesPlugin.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python GlancesPlugin.__init__方法的具体用法?Python GlancesPlugin.__init__怎么用?Python GlancesPlugin.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类glances.plugins.glances_plugin.GlancesPlugin
的用法示例。
在下文中一共展示了GlancesPlugin.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the quicklook plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Init stats
self.reset()
示例2: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None, config=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# Set the config instance
self.config = config
# We want to display the stat in the curse interface
self.display_curse = True
示例3: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Set the message position
self.set_align('bottom')
示例4: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args, items_history_list=items_history_list)
# We want to display the stat in the curse interface
self.display_curse = True
# Init the stats
self.reset()
示例5: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Trying to display proc time
self.tag_proc_time = True
示例6: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We dot not want to display the stat in the curse interface
# The core number is displayed by the load plugin
self.display_curse = False
# Init the stat
self.reset()
示例7: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Init stats
self.glances_monitors = None
self.stats = []
示例8: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Init stats
self.reset()
self.percputime_total_new = []
self.percputime_new = []
示例9: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Set the message position
# It is NOT the curse position but the Glances column/line
# Enter -1 to right align
self.column_curse = 1
# Enter -1 to diplay bottom
self.line_curse = 2
示例10: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# The plgin can be disable using: args.disable_docker
self.args = args
# We want to display the stat in the curse interface
self.display_curse = True
# Init the Docker API
self.docker_client = False
示例11: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Set the message position
self.align = 'right'
# Init the stats
self.reset()
示例12: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# Init the sensor class
self.glancesgrabbat = GlancesGrabBat()
# We do not want to display the stat in a dedicated area
# The HDD temp is displayed within the sensors plugin
self.display_curse = False
# Init stats
self.reset()
示例13: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None, config=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# Set the config instance
self.config = config
# We want to display the stat in the curse interface
self.display_curse = True
# init data dictionary
self.view_data = {}
self.generate_view_data()
示例14: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args, items_history_list=items_history_list)
# We want to display the stat in the curse interface
self.display_curse = True
# Init stats
self.reset()
# Call CorePlugin in order to display the core number
try:
self.nb_log_core = CorePlugin(args=self.args).update()["log"]
except Exception:
self.nb_log_core = 0
示例15: __init__
# 需要导入模块: from glances.plugins.glances_plugin import GlancesPlugin [as 别名]
# 或者: from glances.plugins.glances_plugin.GlancesPlugin import __init__ [as 别名]
def __init__(self, args=None):
"""Init the plugin."""
GlancesPlugin.__init__(self, args=args)
# We want to display the stat in the curse interface
self.display_curse = True
# Trying to display proc time
self.tag_proc_time = True
# Call CorePlugin to get the core number (needed when not in IRIX mode / Solaris mode)
try:
self.nb_log_core = CorePlugin(args=self.args).update()["log"]
except Exception:
self.nb_log_core = 0