Public Member Functions | Private Attributes | List of all members
CollectAndPublish Class Reference

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::MetricManagerInterfacemg_
 

Detailed Description

activates collectors and then publishes metrics.

Definition at line 24 of file collect_and_publish.h.

Constructor & Destructor Documentation

CollectAndPublish::CollectAndPublish ( ros_monitoring_msgs::MetricManagerInterface mg,
const std::vector< MetricCollectorInterface * > &  c 
)
inline

Constructor.

Parameters
mgthe metric manager that publishes collected metrics.
ca list of metrics collectors.

Definition at line 33 of file collect_and_publish.h.

Member Function Documentation

void CollectAndPublish::operator() ( const ros::TimerEvent event)
inline

activates all collectors and then publishes the metrics.

Parameters
eventtime event in which this run occurs.

Definition at line 42 of file collect_and_publish.h.

Member Data Documentation

const std::vector<MetricCollectorInterface *>& CollectAndPublish::collectors_
private

Definition at line 52 of file collect_and_publish.h.

ros_monitoring_msgs::MetricManagerInterface& CollectAndPublish::mg_
private

Definition at line 51 of file collect_and_publish.h.


The documentation for this class was generated from the following file:


health_metric_collector
Author(s): AWS RoboMaker
autogenerated on Fri Mar 5 2021 03:32:42