#!/usr/bin/env python
# coding: utf-8
__author__ = 'whoami'

"""
@version: 1.0
@author: whoami
@license: Apache Licence 2.0
@contact: skutil@gmail.com
@site: http://www.itweet.cn
@software: PyCharm Community Edition
@file: plugin_api.py
@time: 2015-11-28 下午1:52
"""

from linux import cpu,disk,iostats,loadavg,memory,netstats,swap

def get_load_info():
    return loadavg.monitor()

def get_cpu_status():
    return cpu.monitor()

def get_memory_info():
    return memory.monitor()

def get_swap_info():
    return swap.monitor()

def get_disk_info():
    return disk.monitor()

def get_network_info():
    return netstats.monitor()

def get_iostats_info():
    return iostats.monitor()



[((19, 11, 19, 28), 'linux.loadavg.monitor', 'loadavg.monitor', ({}, {}), '()', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), ((22, 11, 22, 24), 'linux.cpu.monitor', 'cpu.monitor', ({}, {}), '()', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), ((25, 11, 25, 27), 'linux.memory.monitor', 'memory.monitor', ({}, {}), '()', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), ((28, 11, 28, 25), 'linux.swap.monitor', 'swap.monitor', ({}, {}), '()', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), ((31, 11, 31, 25), 'linux.disk.monitor', 'disk.monitor', ({}, {}), '()', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), ((34, 11, 34, 29), 'linux.netstats.monitor', 'netstats.monitor', ({}, {}), '()', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), ((37, 11, 37, 28), 'linux.iostats.monitor', 'iostats.monitor', ({}, {}), '()', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n')]