18 #include <aws/core/Aws.h> 19 #include <aws/monitoring/model/PutMetricDataRequest.h> 33 namespace CloudWatchMetrics {
76 bool start()
override;
bool publishBatchedData() override
void emptyCollection() override
static const size_t kDefaultTriggerSize
~MetricBatcher() override
Tears down a MetricBatcher object.
static const size_t kDefaultMaxBatchSize
MetricBatcher(size_t max_allowable_batch_size=DataBatcher::kDefaultMaxBatchSize, size_t publish_trigger_size=DataBatcher::kDefaultTriggerSize)
Creates a new MetricBatcher Creates a new MetricBatcher that will group/buffer metrics. Note: metrics are only automatically published if the size is set, otherwise the publishBatchedData is necessary to push data to be published.
MetricBatcher & operator=(const MetricBatcher &other)=delete
virtual void setMetricFileManager(std::shared_ptr< Aws::FileManagement::FileManager< MetricDatumCollection >> file_manager)
std::shared_ptr< Aws::FileManagement::FileManager< MetricDatumCollection > > metric_file_manager_