| 73 | private: |
| 74 | struct Data { |
| 75 | Data(const std::string& _name, const Option<Duration>& window) |
| 76 | : name(_name), |
| 77 | history(None()) |
| 78 | { |
| 79 | if (window.isSome()) { |
| 80 | history = |
| 81 | Owned<TimeSeries<double>>(new TimeSeries<double>(window.get())); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | const std::string name; |
| 86 |