DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
opmonlib
include
opmonlib
TestOpMonManager.hpp
Go to the documentation of this file.
1
9
#ifndef OPMONLIB_INCLUDE_OPMONLIB_TESTOPMONMANAGER_HPP_
10
#define OPMONLIB_INCLUDE_OPMONLIB_TESTOPMONMANAGER_HPP_
11
12
#include <cstddef>
13
#include "
opmonlib/OpMonManager.hpp
"
14
15
#include "
opmonlib/BackendOpMonFacility.hpp
"
16
17
namespace
dunedaq
{
18
19
}
20
21
22
23
namespace
dunedaq::opmonlib
{
24
/*
25
* This is a specification of the OpMonManager designed to spy on the metrics
26
* generated. It's supposed to be used in tests.
27
*/
28
class
TestOpMonManager
:
public
OpMonManager
{
29
30
public
:
31
32
explicit
TestOpMonManager
(std::string
session
=
"NULL"
,
33
std::string name =
"tree"
)
34
:
OpMonManager
(
session
, name,
std
::make_shared<
BackendOpMonFacility
>()) {;}
35
36
virtual
~TestOpMonManager
() =
default
;
37
38
auto
get_backend_facility
() {
39
return
std::dynamic_pointer_cast<BackendOpMonFacility>(
get_opmon_facility
());
40
}
41
42
// we expose the collect so we can harvest the metrics at will
43
using
OpMonManager::collect
;
44
45
};
46
47
48
}
// namespace dunedaq::opmonlib
49
50
#endif
// OPMONLIB_INCLUDE_OPMONLIB_TESTOPMONMANAGER_HPP_
BackendOpMonFacility.hpp
OpMonManager.hpp
dunedaq::opmonlib::BackendOpMonFacility
Definition
BackendOpMonFacility.hpp:13
dunedaq::opmonlib::MonitorableObject::collect
opmon::MonitoringTreeInfo collect() noexcept
Definition
MonitorableObject.cpp:101
dunedaq::opmonlib::OpMonManager
Definition
OpMonManager.hpp:50
dunedaq::opmonlib::OpMonManager::get_opmon_facility
auto get_opmon_facility() const
Definition
OpMonManager.hpp:87
dunedaq::opmonlib::TestOpMonManager
Definition
TestOpMonManager.hpp:28
dunedaq::opmonlib::TestOpMonManager::TestOpMonManager
TestOpMonManager(std::string session="NULL", std::string name="tree")
Definition
TestOpMonManager.hpp:32
dunedaq::opmonlib::TestOpMonManager::get_backend_facility
auto get_backend_facility()
Definition
TestOpMonManager.hpp:38
dunedaq::opmonlib::TestOpMonManager::~TestOpMonManager
virtual ~TestOpMonManager()=default
dunedaq::opmonlib
Definition
BackendOpMonFacility.hpp:11
dunedaq
Including Qt Headers.
Definition
TimingController.hxx:1
session
Definition
session.py:1
std
Definition
SchemaUtils.hpp:148
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0