Method: Sentry::Metrics::GaugeMetric#initialize
- Defined in:
- lib/sentry/metrics/gauge_metric.rb
#initialize(value) ⇒ GaugeMetric
Returns a new instance of GaugeMetric.
8 9 10 11 12 13 14 15 |
# File 'lib/sentry/metrics/gauge_metric.rb', line 8 def initialize(value) value = value.to_f @last = value @min = value @max = value @sum = value @count = 1 end |