activates collectors and then publishes metrics. More...
#include <collect_and_publish.h>
Public Member Functions | |
CollectAndPublish (ros_monitoring_msgs::MetricManagerInterface &mg, const std::vector< MetricCollectorInterface * > &c) | |
Constructor. More... | |
void | operator() (const ros::TimerEvent &event) |
activates all collectors and then publishes the metrics. More... | |
Private Attributes | |
const std::vector< MetricCollectorInterface * > & | collectors_ |
ros_monitoring_msgs::MetricManagerInterface & | mg_ |
activates collectors and then publishes metrics.
Definition at line 24 of file collect_and_publish.h.
|
inline |
Constructor.
mg | the metric manager that publishes collected metrics. |
c | a list of metrics collectors. |
Definition at line 33 of file collect_and_publish.h.
|
inline |
activates all collectors and then publishes the metrics.
event | time event in which this run occurs. |
Definition at line 42 of file collect_and_publish.h.
|
private |
Definition at line 52 of file collect_and_publish.h.
|
private |
Definition at line 51 of file collect_and_publish.h.