Go to the documentation of this file.
24 using BaseSink::BaseSink;
30 for (
auto& [
name,
j] : entityMap ) {
33 {
"component", component },
46 "Name of output json file. Empty fileName means no output" };
Base class for all Sinks registering to the Monitoring Hub Should be extended by actual Sinks.
const std::string & name() const override
Retrieve name of the service
const ValueType & value() const
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
void flush(bool) override
pure virtual method to be defined by children and responsible for flushing current data of the Sink.
#define DECLARE_COMPONENT(type)
Gaudi::Property< std::string > m_fileName
std::map< std::string, std::map< std::string, nlohmann::json > > sortedEntitiesAsJSON() const
returns all entities in JSON format, grouped by component first and then name