From b74e0b7d7fcaf6fcbdbe03e23ad3eb51addda50b Mon Sep 17 00:00:00 2001 From: nvuillam Date: Fri, 16 Aug 2024 20:11:45 +0200 Subject: [PATCH] metrics format --- megalinter/reporters/ApiReporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megalinter/reporters/ApiReporter.py b/megalinter/reporters/ApiReporter.py index d93d374a6a4..003d2f96ba6 100644 --- a/megalinter/reporters/ApiReporter.py +++ b/megalinter/reporters/ApiReporter.py @@ -271,7 +271,7 @@ def build_metrics_payload(self): if self.master.show_elapsed_time is True: metric_line += f",elapsedTime={round(linter.elapsed_time_s, 2)}" all_metrics_lines += [metric_line] - self.metrics_payload = ",".join(all_metrics_lines) + self.metrics_payload = "\n".join(all_metrics_lines) def send_to_metrics_api(self): session = requests.Session()