Class: Async::App::WebApps::MetricsApp::Store
- Inherits:
-
Object
- Object
- Async::App::WebApps::MetricsApp::Store
- Includes:
- Enumerable
- Defined in:
- lib/async/app/web_apps/metrics_app/store.rb
Instance Method Summary collapse
Instance Method Details
#each ⇒ Object
12 |
# File 'lib/async/app/web_apps/metrics_app/store.rb', line 12 def each(&) = metrics.values.each(&) |
#set(name, value:, suffix: "total", **labels) ⇒ Object
6 7 8 9 10 |
# File 'lib/async/app/web_apps/metrics_app/store.rb', line 6 def set(name, value:, suffix: "total", **labels) key = [name, labels] metrics[key] ||= { name:, labels:, suffix:, value: } metrics[key].merge!(value:) end |