diff --git a/core/host_monitor/HostMonitorTimerEvent.h b/core/host_monitor/HostMonitorTimerEvent.h index 0ae67cfd37..db2794ea10 100644 --- a/core/host_monitor/HostMonitorTimerEvent.h +++ b/core/host_monitor/HostMonitorTimerEvent.h @@ -46,13 +46,13 @@ class HostMonitorTimerEvent : public TimerEvent { std::chrono::seconds mInterval; }; + HostMonitorTimerEvent(std::chrono::steady_clock::time_point execTime, CollectConfig collectConfig) + : TimerEvent(execTime), mCollectConfig(collectConfig) {} + bool IsValid() const override; bool Execute() override; private: - HostMonitorTimerEvent(std::chrono::steady_clock::time_point execTime, CollectConfig collectConfig) - : TimerEvent(execTime), mCollectConfig(collectConfig) {} - CollectConfig mCollectConfig; };