From b33b345ea36389dc4064c83046b8c2794ade4620 Mon Sep 17 00:00:00 2001 From: jingyd66 <1071948456@qq.com> Date: Thu, 12 Sep 2024 10:01:22 +0800 Subject: [PATCH] update0912 --- handler/analyzer/analyze_queue.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/handler/analyzer/analyze_queue.py b/handler/analyzer/analyze_queue.py index 0b7cec10..3c326f48 100644 --- a/handler/analyzer/analyze_queue.py +++ b/handler/analyzer/analyze_queue.py @@ -200,9 +200,9 @@ def handle_from_node(node): handle_from_node(node) self.stdio.print(analyze_tuples) table_data = [] - headers = ['IP', 'Tenant Name', 'Is Queue', 'Over Queue Limit Count', 'Max Queue'] + headers = ['IP', 'Tenant Name', 'From_TimeStamp', 'To_TimeStamp', 'Is Queue', 'Over Queue Limit Count', 'Max Queue'] for ip, info in analyze_tuples: - row = [ip, info['tenant_name'], info['is_queue'], info['over_queue_limit'], info['max_queue']] + row = [ip, info['tenant_name'], info['from_datetime_timestamp'], info['to_datetime_timestamp'], info['is_queue'], info['over_queue_limit'], info['max_queue']] table_data.append(row) queue_result = tabulate(table_data, headers=headers, tablefmt="pretty") self.stdio.print(queue_result) @@ -261,6 +261,8 @@ def __handle_from_node(self, node, local_store_parent_dir): result_dict['is_queue'] = 'no' result_dict['over_queue_limit'] = count result_dict['max_queue'] = max_queue_value + result_dict['from_datetime_timestamp'] = from_datetime_timestamp + result_dict['to_datetime_timestamp'] = to_datetime_timestamp self.stdio.print(result_dict) return result_dict