void MetricsCollector::Initialize()

in cloudwatch_metrics_collector/src/metrics_collector.cpp [48:65]


void MetricsCollector::Initialize(std::string metric_namespace,
                         std::map<std::string, std::string> & default_dimensions,
                         int storage_resolution,
                         const ros::NodeHandle& node_handle,
                         const Aws::Client::ClientConfiguration & config,
                         const Aws::SDKOptions & sdk_options,
                         const Aws::CloudWatchMetrics::CloudWatchOptions & cloudwatch_options,
                         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_handle_ = node_handle;
  this->metric_service_ = metric_service_factory->createMetricService(this->metric_namespace_,
                                                                      config,
                                                                      sdk_options,
                                                                      cloudwatch_options);
}