|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
One entry of an event stream (see EventSource). More...
#include <types.h>
Public Member Functions | |
| QJsonObject | toJson () const |
| The event as JSON (used for log notifications). | |
| QString | toLine () const |
| The event as text: "#seq time level source[category]: message {data}". | |
Public Attributes | |
| quint64 | sequence = 0 |
| Assigned by the server; increases monotonically. | |
| QDateTime | timestamp |
| When the event happened. | |
| QString | source |
| EventSource::name() of the producer. | |
| LogLevel | level = LogLevel::Info |
| Severity. | |
| QString | category |
| Optional sub-category, e.g. a Qt logging category. | |
| QString | message |
| Human-readable message. | |
| QJsonObject | data |
| Extra source-specific fields. | |
One entry of an event stream (see EventSource).
| QString Sonde::Event::toLine | ( | ) | const |
The event as text: "#seq time level source[category]: message {data}".
Lists of objects in data, such as a stall's stack samples, are summarised as "(N items)"; toJson() has them in full. The message may span lines.