tdaq-develop-2025-02-12
|
#include <otsdaq-utilities/Console/ConsoleSupervisor.h>
Public Types | |
enum class | FieldType { TIMESTAMP , SEQID , LEVEL , LABEL , SOURCEID , HOSTNAME , SOURCE , FILE , LINE , MSG } |
Public Member Functions | |
ConsoleMessageStruct (const std::string &msg, const size_t count, std::vector< CustomTriggeredAction_t > &priorityCustomTriggerList) | |
void | setCustomTriggerMatch (const CustomTriggeredAction_t &forcedCustomTriggerMatch) |
const CustomTriggeredAction_t & | getCustomTriggerMatch () const |
bool | hasCustomTriggerMatchAction () const |
const std::string & | getTime () const |
void | setTime (time_t t) |
const std::string & | getMsg () const |
const std::string & | getLabel () const |
const std::string & | getLevel () const |
const std::string & | getFile () const |
const std::string & | getLine () const |
const std::string & | getSourceID () const |
uint32_t | getSourceIDAsNumber () const |
const std::string & | getSource () const |
const std::string & | getSequenceID () const |
size_t | getSequenceIDAsNumber () const |
size_t | getCount () const |
Public Attributes | |
std::unordered_map< FieldType, std::string > | fields |
Static Public Attributes | |
static const std::map< FieldType, std::string > | fieldNames |
UDP Message Format: UDPMFMESSAGE|TIMESTAMP|SEQNUM|HOSTNAME|HOSTADDR|SEVERITY|CATEGORY|APPLICATION|PID|ITERATION|MODULE|(FILE|LINE)|MESSAGE FILE and LINE are only printed for s67+
Definition at line 75 of file ConsoleSupervisor.h.
Enumerator | |
---|---|
SEQID | sequence ID is incrementing number independent from each source |
LEVEL | aka SEVERITY |
Definition at line 272 of file ConsoleSupervisor.h.
|
inline |
<Note: to avoid recursive triggers, Label=Console can not trigger
<not a full match
<still possible
<trigger fired so copy triggeredAction and tag with message sequence ID
<increment occurrences
Definition at line 77 of file ConsoleSupervisor.h.