getanteon / anteon

Anteon (formerly Ddosify) - Effortless Kubernetes Monitoring and Performance Testing. Available on CLI, Self-Hosted, and Cloud
https://getanteon.com
GNU Affero General Public License v3.0
8.39k stars 379 forks source link

[Feature] Add json format output in report #22

Closed BoynChan closed 2 years ago

BoynChan commented 2 years ago

I have seen that we use some kind of formatted string for report output. I wonder if we can use json format (add a flag for configuring or sth.) for report output. I think structure will like below [ { // Step 1 "success_count":17, "failed_count":3, "duration":{ "dns":0.0007 // etc.. }, "status_code":{ "200":17 }, "error_distribution":{ "connection_timeout":3 } }, { // Step 2 things } ]

And also I think it's time to refactor using template as the code writted https://github.com/ddosify/ddosify/blob/master/core/report/stdout.go#L168

kursataktas commented 2 years ago

Hi @BoynChan

And also I think it's time to refactor using template as the code writted https://github.com/ddosify/ddosify/blob/master/core/report/stdout.go#L168

BoynChan commented 2 years ago

Thx @kursataktas .

kursataktas commented 2 years ago

This would be a great feature. I've added this to our roadmap.

kursataktas commented 2 years ago

Hi @BoynChan

JSON formatted output added with PR and available on Ddosify 0.7.0