metric_file_manager.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #pragma once
17 
18 #include <list>
19 
22 
23 namespace Aws {
24 namespace CloudWatchMetrics {
25 namespace Utils {
26 
27 
28 using FileManagement::FileManager;
29 using FileManagement::FileManagerStrategy;
30 using FileManagement::FileObject;
31 
36  public FileManager<MetricDatumCollection> {
37 public:
41  MetricFileManager() = default;
42 
43  // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions)
45  : FileManager(options) {
46  }
47 
49  const std::shared_ptr<FileManagerStrategy> &file_manager_strategy)
50  : FileManager(file_manager_strategy) {
51  }
52 
53  ~MetricFileManager() override = default;
54 
59  void write(const MetricDatumCollection &data) override;
60 
65  FileObject<MetricDatumCollection> readBatch(size_t batch_size) override;
66 };
67 
68 } // namespace Utils
69 } // namespace CloudWatchMetrics
70 } // namespace Aws
std::list< Aws::CloudWatch::Model::MetricDatum > MetricDatumCollection
Definition: definitions.h:23
void write(const MetricDatumCollection &data) override
FileObject< MetricDatumCollection > readBatch(size_t batch_size) override
MetricFileManager(const std::shared_ptr< FileManagerStrategy > &file_manager_strategy)
MetricFileManager(const Aws::FileManagement::FileManagerStrategyOptions &options)


cloudwatch_metrics_common
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:25