|
ORE Studio 0.0.4
|
Model for displaying telemetry log entries from the server. More...
#include <ClientTelemetryLogModel.hpp>
Inherits QAbstractTableModel.

Public Types | |
| enum | Column { Timestamp , Level , Source , Component , Tag , Message , ColumnCount } |
Signals | |
| void | dataLoaded () |
| void | loadError (const QString &error_message, const QString &details={}) |
Public Member Functions | |
| ClientTelemetryLogModel (ClientManager *clientManager, QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| void | load_session_logs (const boost::uuids::uuid &session_id) |
| Load logs for a specific session. | |
| void | load_logs (std::chrono::system_clock::time_point start_time, std::chrono::system_clock::time_point end_time) |
| Load logs within a time range. | |
| void | load_page (std::uint32_t offset, std::uint32_t limit) |
| Load a specific page of log data. | |
| void | clear () |
| Clear all log entries. | |
| const telemetry::domain::telemetry_log_entry * | get_entry (int row) const |
| Get log entry at the specified row. | |
| std::uint32_t | page_size () const |
| Get the page size used for pagination. | |
| void | set_page_size (std::uint32_t size) |
| Set the page size for pagination. | |
| std::uint64_t | total_available_count () const |
| Get the total number of records available on the server. | |
| void | set_min_level (const std::optional< std::string > &level) |
| Set the minimum log level filter. | |
| void | set_message_filter (const std::optional< std::string > &text) |
| Set the message search filter. | |
| std::optional< boost::uuids::uuid > | current_session_id () const |
| Get the currently filtered session ID. | |
Model for displaying telemetry log entries from the server.
This model fetches telemetry logs asynchronously, with optional filtering by session ID, log level, and other criteria.
| void load_session_logs | ( | const boost::uuids::uuid & | session_id | ) |
Load logs for a specific session.
| session_id | The session ID to filter by. |
| void load_logs | ( | std::chrono::system_clock::time_point | start_time, |
| std::chrono::system_clock::time_point | end_time | ||
| ) |
Load logs within a time range.
| start_time | Start of time range. |
| end_time | End of time range. |
| void load_page | ( | std::uint32_t | offset, |
| std::uint32_t | limit | ||
| ) |
Load a specific page of log data.
| offset | Number of records to skip. |
| limit | Number of records to fetch. |
| void set_min_level | ( | const std::optional< std::string > & | level | ) |
Set the minimum log level filter.
| level | Minimum level (trace, debug, info, warn, error). |
| void set_message_filter | ( | const std::optional< std::string > & | text | ) |
Set the message search filter.
| text | Text to search for in messages. |