kysdk.Runinfo(3)

NAME
kysdk.Runinfo - 获取瞬时信息 主要用来获取瞬时网速，cpu温度、磁盘温度、磁盘转速

SYNOPSIS

Inherits kysdk.Base.

  Public Member Functions

def __init__ (self)
def getNetSpeed (self, netcard)
获取瞬时网速信息
def getDiskRate (self, disk_path)
获取磁盘转速
def getCpuTemperature (self)
获取CPU温度
def getDiskTemperature (self, disk_path)
获取磁盘温度

  Additional Inherited Members

Detailed Description

获取瞬时信息 主要用来获取瞬时网速，cpu温度、磁盘温度、磁盘转速

Member Function Documentation

  def kysdk.Runinfo.getCpuTemperature ( self)

获取CPU温度

Returns
    CPU温度

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Runinfo.getDiskRate ( self, disk_path)

获取磁盘转速

Parameters
    disk_path 磁盘名称，应当是例如/dev/sda这种绝对路径

Returns
    磁盘转速

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Runinfo.getDiskTemperature ( self, disk_path)

获取磁盘温度

Parameters
    disk_path 磁盘名称，应当是例如/dev/sda这种绝对路径

Returns
    磁盘温度

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Runinfo.getNetSpeed ( self, netcard)

获取瞬时网速信息

Parameters
    netcard 网卡名称，如eno1

Returns
    瞬时网速

References kysdk.SessionBase.interface, and kysdk.Base.interface.

Author

Generated automatically by Doxygen for kysdk.py from the source code.