void MetricsCollector::Initialize()

in cloudwatch_metrics_collector/src/metrics_collector.cpp [51:70]


void MetricsCollector::Initialize(std::string metric_namespace,
                         const std::map<std::string, std::string> & default_dimensions,
                         int storage_resolution,
                         rclcpp::Node::SharedPtr node,
                         const Aws::Client::ClientConfiguration & config,
                         const Aws::SDKOptions & sdk_options,
                         const Aws::CloudWatchMetrics::CloudWatchOptions & cloudwatch_options,
                         const std::vector<std::string> & topics,
                         const std::shared_ptr<MetricServiceFactory>& metric_service_factory) {

  this->metric_namespace_ = std::move(metric_namespace);
  this->default_dimensions_ = default_dimensions;
  this->storage_resolution_.store(storage_resolution);
  this->node_ = std::move(node);
  this->metric_service_ = metric_service_factory->createMetricService(this->metric_namespace_,
                                                                      config,
                                                                      sdk_options,
                                                                      cloudwatch_options);
  this->topics_ = topics;
}