A DataConsumer provides an interfaces for a connection to the Viam app which can be used to query historical data for a module resource.
More...
#include "module/data_consumer.hpp"
A DataConsumer provides an interfaces for a connection to the Viam app which can be used to query historical data for a module resource.
◆ DataConsumer()
| viam::sdk::DataConsumer::DataConsumer |
( |
DataClient & | dc | ) |
|
Construct a DataConsumer from the DataClient which will be used to access the Viam app.
- Parameters
-
| dc | and must not outlive it. |
◆ query_tabular_data()
| std::vector< DataClient::BSONBytes > viam::sdk::DataConsumer::query_tabular_data |
( |
const std::string & | resource, |
|
|
query_options | opts ) |
Query historical module data for.
- Parameters
-
where
part_id is the value of the environment variable
resource is- Parameters
-
time_point is the current time minus the time_back field from- Parameters
-
If any additional stages are specified in- Parameters
-
| opts | they will be added after the default query above. |
The documentation for this class was generated from the following file: