-
Notifications
You must be signed in to change notification settings - Fork 51
Tracker Checker: Ouput in JSON #674
Copy link
Copy link
Closed
Labels
- Admin -Enjoyable to Install and Setup our SoftwareEnjoyable to Install and Setup our Software- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceCode Cleanup / RefactoringTidying and Making NeatTidying and Making NeatEasyGood for NewcomersGood for NewcomersEnhancement / Feature RequestSomething NewSomething NewLow PriorityNot our Focus NowNot our Focus NowTestingChecking TorrustChecking Torrustgood first issueGood for newcomersGood for newcomers
Milestone
Metadata
Metadata
Assignees
Labels
- Admin -Enjoyable to Install and Setup our SoftwareEnjoyable to Install and Setup our Software- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceCode Cleanup / RefactoringTidying and Making NeatTidying and Making NeatEasyGood for NewcomersGood for NewcomersEnhancement / Feature RequestSomething NewSomething NewLow PriorityNot our Focus NowNot our Focus NowTestingChecking TorrustChecking Torrustgood first issueGood for newcomersGood for newcomers
Type
Projects
Status
Done
Parent issue: #669
Currently, the Tracker Checker output is a text like this:
The UDP and HTTP clients use JSON. I should have implemented also this output in JSON because:
We could implement the new format in JSON and make it the default one. And remove the current
textformat.The new format could be:
{ "udp_trackers": [ { "url": "127.0.0.1:6969", "status": { "code": "ok", "message": "", } }, { "url": "127.0.0.1:6868", "status": { "code": "error", "message": "Can't connect to the UDP server.", } }, ], "http_trackers": [ { "url": "http://127.0.0.1:7070", "status": { "code": "ok", "message": "", } }, { "url": "http:://127.0.0.1:7171", "status": { "code": "error", "message": "Can't connect to the HTTP server. Connection rejected."; } }, ], "health_checks": [ { "url": "http://127.0.0.1:1313/health_check", "status": { "code": "ok", "message": "", } }, { "url": "http:://127.0.0.1:1414/health_check", "status": { "code": "error", "message": "Can't connect to the HTTP server. Connection rejected.", } }, ] }cc @da2ce7