16 #include <aws/core/Aws.h> 17 #include <aws/monitoring/CloudWatchClient.h> 18 #include <aws/monitoring/model/PutMetricDataRequest.h> 32 namespace CloudWatchMetrics {
35 const std::string & metrics_namespace,
36 const Aws::Client::ClientConfiguration & client_config)
43 std::shared_ptr<Utils::CloudWatchMetricsFacade> cloudwatch_metrics_facade)
70 case CloudWatchMetricsStatus::SUCCESS:
71 return Aws::DataFlow::UploadStatus::SUCCESS;
72 case CloudWatchMetricsStatus::INVALID_DATA:
73 return Aws::DataFlow::UploadStatus::INVALID_DATA;
75 return Aws::DataFlow::UploadStatus::FAIL;
std::string metrics_namespace_
std::list< Aws::CloudWatch::Model::MetricDatum > MetricDatumCollection
std::shared_ptr< Aws::CloudWatchMetrics::Utils::CloudWatchMetricsFacade > cloudwatch_metrics_facade_
This class is a simple Facade over the CloudWatch client. This class is a very small abstraction over...
MetricPublisher(const std::string &metrics_namespace, const Aws::Client::ClientConfiguration &client_config)
Aws::Client::ClientConfiguration client_config_
Aws::DataFlow::UploadStatus publishData(MetricDatumCollection &data) override