SysFsCgroupMemoryTasksNumber - Datasource sys_fs_cgroup_memory_tasks_number

This parser parse the output of the datasource sys_fs_cgroup_memory_tasks_number. This datasource is used to count the number of lines from output of the command /usr/bin/find /sys/fs/cgroup/memory -name 'tasks'

class insights.parsers.sys_fs_cgroup_memory_tasks_number.SysFsCgroupMemoryTasksNumber(context)[source]

Bases: Parser

Class SysFsCgroupMemoryTasksNumber parses the the output of the datasource``sys_fs_cgroup_memory_tasks_number``. This datasource is used to count the number of lines from output of the command /usr/bin/find /sys/fs/cgroup/memory -name 'tasks'

The typical output of this command is::

260

number

The number of tasks files under /usr/bin/find /sys/fs/cgroup/memory.

Type:

int

Examples

>>> type(sys_fs_cgroup_memory_tasks_number)
<class 'insights.parsers.sys_fs_cgroup_memory_tasks_number.SysFsCgroupMemoryTasksNumber'>
>>> sys_fs_cgroup_memory_tasks_number.number
260
parse_content(content)[source]

This method must be implemented by classes based on this class.