20#ifndef ORES_QT_QUEUE_CHART_WINDOW_HPP
21#define ORES_QT_QUEUE_CHART_WINDOW_HPP
26#include <QtCharts/QChartView>
27#include "ores.qt/ClientManager.hpp"
28#include "ores.logging/make_logger.hpp"
42 inline static std::string_view logger_name =
"ores.qt.queue_chart_window";
44 [[nodiscard]]
static auto& lg() {
46 static auto instance = make_logger(logger_name);
50 enum class TimeRange {
60 const QString& queueName,
62 QWidget* parent =
nullptr);
65 [[nodiscard]]
const QString& queueId()
const {
return queueId_; }
66 [[nodiscard]]
const QString& queueName()
const {
return queueName_; }
68 QSize sizeHint()
const override {
return {900, 500}; }
73 void statusChanged(
const QString& message);
74 void errorOccurred(
const QString& error_message);
77 void onTimeRangeChanged(
int index);
83 void clearChart(
const QString& message);
88 TimeRange currentRange_{TimeRange::LastHour};
91 QAction* reloadAction_;
92 QComboBox* rangeCombo_;
93 QChartView* chartView_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
MDI window showing time-series charts for a single JetStream stream.
Definition QueueChartWindow.hpp:38