#!/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, 'linux.loadavg.monitor', 'loadavg.monitor', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), (22, 'linux.cpu.monitor', 'cpu.monitor', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), (25, 'linux.memory.monitor', 'memory.monitor', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), (28, 'linux.swap.monitor', 'swap.monitor', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), (31, 'linux.disk.monitor', 'disk.monitor', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), (34, 'linux.netstats.monitor', 'netstats.monitor', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n'), (37, 'linux.iostats.monitor', 'iostats.monitor', False, 'from linux import cpu, disk, iostats, loadavg, memory, netstats, swap\n')]