| 158 | }; // class Counter |
| 159 | |
| 160 | class Gauge : public detail::BaseMetrics |
| 161 | { |
| 162 | using super_type = detail::BaseMetrics; |
| 163 | using self_type = Gauge; |
| 164 | |
| 165 | public: |
| 166 | Gauge(const cripts::string_view &name) : super_type(name) { _initialize(ts::Metrics::Gauge::create(name)); } |
| 167 | |
| 168 | static self_type * |
| 169 | Create(const cripts::string_view &name) |
| 170 | { |
| 171 | auto *ret = new self_type(name); |
| 172 | auto id = ts::Metrics::Gauge::create(name); |
| 173 | |
| 174 | ret->_initialize(id); |
| 175 | |
| 176 | return ret; |
| 177 | } |
| 178 | |
| 179 | }; // class Counter |
| 180 | |
| 181 | } // namespace Metrics |
| 182 | |