Sha256: 8159d1e7b49056e9ccdff3ce7a202f30891892f95298819765814c0a91949f21
Contents?: true
Size: 429 Bytes
Versions: 4
Compression:
Stored size: 429 Bytes
Contents
# frozen_string_literal: true module DDMetrics class Summary < Metric def observe(value, label) validate_label(label) basic_metric_for(label, BasicSummary).observe(value) end def get(label) validate_label(label) values = basic_metric_for(label, BasicSummary).values DDMetrics::Stats.new(values) end def to_s DDMetrics::Printer.new.summary_to_s(self) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ddmetrics-1.1.0 | lib/ddmetrics/summary.rb |
ddmetrics-1.0.1 | lib/ddmetrics/summary.rb |
ddmetrics-1.0.0 | lib/ddmetrics/summary.rb |
ddmetrics-1.0.0rc1 | lib/ddmetrics/summary.rb |