(self, clock)
Initializes the MaaS configuration using the provided clock.

        This initializer reflects the variety of available check types and
        metrics supported by MaaS. Some MaaS check types have been omitted
        for simplicity and clarity. The full list of check types and metrics
        can be found in `the Rackspace Cloud Monitoring Developer Guide, appendix B
            <http://docs.rackspace.com/cm/api/v1.0/cm-devguide/content/appendix-check-types.html>`_
Initializes the MaaS configuration using the provided clock.
Initializes the MaaS configuration using the provided clock .
def __init__(self, clock):
        """
        Initializes the MaaS configuration using the provided clock.

        This initializer reflects the variety of available check types and
        metrics supported by MaaS. Some MaaS check types have been omitted
        for simplicity and clarity. The full list of check types and metrics
        can be found in `the Rackspace Cloud Monitoring Developer Guide, appendix B
            <http://docs.rackspace.com/cm/api/v1.0/cm-devguide/content/appendix-check-types.html>`_
        """
        self.agents = {}
        self.alarm_states = []

        self.check_types = {
            'agent.cpu': CheckType(clock=clock, metrics=[
                _agent_metric(name='user_percent_average', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='wait_percent_average', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='sys_percent_average', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='idle_percent_average', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='irq_percent_average', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='usage_average', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='min_cpu_usage', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='max_cpu_usage', type=METRIC_TYPE_NUMBER, unit='percent'),
                _agent_metric(name='stolen_percent_average', type=METRIC_TYPE_NUMBER, unit='percent')]),
            'agent.disk': CheckType(clock=clock, metrics=[
                _agent_metric(name='queue', type=METRIC_TYPE_INTEGER),
                _agent_metric(name='read_bytes', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='reads', type=METRIC_TYPE_INTEGER, unit='count'),
                _agent_metric(name='rtime', type=METRIC_TYPE_INTEGER),
                _agent_metric(name='wtime', type=METRIC_TYPE_INTEGER),
                _agent_metric(name='write_bytes', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='writes', type=METRIC_TYPE_INTEGER, unit='count')]),
            'agent.filesystem': CheckType(clock=clock, metrics=[
                _agent_metric(name='avail', type=METRIC_TYPE_INTEGER, unit='kilobytes'),
                _agent_metric(name='free', type=METRIC_TYPE_INTEGER, unit='kilobytes'),
                _agent_metric(name='options', type=METRIC_TYPE_STRING, unit='string'),
                _agent_metric(name='total', type=METRIC_TYPE_INTEGER, unit='kilobytes'),
                _agent_metric(name='used', type=METRIC_TYPE_INTEGER, unit='kilobytes'),
                _agent_metric(name='files', type=METRIC_TYPE_INTEGER, unit='count'),
                _agent_metric(name='free_files', type=METRIC_TYPE_INTEGER, unit='count')]),
            'agent.load_average': CheckType(clock=clock, metrics=[
                _agent_metric(name='1m', type=METRIC_TYPE_NUMBER),
                _agent_metric(name='5m', type=METRIC_TYPE_NUMBER),
                _agent_metric(name='10m', type=METRIC_TYPE_NUMBER)]),
            'agent.memory': CheckType(clock=clock, metrics=[
                _agent_metric(name='actual_free', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='actual_used', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='free', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='ram', type=METRIC_TYPE_INTEGER, unit='megabytes'),
                _agent_metric(name='swap_free', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='swap_page_in', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='swap_page_out', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='swap_total', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='swap_used', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='total', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='used', type=METRIC_TYPE_INTEGER, unit='bytes')]),
            'agent.network': CheckType(clock=clock, metrics=[
                _agent_metric(name='rx_bytes', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='rx_dropped', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='rx_errors', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='rx_packets', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='tx_bytes', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='tx_dropped', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='tx_errors', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _agent_metric(name='tx_packets', type=METRIC_TYPE_INTEGER, unit='bytes')]),
            'remote.http': CheckType(clock=clock, metrics=[
                _remote_metric(name='bytes', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _remote_metric(name='cert_end', type=METRIC_TYPE_INTEGER),
                _remote_metric(name='cert_end_in', type=METRIC_TYPE_INTEGER),
                _remote_metric(name='cert_error', type=METRIC_TYPE_STRING, unit='string'),
                _remote_metric(name='cert_issuer', type=METRIC_TYPE_STRING, unit='string'),
                _remote_metric(name='cert_start', type=METRIC_TYPE_INTEGER),
                _remote_metric(name='cert_subject', type=METRIC_TYPE_STRING, unit='string'),
                _remote_metric(name='cert_subject_alternative_names',
                               type=METRIC_TYPE_STRING,
                               unit='string'),
                _remote_metric(name='code', type=METRIC_TYPE_STRING, unit='string'),
                _remote_metric(name='duration', type=METRIC_TYPE_INTEGER),
                _remote_metric(name='truncated', type=METRIC_TYPE_INTEGER, unit='bytes'),
                _remote_metric(name='tt_connect', type=METRIC_TYPE_INTEGER),
                _remote_metric(name='tt_firstbyte', type=METRIC_TYPE_INTEGER)]),
            'remote.ping': CheckType(clock=clock, metrics=[
                _remote_metric(name='available', type=METRIC_TYPE_NUMBER, unit='percent'),
                _remote_metric(name='average', type=METRIC_TYPE_NUMBER),
                _remote_metric(name='count', type=METRIC_TYPE_INTEGER, unit='count'),
                _remote_metric(name='maximum', type=METRIC_TYPE_NUMBER),
                _remote_metric(name='minimum', type=METRIC_TYPE_NUMBER)])}

        self.host_info_types = {
            'cpus': MultiHostInfoType(metrics=[
                _multi_host_info_metric(name='idle', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='irq', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='mhz', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='model', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='soft_irq', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='stolen', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='sys', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='total', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='total_cores', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='user', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='vendor', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='wait', type=METRIC_TYPE_INTEGER)]),
            'disks': MultiHostInfoType(metrics=[
                _multi_host_info_metric(name='name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='read_bytes', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='reads', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='rtime', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='time', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='write_bytes', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='writes', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='wtime', type=METRIC_TYPE_INTEGER)]),
            'filesystems': MultiHostInfoType(metrics=[
                _multi_host_info_metric(name='avail', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='dev_name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='dir_name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='files', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='free', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='free_files', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='options', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='sys_type_name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='total', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='used', type=METRIC_TYPE_INTEGER)]),
            'memory': SingleHostInfoType(metrics=[
                _single_host_info_metric(name='actual_free', type=METRIC_TYPE_INTEGER),
                _single_host_info_metric(name='actual_used', type=METRIC_TYPE_INTEGER),
                _single_host_info_metric(name='free', type=METRIC_TYPE_INTEGER),
                _single_host_info_metric(name='free_percent', type=METRIC_TYPE_NUMBER, unit='percent'),
                _single_host_info_metric(name='ram', type=METRIC_TYPE_INTEGER),
                _single_host_info_metric(name='total', type=METRIC_TYPE_INTEGER),
                _single_host_info_metric(name='used', type=METRIC_TYPE_INTEGER),
                _single_host_info_metric(name='used_percent', type=METRIC_TYPE_NUMBER, unit='percent')]),
            'network_interfaces': MultiHostInfoType(metrics=[
                _multi_host_info_metric(name='address', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='address6', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='broadcast', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='flags', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='hwaddr', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='mtu', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='netmask', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='rx_bytes', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='rx_packets', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='tx_bytes', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='tx_packets', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='type', type=METRIC_TYPE_STRING)]),
            'processes': MultiHostInfoType(metrics=[
                _multi_host_info_metric(name='cred_group', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='cred_user', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='exe_cwd', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='exe_name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='exe_root', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='memory_major_faults', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='memory_minor_faults', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='memory_page_faults', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='memory_resident', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='memory_share', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='memory_size', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='pid', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='state_name', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='state_priority', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='state_threads', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='time_start_time', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='time_sys', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='time_total', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='time_user', type=METRIC_TYPE_INTEGER)]),
            'system': SingleHostInfoType(metrics=[
                _single_host_info_metric(name='arch', type=METRIC_TYPE_STRING),
                _single_host_info_metric(name='name', type=METRIC_TYPE_STRING),
                _single_host_info_metric(name='vendor', type=METRIC_TYPE_STRING),
                _single_host_info_metric(name='vendor_name', type=METRIC_TYPE_STRING),
                _single_host_info_metric(name='vendor_version', type=METRIC_TYPE_STRING),
                _single_host_info_metric(name='version', type=METRIC_TYPE_STRING)]),
            'who': MultiHostInfoType(metrics=[
                _multi_host_info_metric(name='device', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='host', type=METRIC_TYPE_STRING),
                _multi_host_info_metric(name='time', type=METRIC_TYPE_INTEGER),
                _multi_host_info_metric(name='user', type=METRIC_TYPE_STRING)])}
def __init__ ( self , clock ) : self . agents = { } self . alarm_states = [ ] self . check_types = { 'agent.cpu' : CheckType ( clock = clock , metrics = [ _agent_metric ( name = 'user_percent_average' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'wait_percent_average' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'sys_percent_average' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'idle_percent_average' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'irq_percent_average' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'usage_average' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'min_cpu_usage' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'max_cpu_usage' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _agent_metric ( name = 'stolen_percent_average' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) ] ) , 'agent.disk' : CheckType ( clock = clock , metrics = [ _agent_metric ( name = 'queue' , type = METRIC_TYPE_INTEGER ) , _agent_metric ( name = 'read_bytes' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'reads' , type = METRIC_TYPE_INTEGER , unit = 'count' ) , _agent_metric ( name = 'rtime' , type = METRIC_TYPE_INTEGER ) , _agent_metric ( name = 'wtime' , type = METRIC_TYPE_INTEGER ) , _agent_metric ( name = 'write_bytes' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'writes' , type = METRIC_TYPE_INTEGER , unit = 'count' ) ] ) , 'agent.filesystem' : CheckType ( clock = clock , metrics = [ _agent_metric ( name = 'avail' , type = METRIC_TYPE_INTEGER , unit = 'kilobytes' ) , _agent_metric ( name = 'free' , type = METRIC_TYPE_INTEGER , unit = 'kilobytes' ) , _agent_metric ( name = 'options' , type = METRIC_TYPE_STRING , unit = 'string' ) , _agent_metric ( name = 'total' , type = METRIC_TYPE_INTEGER , unit = 'kilobytes' ) , _agent_metric ( name = 'used' , type = METRIC_TYPE_INTEGER , unit = 'kilobytes' ) , _agent_metric ( name = 'files' , type = METRIC_TYPE_INTEGER , unit = 'count' ) , _agent_metric ( name = 'free_files' , type = METRIC_TYPE_INTEGER , unit = 'count' ) ] ) , 'agent.load_average' : CheckType ( clock = clock , metrics = [ _agent_metric ( name = '1m' , type = METRIC_TYPE_NUMBER ) , _agent_metric ( name = '5m' , type = METRIC_TYPE_NUMBER ) , _agent_metric ( name = '10m' , type = METRIC_TYPE_NUMBER ) ] ) , 'agent.memory' : CheckType ( clock = clock , metrics = [ _agent_metric ( name = 'actual_free' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'actual_used' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'free' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'ram' , type = METRIC_TYPE_INTEGER , unit = 'megabytes' ) , _agent_metric ( name = 'swap_free' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'swap_page_in' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'swap_page_out' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'swap_total' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'swap_used' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'total' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'used' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) ] ) , 'agent.network' : CheckType ( clock = clock , metrics = [ _agent_metric ( name = 'rx_bytes' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'rx_dropped' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'rx_errors' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'rx_packets' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'tx_bytes' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'tx_dropped' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'tx_errors' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _agent_metric ( name = 'tx_packets' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) ] ) , 'remote.http' : CheckType ( clock = clock , metrics = [ _remote_metric ( name = 'bytes' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _remote_metric ( name = 'cert_end' , type = METRIC_TYPE_INTEGER ) , _remote_metric ( name = 'cert_end_in' , type = METRIC_TYPE_INTEGER ) , _remote_metric ( name = 'cert_error' , type = METRIC_TYPE_STRING , unit = 'string' ) , _remote_metric ( name = 'cert_issuer' , type = METRIC_TYPE_STRING , unit = 'string' ) , _remote_metric ( name = 'cert_start' , type = METRIC_TYPE_INTEGER ) , _remote_metric ( name = 'cert_subject' , type = METRIC_TYPE_STRING , unit = 'string' ) , _remote_metric ( name = 'cert_subject_alternative_names' , type = METRIC_TYPE_STRING , unit = 'string' ) , _remote_metric ( name = 'code' , type = METRIC_TYPE_STRING , unit = 'string' ) , _remote_metric ( name = 'duration' , type = METRIC_TYPE_INTEGER ) , _remote_metric ( name = 'truncated' , type = METRIC_TYPE_INTEGER , unit = 'bytes' ) , _remote_metric ( name = 'tt_connect' , type = METRIC_TYPE_INTEGER ) , _remote_metric ( name = 'tt_firstbyte' , type = METRIC_TYPE_INTEGER ) ] ) , 'remote.ping' : CheckType ( clock = clock , metrics = [ _remote_metric ( name = 'available' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _remote_metric ( name = 'average' , type = METRIC_TYPE_NUMBER ) , _remote_metric ( name = 'count' , type = METRIC_TYPE_INTEGER , unit = 'count' ) , _remote_metric ( name = 'maximum' , type = METRIC_TYPE_NUMBER ) , _remote_metric ( name = 'minimum' , type = METRIC_TYPE_NUMBER ) ] ) } self . host_info_types = { 'cpus' : MultiHostInfoType ( metrics = [ _multi_host_info_metric ( name = 'idle' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'irq' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'mhz' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'model' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'soft_irq' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'stolen' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'sys' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'total' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'total_cores' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'user' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'vendor' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'wait' , type = METRIC_TYPE_INTEGER ) ] ) , 'disks' : MultiHostInfoType ( metrics = [ _multi_host_info_metric ( name = 'name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'read_bytes' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'reads' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'rtime' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'time' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'write_bytes' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'writes' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'wtime' , type = METRIC_TYPE_INTEGER ) ] ) , 'filesystems' : MultiHostInfoType ( metrics = [ _multi_host_info_metric ( name = 'avail' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'dev_name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'dir_name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'files' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'free' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'free_files' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'options' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'sys_type_name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'total' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'used' , type = METRIC_TYPE_INTEGER ) ] ) , 'memory' : SingleHostInfoType ( metrics = [ _single_host_info_metric ( name = 'actual_free' , type = METRIC_TYPE_INTEGER ) , _single_host_info_metric ( name = 'actual_used' , type = METRIC_TYPE_INTEGER ) , _single_host_info_metric ( name = 'free' , type = METRIC_TYPE_INTEGER ) , _single_host_info_metric ( name = 'free_percent' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) , _single_host_info_metric ( name = 'ram' , type = METRIC_TYPE_INTEGER ) , _single_host_info_metric ( name = 'total' , type = METRIC_TYPE_INTEGER ) , _single_host_info_metric ( name = 'used' , type = METRIC_TYPE_INTEGER ) , _single_host_info_metric ( name = 'used_percent' , type = METRIC_TYPE_NUMBER , unit = 'percent' ) ] ) , 'network_interfaces' : MultiHostInfoType ( metrics = [ _multi_host_info_metric ( name = 'address' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'address6' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'broadcast' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'flags' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'hwaddr' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'mtu' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'netmask' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'rx_bytes' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'rx_packets' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'tx_bytes' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'tx_packets' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'type' , type = METRIC_TYPE_STRING ) ] ) , 'processes' : MultiHostInfoType ( metrics = [ _multi_host_info_metric ( name = 'cred_group' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'cred_user' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'exe_cwd' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'exe_name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'exe_root' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'memory_major_faults' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'memory_minor_faults' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'memory_page_faults' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'memory_resident' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'memory_share' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'memory_size' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'pid' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'state_name' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'state_priority' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'state_threads' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'time_start_time' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'time_sys' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'time_total' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'time_user' , type = METRIC_TYPE_INTEGER ) ] ) , 'system' : SingleHostInfoType ( metrics = [ _single_host_info_metric ( name = 'arch' , type = METRIC_TYPE_STRING ) , _single_host_info_metric ( name = 'name' , type = METRIC_TYPE_STRING ) , _single_host_info_metric ( name = 'vendor' , type = METRIC_TYPE_STRING ) , _single_host_info_metric ( name = 'vendor_name' , type = METRIC_TYPE_STRING ) , _single_host_info_metric ( name = 'vendor_version' , type = METRIC_TYPE_STRING ) , _single_host_info_metric ( name = 'version' , type = METRIC_TYPE_STRING ) ] ) , 'who' : MultiHostInfoType ( metrics = [ _multi_host_info_metric ( name = 'device' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'host' , type = METRIC_TYPE_STRING ) , _multi_host_info_metric ( name = 'time' , type = METRIC_TYPE_INTEGER ) , _multi_host_info_metric ( name = 'user' , type = METRIC_TYPE_STRING ) ] ) }