Fix ProbingETL toJson to serialize underlying source states (#325)

Fixes #323
This commit is contained in:
Alex Kremer
2022-09-28 01:30:56 +02:00
committed by GitHub
parent 3de421c390
commit ccf73dc68c

View File

@@ -69,7 +69,16 @@ boost::json::object
ProbingETLSource::toJson() const ProbingETLSource::toJson() const
{ {
if (!currentSrc_) if (!currentSrc_)
return {}; {
boost::json::object sourcesJson = {
{"ws", plainSrc_->toJson()},
{"wss", sslSrc_->toJson()},
};
return {
{"probing", sourcesJson},
};
}
return currentSrc_->toJson(); return currentSrc_->toJson();
} }