)]}'
{"monasca_agent/collector/checks_d/lxc.py":[{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"3b0a35b4b8e8de9cb9048b1c25bd6c8f77b752c7","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"class LXC(checks.AgentCheck):"},{"line_number":29,"context_line":"    \"\"\"Agent to collect LXC cgroup information based mostly on read cgroup"},{"line_number":30,"context_line":"    files of each container"},{"line_number":31,"context_line":"    \"\"\""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def check(self, instance):"}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_f0493860","line":30,"range":{"start_line":29,"start_character":0,"end_line":30,"end_character":27},"updated":"2018-03-07 15:52:47.000000000","message":"Why was this changed?","commit_id":"8449dbc456ed1fa2297f4dee8b7563d43b036ded"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"3b0a35b4b8e8de9cb9048b1c25bd6c8f77b752c7","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        # Get others cgroup memory values"},{"line_number":135,"context_line":"        with open(\u0027{0}/memory.usage_in_bytes\u0027.format(mem_cgroup)) as mem_file:"},{"line_number":136,"context_line":"            for line in mem_file:"},{"line_number":137,"context_line":"                metrics[\u0027memory.usage_in_bytes\u0027] \u003d int(line)"},{"line_number":138,"context_line":"        return metrics"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def _get_swap_metrics(self, container_name):"}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_70e688eb","line":137,"range":{"start_line":137,"start_character":16,"end_line":137,"end_character":60},"updated":"2018-03-07 15:52:47.000000000","message":"Does that mean only the last line matters?","commit_id":"8449dbc456ed1fa2297f4dee8b7563d43b036ded"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"3b0a35b4b8e8de9cb9048b1c25bd6c8f77b752c7","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        return metrics"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def _get_swap_metrics(self, container_name):"},{"line_number":141,"context_line":"        \"\"\"Get swap metrics from memory cgroup file. If swapaccount is defined,"},{"line_number":142,"context_line":"           you can control swap memory. To active swap memory control, set"},{"line_number":143,"context_line":"           GRUB_CMDLINE_LINUX_DEFAULT\u003d\"swapaccount\u003d1\" on /etc/default/grub file"},{"line_number":144,"context_line":"           and restart the machine."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"           :returns: a dictionary containing swap metrics defined on"},{"line_number":147,"context_line":"           container cgroup"}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_7034484b","line":144,"range":{"start_line":141,"start_character":11,"end_line":144,"end_character":35},"updated":"2018-03-07 15:52:47.000000000","message":"Please, split title from explanation. Ex:\n\"\"\" Get swap metrics from memory cgroup file.\n\nIf swapaccount is defined, you can control swap memory.\nTo activate swap memory control, set\nGRUB_CMDLINE_LINUX_DEFAULT\u003d\"swapaccount\u003d1\" on /etc/default/grub\nfile and restart the machine.\n\n:returns a dictionary containing the swap metrics defined on\na container cgroup\n\"\"\"","commit_id":"8449dbc456ed1fa2297f4dee8b7563d43b036ded"},{"author":{"_account_id":23375,"name":"Stenio Araujo","email":"stenioaraujo@lsd.ufcg.edu.br","username":"stenioaraujo"},"change_message_id":"3b0a35b4b8e8de9cb9048b1c25bd6c8f77b752c7","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        if os.path.isfile(swap_file):"},{"line_number":153,"context_line":"            with open(swap_file) as mem_file:"},{"line_number":154,"context_line":"                for line in mem_file:"},{"line_number":155,"context_line":"                    metrics[\u0027memory.memsw.usage_in_bytes\u0027] \u003d int(line)"},{"line_number":156,"context_line":"        else:"},{"line_number":157,"context_line":"            self.log.error(\u0027Swap cgroup fine not found. \u0027"},{"line_number":158,"context_line":"                           \u0027Verify if swapaccount control is enable\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"df7087c5_b0c66016","line":155,"range":{"start_line":155,"start_character":20,"end_line":155,"end_character":69},"updated":"2018-03-07 15:52:47.000000000","message":"ditto","commit_id":"8449dbc456ed1fa2297f4dee8b7563d43b036ded"}]}
